mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 22:03:34 +08:00
Fix UAVCAN bootloader builds broken by os calls from stm32_flash
Recent upsteam NuttX changes needed by PX4 added sem_[wait|post] in the stm32_flash driver. UAVCAN Bootloaders do not use the OS's scheduler etal. This commit nops the sem_[wait|post] with linker magic. Which precludes the linking the nuttx scheduler in the bootloader build.
This commit is contained in:
committed by
Julian Oes
parent
5c6264ae35
commit
78e2a293d2
@@ -29,7 +29,7 @@ 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")
|
||||
set(nuttx_bootloader_wrapers "-Wl,-wrap,sched_process_timer -Wl,-wrap,sem_post -Wl,-wrap,sem_wait")
|
||||
|
||||
add_custom_command(OUTPUT
|
||||
${nuttx_startup_files}
|
||||
|
||||
Reference in New Issue
Block a user