Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20777 Discussions

NIOS II application for 2 BSP targets

Altera_Forum
Honored Contributor II
945 Views

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?

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
230 Views

Why not creating two separate projects?

0 Kudos
Altera_Forum
Honored Contributor II
230 Views

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!
0 Kudos
Altera_Forum
Honored Contributor II
230 Views

Have you tried Project > Properties > Project References?

0 Kudos
Reply