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 <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-03-18 16:08:42 +01:00 committed by Kumar Gala
commit 735de5fc38

View file

@ -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