mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 11:43:34 +08:00
Add header file for arhitecture/implementation specific px4 crypto and
configuration for cmake Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Beat Küng
parent
b3e9904df0
commit
d068ae48d6
@@ -61,6 +61,8 @@
|
||||
# [ TESTING ]
|
||||
# [ LINKER_PREFIX <string> ]
|
||||
# [ ETHERNET ]
|
||||
# [ CRYPTO <string> ]
|
||||
# [ KEYSTORE <string> ]
|
||||
# )
|
||||
#
|
||||
# Input:
|
||||
@@ -86,6 +88,8 @@
|
||||
# TESTING : flag to enable automatic inclusion of PX4 testing modules
|
||||
# LINKER_PREFIX : optional to prefix on the Linker script.
|
||||
# ETHERNET : flag to indicate that ethernet is enabled
|
||||
# CRYPTO : Crypto implementation selection
|
||||
# KEYSTORE : Keystore implememntation selection
|
||||
#
|
||||
#
|
||||
# Example:
|
||||
@@ -149,6 +153,8 @@ function(px4_add_board)
|
||||
UAVCAN_INTERFACES
|
||||
UAVCAN_TIMER_OVERRIDE
|
||||
LINKER_PREFIX
|
||||
CRYPTO
|
||||
KEYSTORE
|
||||
MULTI_VALUE
|
||||
DRIVERS
|
||||
MODULES
|
||||
@@ -267,6 +273,14 @@ function(px4_add_board)
|
||||
set(PX4_ETHERNET "1" CACHE INTERNAL "ethernet enabled" FORCE)
|
||||
endif()
|
||||
|
||||
if(CRYPTO)
|
||||
set(PX4_CRYPTO ${CRYPTO} CACHE STRING "PX4 crypto implementation" FORCE)
|
||||
endif()
|
||||
|
||||
if(KEYSTORE)
|
||||
set(PX4_KEYSTORE ${KEYSTORE} CACHE STRING "PX4 keystore implementation" FORCE)
|
||||
endif()
|
||||
|
||||
if(LINKER_PREFIX)
|
||||
set(PX4_BOARD_LINKER_PREFIX ${LINKER_PREFIX} CACHE STRING "PX4 board linker prefix" FORCE)
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user