mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 23:13:34 +08:00
Removed EAGLE_ADD_ON dependency
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
committed by
Julian Oes
parent
ee34207fdd
commit
7b6811ca54
@@ -1,10 +1,10 @@
|
|||||||
include(qurt/px4_impl_qurt)
|
include(qurt/px4_impl_qurt)
|
||||||
|
|
||||||
if ("$ENV{EAGLE_ADDON_ROOT}" STREQUAL "")
|
#if ("$ENV{EAGLE_ADDON_ROOT}" STREQUAL "")
|
||||||
message(FATAL_ERROR "Enviroment variable EAGLE_ADDON_ROOT must be set")
|
# message(FATAL_ERROR "Enviroment variable EAGLE_ADDON_ROOT must be set")
|
||||||
else()
|
#else()
|
||||||
set(EAGLE_ADDON_ROOT $ENV{EAGLE_ADDON_ROOT})
|
# set(EAGLE_ADDON_ROOT $ENV{EAGLE_ADDON_ROOT})
|
||||||
endif()
|
#endif()
|
||||||
|
|
||||||
if ("$ENV{HEXAGON_SDK_ROOT}" STREQUAL "")
|
if ("$ENV{HEXAGON_SDK_ROOT}" STREQUAL "")
|
||||||
message(FATAL_ERROR "Enviroment variable HEXAGON_SDK_ROOT must be set")
|
message(FATAL_ERROR "Enviroment variable HEXAGON_SDK_ROOT must be set")
|
||||||
@@ -21,8 +21,12 @@ endif()
|
|||||||
STRING(REGEX REPLACE "//" "/" EAGLE_DRIVERS_SRC ${EAGLE_DRIVERS_SRC})
|
STRING(REGEX REPLACE "//" "/" EAGLE_DRIVERS_SRC ${EAGLE_DRIVERS_SRC})
|
||||||
STRING(REGEX REPLACE "/" "__" EAGLE_DRIVERS_MODULE_PREFIX ${EAGLE_DRIVERS_SRC})
|
STRING(REGEX REPLACE "/" "__" EAGLE_DRIVERS_MODULE_PREFIX ${EAGLE_DRIVERS_SRC})
|
||||||
|
|
||||||
include_directories(${EAGLE_ADDON_ROOT}/flight_controller/hexagon/inc)
|
#include_directories(${EAGLE_ADDON_ROOT}/flight_controller/hexagon/inc)
|
||||||
include_directories(${HEXAGON_SDK_ROOT}/lib/common/qurt/ADSPv5MP/include)
|
include_directories(
|
||||||
|
${HEXAGON_SDK_ROOT}/inc
|
||||||
|
${HEXAGON_SDK_ROOT}/inc/stddef
|
||||||
|
${HEXAGON_SDK_ROOT}/lib/common/qurt/ADSPv5MP/include
|
||||||
|
)
|
||||||
|
|
||||||
message("hexagon_sdk_root is ${HEXAGON_SDK_ROOT}")
|
message("hexagon_sdk_root is ${HEXAGON_SDK_ROOT}")
|
||||||
|
|
||||||
@@ -30,9 +34,9 @@ set(QURT_ENABLE_STUBS "0")
|
|||||||
|
|
||||||
set(CONFIG_SHMEM "1")
|
set(CONFIG_SHMEM "1")
|
||||||
|
|
||||||
|
#-L${EAGLE_ADDON_ROOT}/flight_controller/hexagon/libs
|
||||||
# For Actual flight we need to link against the driver dynamic libraries
|
# For Actual flight we need to link against the driver dynamic libraries
|
||||||
set(target_libraries
|
set(target_libraries
|
||||||
-L${EAGLE_ADDON_ROOT}/flight_controller/hexagon/libs
|
|
||||||
mpu9x50
|
mpu9x50
|
||||||
uart_esc
|
uart_esc
|
||||||
csr_gps
|
csr_gps
|
||||||
@@ -49,10 +53,10 @@ set(config_module_list
|
|||||||
#
|
#
|
||||||
drivers/device
|
drivers/device
|
||||||
modules/sensors
|
modules/sensors
|
||||||
${EAGLE_DRIVERS_SRC}/mpu9x50
|
#${EAGLE_DRIVERS_SRC}/mpu9x50
|
||||||
${EAGLE_DRIVERS_SRC}/uart_esc
|
${EAGLE_DRIVERS_SRC}/uart_esc
|
||||||
${EAGLE_DRIVERS_SRC}/rc_receiver
|
#${EAGLE_DRIVERS_SRC}/rc_receiver
|
||||||
${EAGLE_DRIVERS_SRC}/csr_gps
|
#${EAGLE_DRIVERS_SRC}/csr_gps
|
||||||
|
|
||||||
#
|
#
|
||||||
# System commands
|
# System commands
|
||||||
|
|||||||
Reference in New Issue
Block a user