Forum Discussion

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

Headless build for Nios II projects

Hi there,

We are trying to improve our build and test automation for our firmware team and get stuck on building Nios II projects. Is there a way to use .project and .cproject files as project configuration inputs, along with the source files, to create makefiles from command line, and then compile the whole project from command line to generate elf files?

Any suggestions are appreciated.

Thanks,

Hua

1 Reply

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

    You should be able to create the projects in Eclipse and then be able to use the generated makefile from the command line directly.

    I typically skip that and use the software build tools directly when I want to implement automation of generating make files and automating the software downloading/execution. If you want to see an example of what I'm describing, take a look at the Qsys tutorial design and look for a shell script under the software directory. That script generates the necessary application and BSP make files, compiles the software, downloads the hardware, downloads the software, and opens a terminal window. You might not need to do all those steps but it should be easy to grab the stuff you need from it.