Forum Discussion

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

Copying projects to another PC. BSP has absolute paths

Hi,

I'm trying to get a handle on how to clone my project and make it build on another PC.

But I see that my NIOS BSP uses absolute paths to access the sopc info file. Simply changing the filename in the make file wouldn't work

How do I copy a complete project along with its NIOS projects and make sure it works in another system?

Thanks

Zubair

p.s. using Quartus 12 + NIOS SBT 12..

3 Replies

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

    You can fix the absolute path to the .sopcinfo file by manually editing the XML file (settings.bsp). You are looking for the "<SopcDesignFile>" element, about 10 lines down from the top. Just change it to be a relative path.

    The settings.bsp is the only file you actually need to copy as far as BSP files; then on each fresh PC you need to "generate" the BSP again.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Changing makefile and settings.bsp both worked.

    Thanks!

    Zubair

    --- Quote End ---

    There is another good way to solve this problem.

    First regenerate bsp.

    Then in application project Index -> rebuild.

    Then build project.

    And then run this on hardware.

    Re-indexing detects the relative current paths of the files related to the project.

    Similar is the case when you regenerate your new/modified Qsys system. Same procedure.