Browse Source

kconfig: do not inherit for recovery.px4board from default.px4board

master
Beat Küng 3 years ago committed by Daniel Agar
parent
commit
aa96e39306
  1. 4
      Tools/generate_board_targets_json.py
  2. 2
      cmake/kconfig.cmake

4
Tools/generate_board_targets_json.py

@ -41,7 +41,9 @@ def process_target(px4board_file, target_name): @@ -41,7 +41,9 @@ def process_target(px4board_file, target_name):
platform = None
toolchain = None
if px4board_file.endswith("default.px4board"):
if px4board_file.endswith("default.px4board") or \
px4board_file.endswith("recovery.px4board") or \
px4board_file.endswith("bootloader.px4board"):
kconf.load_config(px4board_file, replace=True)
else: # Merge config with default.px4board
default_kconfig = re.sub(r'[a-zA-Z\d_]+\.px4board', 'default.px4board', px4board_file)

2
cmake/kconfig.cmake

@ -31,7 +31,7 @@ if(EXISTS ${BOARD_DEFCONFIG}) @@ -31,7 +31,7 @@ if(EXISTS ${BOARD_DEFCONFIG})
# Depend on BOARD_DEFCONFIG so that we reconfigure on config change
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${BOARD_DEFCONFIG})
if(${LABEL} MATCHES "default" OR ${LABEL} MATCHES "bootloader" OR ${LABEL} MATCHES "canbootloader")
if(${LABEL} MATCHES "default" OR ${LABEL} MATCHES "recovery" OR ${LABEL} MATCHES "bootloader" OR ${LABEL} MATCHES "canbootloader")
# Generate boardconfig from saved defconfig
execute_process(COMMAND ${CMAKE_COMMAND} -E env ${COMMON_KCONFIG_ENV_SETTINGS}
${DEFCONFIG_PATH} ${BOARD_DEFCONFIG}

Loading…
Cancel
Save