ipq806x: Add support for IPQ806x chip family
[openwrt/staging/yousong.git] / target / linux / ipq806x / patches / 0132-XXX-Add-boot-support-for-u-boot.ipq-image.patch
1 From 776fff11c1bf57e564a386521e56c277287a568c Mon Sep 17 00:00:00 2001
2 From: Kumar Gala <galak@codeaurora.org>
3 Date: Thu, 8 May 2014 13:40:16 -0500
4 Subject: [PATCH 132/182] XXX: Add boot support for u-boot.ipq image
5
6 ---
7 arch/arm/Makefile | 2 +-
8 arch/arm/boot/Makefile | 11 ++++++++++-
9 2 files changed, 11 insertions(+), 2 deletions(-)
10
11 diff --git a/arch/arm/Makefile b/arch/arm/Makefile
12 index 51e5bed..e9fc731 100644
13 --- a/arch/arm/Makefile
14 +++ b/arch/arm/Makefile
15 @@ -297,7 +297,7 @@ archprepare:
16 # Convert bzImage to zImage
17 bzImage: zImage
18
19 -BOOT_TARGETS = zImage Image xipImage bootpImage uImage
20 +BOOT_TARGETS = zImage Image xipImage bootpImage uImage uImage.ipq Image.gz
21 INSTALL_TARGETS = zinstall uinstall install
22
23 PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS)
24 diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
25 index ec2f806..3cbc83e 100644
26 --- a/arch/arm/boot/Makefile
27 +++ b/arch/arm/boot/Makefile
28 @@ -25,7 +25,7 @@ INITRD_PHYS := $(initrd_phys-y)
29
30 export ZRELADDR INITRD_PHYS PARAMS_PHYS
31
32 -targets := Image zImage xipImage bootpImage uImage
33 +targets := Image zImage xipImage bootpImage uImage uImage.ipq Image.gz
34
35 ifeq ($(CONFIG_XIP_KERNEL),y)
36
37 @@ -80,6 +80,15 @@ $(obj)/uImage: $(obj)/zImage FORCE
38 $(call if_changed,uimage)
39 @$(kecho) ' Image $@ is ready'
40
41 +$(obj)/uImage.ipq: $(obj)/Image.gz FORCE
42 + @$(check_for_multiple_loadaddr)
43 + $(call if_changed,uimage,gzip)
44 + @$(kecho) ' Image $@ is ready'
45 +
46 +$(obj)/Image.gz: $(obj)/Image FORCE
47 + $(call if_changed,gzip)
48 + @$(kecho) ' Image $@ is ready'
49 +
50 $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
51 $(Q)$(MAKE) $(build)=$(obj)/bootp $@
52 @:
53 --
54 1.7.10.4
55