mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:23:33 +08:00
[Kconfig] Move UAVCANv0 num interfaces to Kconfig
This commit is contained in:
committed by
Daniel Agar
parent
16f86a99c2
commit
a0821afafd
@@ -151,5 +151,17 @@ if(EXISTS ${BOARD_DEFCONFIG})
|
||||
|
||||
list(APPEND config_module_list examples/${example})
|
||||
endif()
|
||||
|
||||
# Find variable name
|
||||
string(REGEX MATCH "^CONFIG_UAVCAN_INTERFACES" UAVCAN_INTERFACES ${NameAndValue})
|
||||
|
||||
# Temporary located here to maintain binary compatibility, have to be removed later
|
||||
if(UAVCAN_INTERFACES)
|
||||
# Find the value
|
||||
string(REPLACE "${Name}=" "" Value ${NameAndValue})
|
||||
|
||||
set(config_uavcan_num_ifaces ${Value} CACHE INTERNAL "UAVCAN interfaces" FORCE)
|
||||
endif()
|
||||
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user