mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 14:23:00 +00:00
6ab77bb14f
Commit 65cc0e2a65
("global: Move remaining CONFIG_SYS_* to CFG_SYS_*")
renamed CONFIG_SYS_UBOOT_START to CFG_SYS_UBOOT_START. Unfortunately,
this meant that the value was no longer available to the Makefile. This
caused imxrt to fail to boot. All the other boards that used this
variable were unaffected because they were using the default value
which is CONFIG_TEXT_BASE.
This commit converts CFG_SYS_UBOOT_START to Kconfig and sets the default
value to CONFIG_TEXT_BASE.
Suggested-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Suggested-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Jesse Taube <Mr.Bossman075@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
44 lines
1.6 KiB
Makefile
44 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (C) 2018 Texas Instruments, Incorporated - http://www.ti.com/
|
|
# Andrew F. Davis <afd@ti.com>
|
|
|
|
quiet_cmd_k3secureimg = SECURE $@
|
|
ifneq ($(TI_SECURE_DEV_PKG),)
|
|
ifneq ($(wildcard $(TI_SECURE_DEV_PKG)/scripts/secure-binary-image.sh),)
|
|
cmd_k3secureimg = $(TI_SECURE_DEV_PKG)/scripts/secure-binary-image.sh \
|
|
$< $@ \
|
|
$(if $(KBUILD_VERBOSE:1=), >/dev/null)
|
|
else
|
|
cmd_k3secureimg = echo "WARNING:" \
|
|
"$(TI_SECURE_DEV_PKG)/scripts/secure-binary-image.sh not found." \
|
|
"$@ was NOT secured!"; cp $< $@
|
|
endif
|
|
else
|
|
cmd_k3secureimg = echo "WARNING: TI_SECURE_DEV_PKG environment" \
|
|
"variable must be defined for TI secure devices." \
|
|
"$@ was NOT secured!"; cp $< $@
|
|
endif
|
|
|
|
%.dtb_HS: %.dtb FORCE
|
|
$(call if_changed,k3secureimg)
|
|
|
|
$(obj)/u-boot-spl-nodtb.bin_HS: $(obj)/u-boot-spl-nodtb.bin FORCE
|
|
$(call if_changed,k3secureimg)
|
|
|
|
tispl.bin_HS: $(obj)/u-boot-spl-nodtb.bin_HS $(patsubst %,$(obj)/dts/%.dtb_HS,$(subst ",,$(CONFIG_SPL_OF_LIST))) $(SPL_ITS) FORCE
|
|
$(call if_changed,mkfitimage)
|
|
|
|
MKIMAGEFLAGS_u-boot.img_HS = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
|
|
-a $(CONFIG_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
|
|
-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board" -E \
|
|
$(patsubst %,-b arch/$(ARCH)/dts/%.dtb_HS,$(subst ",,$(CONFIG_OF_LIST)))
|
|
|
|
OF_LIST_TARGETS = $(patsubst %,arch/$(ARCH)/dts/%.dtb,$(subst ",,$(CONFIG_OF_LIST)))
|
|
$(OF_LIST_TARGETS): dtbs
|
|
|
|
u-boot-nodtb.bin_HS: u-boot-nodtb.bin FORCE
|
|
$(call if_changed,k3secureimg)
|
|
|
|
u-boot.img_HS: u-boot-nodtb.bin_HS u-boot.img $(patsubst %.dtb,%.dtb_HS,$(OF_LIST_TARGETS)) FORCE
|
|
$(call if_changed,mkimage)
|