From ce432c93edb57b250f97ac64c15c33ccefa88454 Mon Sep 17 00:00:00 2001 From: "George G. Davis" Date: Thu, 16 Oct 2003 22:32:23 +0100 Subject: [PATCH] [ARM PATCH] 1684/1: Add uImage build target rule Patch from George G. Davis This adds an `make uImage` build target rule to create boot images for targets which use u-Boot firmware. This build target already exists for the PPC architecture. --- arch/arm/Makefile | 2 +- arch/arm/boot/Makefile | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 5991263f6f624..dcdd353b01740 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -149,7 +149,7 @@ maketools: include/asm-arm/.arch \ bzImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage -zImage Image bootpImage: vmlinux +zImage Image bootpImage uImage: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ zinstall install: vmlinux diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index e087b89bd5946..980d7f2d7a6df 100644 --- a/arch/arm/boot/Makefile +++ b/arch/arm/boot/Makefile @@ -8,6 +8,8 @@ # Copyright (C) 1995-2002 Russell King # +MKIMAGE := $(srctree)/scripts/mkuboot.sh + # Note: the following conditions must always be true: # ZRELADDR == virt_to_phys(TEXTADDR) # PARAMS_PHYS must be with 4MB of ZRELADDR @@ -78,6 +80,16 @@ $(obj)/zImage: $(obj)/compressed/vmlinux FORCE $(call if_changed,objcopy) @echo ' Kernel: $@ is ready' +quite_cmd_uimage = UIMAGE $@ + cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \ + -C none -a $(ZRELADDR) -e $(ZRELADDR) \ + -n 'Linux-$(KERNELRELEASE)' -d $< $@ + +targets += uImage +$(obj)/uImage: $(obj)/zImage + $(call if_changed,uimage) + @echo ' Image $@ is ready' + $(obj)/bootpImage: $(obj)/bootp/bootp FORCE $(call if_changed,objcopy) @echo ' Kernel: $@ is ready' -- 2.53.0