From 7ba81fac4b3dfc8c482bdd942f75447e99cb872e Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 29 Nov 2018 12:30:54 -0800 Subject: [PATCH] Build copies the boards nuttx-config to build at Nuttx level --- platforms/nuttx/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platforms/nuttx/CMakeLists.txt b/platforms/nuttx/CMakeLists.txt index b2b0c7aee4..3bc3fe6840 100644 --- a/platforms/nuttx/CMakeLists.txt +++ b/platforms/nuttx/CMakeLists.txt @@ -33,6 +33,9 @@ include(cygwin_cygpath) +set(NUTTX_DIR ${PX4_BINARY_DIR}/NuttX/nuttx) +set(NUTTX_APPS_DIR ${PX4_BINARY_DIR}/NuttX/apps) + add_subdirectory(src) add_executable(px4 ${PX4_SOURCE_DIR}/src/platforms/empty.c) @@ -86,11 +89,12 @@ target_link_libraries(px4 PRIVATE -nostartfiles -nodefaultlibs -nostdlib + -nostdinc++ -fno-exceptions -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,--warn-common -Wl,--gc-sections