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:
Jukka Laitinen
2021-06-25 08:35:58 +02:00
committed by Beat Küng
parent b3e9904df0
commit d068ae48d6
3 changed files with 175 additions and 0 deletions
+14
View File
@@ -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()