spl: Kconfig: migrate $(SPL_TPL_)LDSCRIPT to Kconfig
Now that we have split up SPL_LDSCRIPT into a SPL and TPL variant and have started to use the TPL-variant for the RK3368, it's time to clean up behind ourselves: move both variants into Kconfig and remove them from the whitelist. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -103,9 +103,16 @@ u-boot-spl-platdata := $(obj)/dts/dt-platdata.o
|
||||
endif
|
||||
|
||||
# Linker Script
|
||||
ifdef CONFIG_$(SPL_TPL_)LDSCRIPT
|
||||
# First test whether there's a linker-script for the specific stage defined...
|
||||
ifneq ($(CONFIG_$(SPL_TPL_)LDSCRIPT),)
|
||||
# need to strip off double quotes
|
||||
LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_$(SPL_TPL_)LDSCRIPT:"%"=%))
|
||||
else
|
||||
# ...then fall back to the generic SPL linker-script
|
||||
ifneq ($(CONFIG_SPL_LDSCRIPT),)
|
||||
# need to strip off double quotes
|
||||
LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_SPL_LDSCRIPT:"%"=%))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(wildcard $(LDSCRIPT)),)
|
||||
|
||||
Reference in New Issue
Block a user