libsel4: Fix Config name for ENABLE_SMP_SUPPORT

CONFIG_ENABLE_SMP_SUPPORT has the correct namespace for a kernel config
option.

Signed-off-by: Kent McLeod <kent@kry10.com>
This commit is contained in:
Kent McLeod
2021-07-09 11:57:13 +10:00
committed by Kent McLeod
parent 1d2a588bbf
commit b6de9db07a
4 changed files with 13 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ Upcoming release: BINARY COMPATIBLE
* Added support for the ARM Cortex A55
* Added support for the ODroid C4
* Rename libsel4 config option ENABLE_SMP_SUPPORT to CONFIG_ENABLE_SMP_SUPPORT to be namespace compliant.
## Upgrade Notes
---

View File

@@ -274,6 +274,13 @@ config_string(
UNQUOTE
)
# Set CONFIG_ENABLE_SMP_SUPPORT as an alias of CONFIG_MAX_NUM_NODES > 1
if(KernelMaxNumNodes GREATER 1)
config_set(KernelEnableSMPSupport ENABLE_SMP_SUPPORT ON)
else()
config_set(KernelEnableSMPSupport ENABLE_SMP_SUPPORT OFF)
endif()
config_string(
KernelStackBits KERNEL_STACK_BITS
"This describes the log2 size of the kernel stack. Great care should be taken as\

View File

@@ -7,3 +7,8 @@
#pragma once
#include <sel4/config.h>
/* Set ENABLE_SMP_SUPPORT for kernel source files */
#ifdef CONFIG_ENABLE_SMP_SUPPORT
#define ENABLE_SMP_SUPPORT
#endif

View File

@@ -10,11 +10,6 @@
#include <autoconf.h>
/* Alias CONFIG_MAX_NUM_NODES > 1 to ENABLE_SMP_SUPPORT */
#if CONFIG_MAX_NUM_NODES > 1
#define ENABLE_SMP_SUPPORT
#endif
#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT
#ifdef CONFIG_ARM_PA_SIZE_BITS_40
#define AARCH64_VSPACE_S2_START_L1