forked from Archive/PX4-Autopilot
Allow an alternate startup file independent of bootloader builds
In support of bootloader builds the nuttx_v3 builds previously had a facility to set the start up files: Non Bootloader STM32 builds uses the common vectors facility in NuttX. The bootloaders use a fixed minimum set of vectors. Since other architectures my need to include a start up file or set of files, this PR allow an alternate startup file to be selected independent of if this is bootloader build.
This commit is contained in:
parent
28a9e32753
commit
ec11b943a8
|
@ -31,8 +31,12 @@ set(startup_libs)
|
|||
|
||||
if("${config_nuttx_config}" STREQUAL "bootloader")
|
||||
set(nuttx_ld_prefix "bootloader")
|
||||
set(nuttx_startup_files ${nuttx_export_dir}/startup/${nuttx_startup_files})
|
||||
set(nuttx_bootloader_wrapers "-Wl,-wrap,sched_process_timer -Wl,-wrap,sem_post -Wl,-wrap,sem_wait")
|
||||
endif()
|
||||
|
||||
if(NOT "${nuttx_startup_files}" STREQUAL "" )
|
||||
|
||||
set(nuttx_startup_files ${nuttx_export_dir}/startup/${nuttx_startup_files})
|
||||
|
||||
add_custom_command(OUTPUT
|
||||
${nuttx_startup_files}
|
||||
|
|
Loading…
Reference in New Issue