]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: sunxi: Move u-boot-sunxi-with-spl.bin rule to Makefile
authorTuomas Tynkkynen <tuomas@tuxera.com>
Tue, 6 Mar 2018 21:38:21 +0000 (23:38 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 13 Mar 2018 15:06:16 +0000 (20:36 +0530)
We're going to need this logic for 64-bit builds as well, so move it
out from under arch/arm/cpu/armv7.

Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Makefile
arch/arm/cpu/armv7/sunxi/config.mk [deleted file]

index 6b2aac6713c4ac35820c96b8d1307f6479af00d9..2d825b9c41a6c4c595e2015b46c34e2fc79a918a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -800,6 +800,11 @@ ifneq ($(BUILD_ROM)$(CONFIG_BUILD_ROM),)
 ALL-$(CONFIG_X86_RESET_VECTOR) += u-boot.rom
 endif
 
+# Build a combined spl + u-boot image for sunxi
+ifeq ($(CONFIG_ARCH_SUNXI)$(CONFIG_SPL),yy)
+ALL-y += u-boot-sunxi-with-spl.bin
+endif
+
 # enable combined SPL/u-boot/dtb rules for tegra
 ifeq ($(CONFIG_TEGRA)$(CONFIG_SPL),yy)
 ALL-y += u-boot-tegra.bin u-boot-nodtb-tegra.bin
diff --git a/arch/arm/cpu/armv7/sunxi/config.mk b/arch/arm/cpu/armv7/sunxi/config.mk
deleted file mode 100644 (file)
index 76ffec9..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-# Build a combined spl + u-boot image
-ifdef CONFIG_SPL
-ifndef CONFIG_SPL_BUILD
-ALL-y += u-boot-sunxi-with-spl.bin
-endif
-endif