Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,017 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
49 Views

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.
Reply