Altera_Forum
Honored Contributor
14 years agonios2 eclipse-SBT source file management
I have a source tree from a version mangement system (SVN) with some code for a Nios2-system.
I try to create a nios2-eclipse-project with some of these source files. The source tree also contains some folders which should not be part of my project, e.g.: /path-to-sources/ /files-which-should-be-included /files-which-should-NOT-be-included /subfolder/ /files-which-should-be-included /files-which-should-NOT-be-included [/INDENT] I want to keep the source-tree alive in my nios2-eclipse project, so that src files in my src-tree can refer to each other via relative paths. what I have tried so far: - use the nios2-app-update-makefile command with the --add-inc-dir and --add-src-dir options. effect: all the files get added to my project, but the raltive paths between the files are lost, all files are put into one "folder" and their relation to each other is lost. (also the files did not show up in eclipse, but when "executing" the makefiles they were part of the compilation process) - use the eclipse "File/import.../General/File System" tool. This adds all the files as needed to eclipse and keeps the source tree intact. BUT .h files are not part of the makefile (right-click and selecting "add to Nios2 build" did not add them. .c files could be excluded/added via this command, but .h files are ignored. during comilation, none of my .h files are found) any suggestions on how to solve this problem?