- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a way to modify the location of the files in the vendors folder?
i have differnt Image configurations and i want to make sub folders so that i don't lose the overview. something like: $(ROMFSINST) /home/ /home/user/nios2-linux/uClinux-dist/vendors/Altera/nios2/sub-folder/application is not working and i don't understand the shellscript used for it. mfg SvenLink Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe an easy way to do this is to create symlinks for the actual files/directories at the places of the standard files/directories.
-Michaerl- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
that would be like to copy the files to the romfs on my on ?
Or could i use the symlink within my makefile?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When reading the file, a (sym)link is like a copy. But writing a modification into any link of the file changes the original. Deleting a symlink does not affect the other symlinks or the original. Deleting the original file makes the symlink a not working "orphan".
There also are "hardlinks" that work similar, but here all links (including the original) are equal. Deleting one of them does not impact any other. Deleting the last hardlinkt deletes the file's data. With Linux you everywhere can use (sym)links instead of files or directories. The application does not notice this, unless it is explicitly programmed to tell symlinks from files or directories. Make, gcc, ... will not tell symlinks from files. -Michael- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i found an easy way to do it
within the makefile it's just like this: $(ROMFSINST) ../../Altera/nios2/sub-folder/application /home/application i tried it the wrong way is there a folder or a file where the sym-link is saved? it'd like to switch the ../../Altera/nios/sub-folder/ with a symlink like $(SUB_FOLDER)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- a symlink like $(SUB_FOLDER) --- Quote End --- This is not a symlink. A symlink is done by the Linux file system. see http://en.wikipedia.org/wiki/symlink . Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$(SUB_FOLDER) is just a variable in the makefile. Using the working structure above, in the makefile:
SUB_FOLDER = "../../Altera/nios2/sub-folder/application" ... $(ROMFSINST) $(SUB_FOLDER) /home/application However, this is a much different method than the one proposed by mschnell. The symlink is not 'in' the makefile. Basically, you set up the structure that you want in the file system, and you create a symbolic link from 'their' folder to 'yours'. That way you don't mess with their structure (could give you a big headache later if you don't document the changes properly). Although your method might work, I wouldn't mess around too much with the Makefile...
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page