Critical: Fixes Snapdragon Flight parameter synchronization problem (#6910)

* cmake: Fixes problem caused when the generated parameters.xml differs for the ARM and DSP builds.

* fix px4_getopt.h: add accidentally removed file
This commit is contained in:
Beat Küng
2017-03-28 16:10:17 +02:00
committed by ChristophTobler
parent 7ef3b92109
commit d7703173b2
15 changed files with 58 additions and 76 deletions

View File

@@ -8,8 +8,6 @@ endif()
set(CONFIG_SHMEM "1")
set(config_generate_parameters_scope ALL)
# Get $QC_SOC_TARGET from environment if existing.
if (DEFINED ENV{QC_SOC_TARGET})
set(QC_SOC_TARGET $ENV{QC_SOC_TARGET})
@@ -17,6 +15,13 @@ else()
set(QC_SOC_TARGET "APQ8074")
endif()
# Disable the creation of the parameters.xml file by scanning individual
# source files, and scan all source files. This will create a parameters.xml
# file that contains all possible parameters, even if the associated module
# is not used. This is necessary for parameter synchronization between the
# ARM and DSP processors.
set(DISABLE_PARAMS_MODULE_SCOPING TRUE)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PX4_SOURCE_DIR}/cmake/cmake_hexagon")
include(toolchain/Toolchain-qurt)
include(qurt_flags)