- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a Nios II software application. I was wondering if it is possible, either through configuaration settings in Eclipse, or changing the project Makefile, to have the .elf be built for whichever BSP is selected?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why not creating two separate projects?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to have one code base, so that way, I don't have to keep updating one project and having to update the other one. Also, I want to be able to select which memory map to use at compile time since the software is pretty much the same for both.
After testing out different setups, I came up with the approach of having 'ifeq' statements in the application Makefile, and then having 2 different build configurations in the Eclipse project settings in order to select the location of the BSP files..I think this should work!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried Project > Properties > Project References?
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