nios2-bsp-editor library paths and IPX files
I've successfully created my own IP components (hw and sw) and software only components. I typically add this to a project by creating a folder called "IP" in the root directory of the project. nios2-bsp-editor can find these files no problem.
However, I would also like to create my own OS variations. This is so that I can easily add RTOSs such as FreeRTOS and embOS to my project and that the corresponding source files/libraries will be copied to the correct locations in the bsp directory. This does seem to be support - indeed there are commands to create an OS in a _sw.tcl file: create_os, set_sw_property extends_bsp_type etc.
In order to actually make this work however, I have found that that I have to modify the component.ipx file provided in the nios2eds/components folder. If I add my OS plugin here, everything works as expected. nios2-bsp-editor and nios2-bsp-generate-files find the OS, files are copied correctly and compilation completes successfully. This is less than ideal though - I don't want to edit files provided by Quartus directly. I also want to be able to check my entire project into source control and have it generate the BSP without me needing to make further modifications. I need my projects to be portable between build machines.
If I place the OS component into the IP subdirectory of my project, then I am able to create the BSP by issuing the command: nios2-bsp freertos bsp qsys.sopcinfo
However, if I try to launch nios2-bsp-editor or run nios2-bsp-generate-files using this method, I get the error:
SEVERE: Available BSP type values for the --type argument are: [hal, ucosii] SEVERE: BSP type "FreeRTOS" unknown. SEVERE: NullPointerException
Is there anyway I can help these programs find my OS component?