From b7520e262b6b07e72bd18f4280156e324edac11b Mon Sep 17 00:00:00 2001 From: Shell Date: Tue, 19 Nov 2024 16:18:00 +0800 Subject: [PATCH] feat: Kconfig: moving the arm64 specified configs to sub-menu Just for better readability. Signed-off-by: Shell --- libcpu/Kconfig | 26 +------------------------- libcpu/aarch64/Kconfig | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 25 deletions(-) create mode 100644 libcpu/aarch64/Kconfig diff --git a/libcpu/Kconfig b/libcpu/Kconfig index 2162b25f1f..1edace109a 100644 --- a/libcpu/Kconfig +++ b/libcpu/Kconfig @@ -1,29 +1,5 @@ if ARCH_ARMV8 && ARCH_CPU_64BIT - menu "AArch64 Architecture Configuration" - config ARCH_TEXT_OFFSET - hex "Text offset" - default 0x200000 - config ARCH_RAM_OFFSET - hex "RAM offset" - default 0 - config ARCH_SECONDARY_CPU_STACK_SIZE - int "Secondary CPU stack size" - default 4096 - config ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS - bool - default y - config ARCH_USING_GENERIC_CPUID - bool "Using generic cpuid implemenation" - select ARCH_USING_HW_THREAD_SELF - default y if RT_USING_OFW - default n - config ARCH_HEAP_SIZE - hex "Size of system heap" - default 0x4000000 - config ARCH_INIT_PAGE_SIZE - hex "Size of init page region" - default 0x200000 - endmenu + orsource "./aarch64/Kconfig" endif config ARCH_CPU_64BIT diff --git a/libcpu/aarch64/Kconfig b/libcpu/aarch64/Kconfig new file mode 100644 index 0000000000..5429751d3a --- /dev/null +++ b/libcpu/aarch64/Kconfig @@ -0,0 +1,25 @@ +menu "AArch64 Architecture Configuration" + config ARCH_TEXT_OFFSET + hex "Text offset" + default 0x200000 + config ARCH_RAM_OFFSET + hex "RAM offset" + default 0 + config ARCH_SECONDARY_CPU_STACK_SIZE + int "Secondary CPU stack size" + default 4096 + config ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS + bool + default y + config ARCH_USING_GENERIC_CPUID + bool "Using generic cpuid implemenation" + select ARCH_USING_HW_THREAD_SELF + default y if RT_USING_OFW + default n + config ARCH_HEAP_SIZE + hex "Size of system heap" + default 0x4000000 + config ARCH_INIT_PAGE_SIZE + hex "Size of init page region" + default 0x200000 +endmenu