Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

NIOS II application for 2 BSP targets

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?

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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!