From 735de5fc389c58558739c3aeebb67091fcded4a8 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 18 Mar 2019 16:08:42 +0100 Subject: [PATCH] soc: kconfig: Simplify SOC_*_LD deps. with an 'if' 'if FOO' is equivalent to adding 'depends on FOO' to each item within the 'if'. Signed-off-by: Ulf Magnusson --- soc/Kconfig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/soc/Kconfig b/soc/Kconfig index c1dbebdf8a8..726bce00ca6 100644 --- a/soc/Kconfig +++ b/soc/Kconfig @@ -32,9 +32,11 @@ config SOC_COMPATIBLE_NRF52832 # # SOC_*_LD: SoC specific Linker script additions # + +if ARC || ARM || X86 || NIOS2 || RISCV32 + config SOC_NOINIT_LD bool - depends on (ARC || ARM || X86 || NIOS2 || RISCV32) help Include an SoC specific linker script fragment named soc-noinit.ld for inserting additional data and linker directives into @@ -45,7 +47,6 @@ config SOC_NOINIT_LD config SOC_RODATA_LD bool - depends on (ARC || ARM || X86 || NIOS2 || RISCV32) help Include an SoC specific linker script fragment named soc-rodata.ld for inserting additional data and linker directives into @@ -56,7 +57,6 @@ config SOC_RODATA_LD config SOC_RWDATA_LD bool - depends on (ARC || ARM || X86 || NIOS2 || RISCV32) help Include an SoC specific linker script fragment named soc-rwdata.ld for inserting additional data and linker directives into @@ -64,3 +64,5 @@ config SOC_RWDATA_LD This only has effect if the SoC uses the common linker script under include/arch/. + +endif # ARC || ARM || X86 || NIOS2 || RISCV32