aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/Makefile
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /arch/arm/boot/Makefile
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'arch/arm/boot/Makefile')
-rw-r--r--arch/arm/boot/Makefile42
1 files changed, 22 insertions, 20 deletions
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
index abfce280f57..a1edfd5a129 100644
--- a/arch/arm/boot/Makefile
+++ b/arch/arm/boot/Makefile
@@ -11,6 +11,8 @@
11# Copyright (C) 1995-2002 Russell King 11# Copyright (C) 1995-2002 Russell King
12# 12#
13 13
14MKIMAGE := $(srctree)/scripts/mkuboot.sh
15
14ifneq ($(MACHINE),) 16ifneq ($(MACHINE),)
15include $(srctree)/$(MACHINE)/Makefile.boot 17include $(srctree)/$(MACHINE)/Makefile.boot
16endif 18endif
@@ -31,7 +33,7 @@ ifeq ($(CONFIG_XIP_KERNEL),y)
31 33
32$(obj)/xipImage: vmlinux FORCE 34$(obj)/xipImage: vmlinux FORCE
33 $(call if_changed,objcopy) 35 $(call if_changed,objcopy)
34 @$(kecho) ' Kernel: $@ is ready (physical address: $(CONFIG_XIP_PHYS_ADDR))' 36 @echo ' Kernel: $@ is ready (physical address: $(CONFIG_XIP_PHYS_ADDR))'
35 37
36$(obj)/Image $(obj)/zImage: FORCE 38$(obj)/Image $(obj)/zImage: FORCE
37 @echo 'Kernel configured for XIP (CONFIG_XIP_KERNEL=y)' 39 @echo 'Kernel configured for XIP (CONFIG_XIP_KERNEL=y)'
@@ -46,39 +48,39 @@ $(obj)/xipImage: FORCE
46 48
47$(obj)/Image: vmlinux FORCE 49$(obj)/Image: vmlinux FORCE
48 $(call if_changed,objcopy) 50 $(call if_changed,objcopy)
49 @$(kecho) ' Kernel: $@ is ready' 51 @echo ' Kernel: $@ is ready'
50 52
51$(obj)/compressed/vmlinux: $(obj)/Image FORCE 53$(obj)/compressed/vmlinux: $(obj)/Image FORCE
52 $(Q)$(MAKE) $(build)=$(obj)/compressed $@ 54 $(Q)$(MAKE) $(build)=$(obj)/compressed $@
53 55
54$(obj)/zImage: $(obj)/compressed/vmlinux FORCE 56$(obj)/zImage: $(obj)/compressed/vmlinux FORCE
55 $(call if_changed,objcopy) 57 $(call if_changed,objcopy)
56 @$(kecho) ' Kernel: $@ is ready' 58 @echo ' Kernel: $@ is ready'
57 59
58endif 60endif
59 61
60ifneq ($(LOADADDR),) 62# Rule to build device tree blobs
61 UIMAGE_LOADADDR=$(LOADADDR) 63$(obj)/%.dtb: $(src)/dts/%.dts
64 $(call cmd,dtc)
65
66$(obj)/dtbs: $(addprefix $(obj)/, $(dtb-y))
67
68quiet_cmd_uimage = UIMAGE $@
69 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A arm -O linux -T kernel \
70 -C none -a $(LOADADDR) -e $(STARTADDR) \
71 -n 'Linux-$(KERNELRELEASE)' -d $< $@
72
73ifeq ($(CONFIG_ZBOOT_ROM),y)
74$(obj)/uImage: LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT)
62else 75else
63 ifeq ($(CONFIG_ZBOOT_ROM),y) 76$(obj)/uImage: LOADADDR=$(ZRELADDR)
64 UIMAGE_LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT)
65 else
66 UIMAGE_LOADADDR=$(ZRELADDR)
67 endif
68endif 77endif
69 78
70check_for_multiple_loadaddr = \ 79$(obj)/uImage: STARTADDR=$(LOADADDR)
71if [ $(words $(UIMAGE_LOADADDR)) -gt 1 ]; then \
72 echo 'multiple load addresses: $(UIMAGE_LOADADDR)'; \
73 echo 'This is incompatible with uImages'; \
74 echo 'Specify LOADADDR on the commandline to build an uImage'; \
75 false; \
76fi
77 80
78$(obj)/uImage: $(obj)/zImage FORCE 81$(obj)/uImage: $(obj)/zImage FORCE
79 @$(check_for_multiple_loadaddr)
80 $(call if_changed,uimage) 82 $(call if_changed,uimage)
81 @$(kecho) ' Image $@ is ready' 83 @echo ' Image $@ is ready'
82 84
83$(obj)/bootp/bootp: $(obj)/zImage initrd FORCE 85$(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
84 $(Q)$(MAKE) $(build)=$(obj)/bootp $@ 86 $(Q)$(MAKE) $(build)=$(obj)/bootp $@
@@ -86,7 +88,7 @@ $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
86 88
87$(obj)/bootpImage: $(obj)/bootp/bootp FORCE 89$(obj)/bootpImage: $(obj)/bootp/bootp FORCE
88 $(call if_changed,objcopy) 90 $(call if_changed,objcopy)
89 @$(kecho) ' Kernel: $@ is ready' 91 @echo ' Kernel: $@ is ready'
90 92
91PHONY += initrd FORCE 93PHONY += initrd FORCE
92initrd: 94initrd: