[PATCH] ARM: make mach-xyz/Makefile.boot optional for !ARCH_MULTIPLATFORM
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Oct 21 16:42:42 EDT 2013
Makefile.boot is supposed to define zreladdr-y, params_phys-y and
initrd_phys-y. The first one is only needed in the absence of AUTO_ZRELADDR
and when building a zImage. The latters are only needed for bootp stuff.
So ignore errors on including Makefile.boot and error out in the targets
that need the corresponding settings.
This makes it unnecessary to create dummy Makefile.boot files.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
arch/arm/boot/Makefile | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
index 84aa2ca..44203b3 100644
--- a/arch/arm/boot/Makefile
+++ b/arch/arm/boot/Makefile
@@ -12,7 +12,7 @@
#
ifneq ($(MACHINE),)
-include $(srctree)/$(MACHINE)/Makefile.boot
+sinclude $(srctree)/$(MACHINE)/Makefile.boot
endif
# Note: the following conditions must always be true:
@@ -51,10 +51,19 @@ $(obj)/Image: vmlinux FORCE
$(obj)/compressed/vmlinux: $(obj)/Image FORCE
$(Q)$(MAKE) $(build)=$(obj)/compressed $@
+ifneq ($(CONFIG_AUTO_ZRELADDR)$(ZRELADDR),)
+
$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
$(call if_changed,objcopy)
@$(kecho) ' Kernel: $@ is ready'
+else
+
+$(obj)/zImage: FORCE
+ @echo 'Either enable CONFIG_AUTO_ZRELADDR or provide zreladdr-y in Makefile.boot'
+ @false
+
+endif
endif
ifneq ($(LOADADDR),)
@@ -81,6 +90,8 @@ $(obj)/uImage: $(obj)/zImage FORCE
@$(kecho) ' Image $@ is ready'
$(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
+ @test -n "$(PARAMS_PHYS)" || \
+ (echo This machine does not support BOOTP; exit -1)
$(Q)$(MAKE) $(build)=$(obj)/bootp $@
@:
--
1.8.4.rc3
More information about the linux-arm-kernel
mailing list