diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /arch/arm/boot/Makefile | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'arch/arm/boot/Makefile')
-rw-r--r-- | arch/arm/boot/Makefile | 42 |
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 | ||
14 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
15 | |||
14 | ifneq ($(MACHINE),) | 16 | ifneq ($(MACHINE),) |
15 | include $(srctree)/$(MACHINE)/Makefile.boot | 17 | include $(srctree)/$(MACHINE)/Makefile.boot |
16 | endif | 18 | endif |
@@ -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 | ||
58 | endif | 60 | endif |
59 | 61 | ||
60 | ifneq ($(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 | |||
68 | quiet_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 | |||
73 | ifeq ($(CONFIG_ZBOOT_ROM),y) | ||
74 | $(obj)/uImage: LOADADDR=$(CONFIG_ZBOOT_ROM_TEXT) | ||
62 | else | 75 | else |
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 | ||
68 | endif | 77 | endif |
69 | 78 | ||
70 | check_for_multiple_loadaddr = \ | 79 | $(obj)/uImage: STARTADDR=$(LOADADDR) |
71 | if [ $(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; \ | ||
76 | fi | ||
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 | ||
91 | PHONY += initrd FORCE | 93 | PHONY += initrd FORCE |
92 | initrd: | 94 | initrd: |