Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

8.8.5.2.6. Specifying a Subdirectory

You can optionally specify a subdirectory in the generated BSP for your driver or software package files using the bsp_subdirectory argument to set_sw_property. All driver source and header files are copied to this directory, along with any path or hierarchy information specified with each source or header file. If no bsp_subdirectory is specified, your driver or software package is placed under the drivers folder of the generated BSP. Set the subdirectory as follows:

set_sw_property bsp_subdirectory my_driver

Note: If the path begins with the BSP type (e.g HAL or UCOSII), the BSP type is removed and replaced with the value of the bsp_subdirectory property.