Knowledge Base Article
Error: "Makefile is not up to date"
Description
Due to an issue with the Nios® II Embedded Design Suite (EDS), sometimes the tool is not able to update the makefile of the project and gives the following error message:
******************
make all
Makefile not up to date.
settings.bsp has been modified since the BSP Makefile was generated.
Generate the BSP to update the Makefile, and then build again.
To generate from Eclipse:
1. Right-click the BSP project.
2. In the Nios® II Menu, click Generate BSP.
To generate from the command line:
nios2-bsp-generate-files --settings= --bsp-dir=
make: *** [makefile] Error 1
************************************
After following the given instructions, the error still exists because the compiler finds the Makefile isn't up to date after editing and regenerating the BSP.
Resolution
To overcome this issue, do the following:
- Open the BSP project folder.
- Right-click the Makefile >> Delete.
- Open the Nios® II Command Shell.
- Write the following command:
cd <...../project_bsp>
nios2-bsp-generate-files --settings=settings.bsp --bsp-dir= <...../project_bsp/> - Build your project again.