mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
gh-548: Update use of cmake_minimum_required cmd
Only call the command on CMake files that may be the first file evaluated from the project. Remove from all other files. Signed-off-by: Kent McLeod <kent@kry10.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
set(KERNEL_PATH "${CMAKE_CURRENT_LIST_DIR}" CACHE STRING "")
|
||||
set(KERNEL_HELPERS_PATH "${CMAKE_CURRENT_LIST_DIR}/tools/helpers.cmake" CACHE STRING "")
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
config_option(
|
||||
KernelIsMCS KERNEL_MCS "Use the MCS kernel configuration, which is not verified." DEFAULT OFF
|
||||
)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
set(KERNEL_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
|
||||
|
||||
|
||||
@@ -4,6 +4,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_bf_source_old("Kernel32" "shared_types.bf" "libsel4/mode_include/32" "sel4")
|
||||
|
||||
@@ -4,6 +4,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_bf_source_old("Kernel64" "shared_types.bf" "libsel4/mode_include/64" "sel4")
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_sources(
|
||||
DEP "KernelSel4ArchAarch32"
|
||||
PREFIX src/arch/arm/32
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_sources(
|
||||
DEP "KernelSel4ArchAarch64"
|
||||
PREFIX src/arch/arm/64
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_sources(
|
||||
DEP "KernelArchArmV7a"
|
||||
PREFIX src/arch/arm/armv/armv7-a
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_sources(
|
||||
DEP "KernelArchArmV8a"
|
||||
PREFIX src/arch/arm/armv/armv8-a/${KernelWordSize}
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
if(KernelSel4ArchAarch32)
|
||||
set_property(
|
||||
TARGET kernel_config_target
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
config_string(
|
||||
KernelPTLevels PT_LEVELS "Number of page \
|
||||
table levels for RISC-V depends on the mode. For example there are: \
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_sources(
|
||||
DEP "KernelSel4ArchIA32"
|
||||
PREFIX src/arch/x86/32
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_sources(
|
||||
DEP "KernelSel4ArchX86_64"
|
||||
PREFIX src/arch/x86/64
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
if(KernelArchX86)
|
||||
set_property(
|
||||
TARGET kernel_config_target
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
add_sources(
|
||||
CFILES
|
||||
src/inlines.c
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
macro(register_driver compatibility_strings match_strings)
|
||||
foreach(match_string IN ITEMS ${match_strings})
|
||||
list(FIND ${compatibility_strings} ${match_string} res)
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
register_driver(
|
||||
compatibility_strings "brcm,bcm2835-aux-uart"
|
||||
PREFIX src/drivers/serial
|
||||
|
||||
@@ -4,6 +4,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
register_driver(compatibility_strings "arm,mmu-500" PREFIX src/drivers/smmu CFILES "smmuv2.c")
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
register_driver(
|
||||
compatibility_strings "ti,am335x-timer"
|
||||
PREFIX src/drivers/timer
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
declare_platform(hifive-p550 KernelPlatformHifiveP550 PLAT_HIFIVE_P550 KernelArchRiscV)
|
||||
|
||||
if(KernelPlatformHifiveP550)
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
declare_platform(bananapi-f3 KernelPlatformBananapiF3 PLAT_BANANAPIF3 KernelArchRiscV)
|
||||
|
||||
if(KernelPlatformBananapiF3)
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.16.0)
|
||||
|
||||
# File for helpers that are very specific to the kernel
|
||||
|
||||
function(gen_invocation_header)
|
||||
|
||||
Reference in New Issue
Block a user