mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
Build copies the boards nuttx-config to build at Nuttx level
This commit is contained in:
@@ -33,6 +33,9 @@
|
|||||||
|
|
||||||
include(cygwin_cygpath)
|
include(cygwin_cygpath)
|
||||||
|
|
||||||
|
set(NUTTX_DIR ${PX4_BINARY_DIR}/NuttX/nuttx)
|
||||||
|
set(NUTTX_APPS_DIR ${PX4_BINARY_DIR}/NuttX/apps)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
add_executable(px4 ${PX4_SOURCE_DIR}/src/platforms/empty.c)
|
add_executable(px4 ${PX4_SOURCE_DIR}/src/platforms/empty.c)
|
||||||
@@ -86,11 +89,12 @@ target_link_libraries(px4 PRIVATE
|
|||||||
-nostartfiles
|
-nostartfiles
|
||||||
-nodefaultlibs
|
-nodefaultlibs
|
||||||
-nostdlib
|
-nostdlib
|
||||||
|
-nostdinc++
|
||||||
|
|
||||||
-fno-exceptions
|
-fno-exceptions
|
||||||
-fno-rtti
|
-fno-rtti
|
||||||
|
|
||||||
-Wl,--script=${PX4_BINARY_DIR_CYG}/NuttX/nuttx/configs/${PX4_BOARD}/scripts/ld.script
|
-Wl,--script=${PX4_BINARY_DIR_CYG}/NuttX/nuttx-config/scripts/ld.script
|
||||||
-Wl,-Map=${PX4_CONFIG}.map
|
-Wl,-Map=${PX4_CONFIG}.map
|
||||||
-Wl,--warn-common
|
-Wl,--warn-common
|
||||||
-Wl,--gc-sections
|
-Wl,--gc-sections
|
||||||
|
|||||||
Reference in New Issue
Block a user