Altera_Forum
Honored Contributor
20 years agoAlternate location for HAL/inc include file
Greetings,
We are defining a custom SOPC component and would like to put the include file normally found in HAL/inc/ in a different directory (this is the include file that defines the xxx_INSTANCE and xxx_INIT macros). We added the following lines to the component's class.ptf file:...
COMPONENT_BUILDER
{
SW_FILES
{
FILE { type = "HAL (HAL/inc/)";
filepath = "../../nios/dataflow/decifir.h"; }
}
}
... But the decifir.h file does not seem to be found after SOPC/GENERATE and rebuild of the system library. However, if we put the include file in it's expected HAL/inc/ location, then it does work correctly and the macros are properly expanded in alt_sys_init.c (it behaves as if the filepath directive is being ignored). What is the correct technique for relocating the HAL/inc/ include file elsewhere? BTW, the reason we want to do this is that some common Verilog code is packaged into different SOPC components, all of which share the same drivers and include files. Thus, putting any of those support files directly within any one particular component isn't really the clean thing to do. Thanks! -alan