Forum Discussion

ABola2's avatar
ABola2
Icon for New Contributor rankNew Contributor
6 years ago
Solved

Error: Makefile is not up to date @ NIOS 2 Eclipse

Again and again I see this error every time I edit the BSP settings:

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

I do these steps and still seeing the same damn error. Every thing is ok and don't tell me to just do the steps above.

  • Hi, Sometimes the compiler isn't able to update the Makefile and when you update the BSP settings the Makefile will be out of date: To work around this, do the following: 1- Open the BSP project folder 2- Right click the Makefile>> Delete 3- Open the NIOS II Command Shill 4- Write the following command: cd <...../project_bsp> nios2-bsp-generate-files --settings=settings.bsp --bsp-dir=<C:/…./<project_bsp/> 5- Build your project again. I've tried this and the issue gone.

4 Replies

  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor
    Hi, Sometimes the compiler isn't able to update the Makefile and when you update the BSP settings the Makefile will be out of date: To work around this, do the following: 1- Open the BSP project folder 2- Right click the Makefile>> Delete 3- Open the NIOS II Command Shill 4- Write the following command: cd <...../project_bsp> nios2-bsp-generate-files --settings=settings.bsp --bsp-dir=<C:/…./<project_bsp/> 5- Build your project again. I've tried this and the issue gone.
  • Abe's avatar
    Abe
    Icon for Frequent Contributor rankFrequent Contributor

    If the above steps do not resolve the issue, do a make clean or make clean_bsp and then delete the Makefile that is present in the BSP directory as well as in the Application directory. After doing this, you will have to generate the Makefiles again and then do the BSP & APP builds.

  • Ahmed_H_Intel1's avatar
    Ahmed_H_Intel1
    Icon for Frequent Contributor rankFrequent Contributor
    Hi Amanda, Please confirm if this resolve the issue otherwise please share more info so I can help you.
  • ABola2's avatar
    ABola2
    Icon for New Contributor rankNew Contributor

    Thanks a lot, It is amazing solution for now. do you know when you gunna fix this issue completely?