aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/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/powerpc/boot/Makefile
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r--arch/powerpc/boot/Makefile84
1 files changed, 31 insertions, 53 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 6a15c968d21..c26200b40a4 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -45,7 +45,6 @@ $(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
45$(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405 45$(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405
46$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405 46$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
47$(obj)/treeboot-iss4xx.o: BOOTCFLAGS += -mcpu=405 47$(obj)/treeboot-iss4xx.o: BOOTCFLAGS += -mcpu=405
48$(obj)/treeboot-currituck.o: BOOTCFLAGS += -mcpu=405
49$(obj)/virtex405-head.o: BOOTAFLAGS += -mcpu=405 48$(obj)/virtex405-head.o: BOOTAFLAGS += -mcpu=405
50 49
51 50
@@ -59,55 +58,34 @@ $(addprefix $(obj)/,$(zlib) cuboot-c2k.o gunzip_util.o main.o prpmc2800.o): \
59libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c 58libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
60libfdtheader := fdt.h libfdt.h libfdt_internal.h 59libfdtheader := fdt.h libfdt.h libfdt_internal.h
61 60
62$(addprefix $(obj)/,$(libfdt) libfdt-wrapper.o simpleboot.o epapr.o): \ 61$(addprefix $(obj)/,$(libfdt) libfdt-wrapper.o simpleboot.o): \
63 $(addprefix $(obj)/,$(libfdtheader)) 62 $(addprefix $(obj)/,$(libfdtheader))
64 63
65src-wlib-y := string.S crt0.S crtsavres.S stdio.c main.c \ 64src-wlib := string.S crt0.S crtsavres.S stdio.c main.c \
66 $(libfdt) libfdt-wrapper.c \ 65 $(libfdt) libfdt-wrapper.c \
67 ns16550.c serial.c simple_alloc.c div64.S util.S \ 66 ns16550.c serial.c simple_alloc.c div64.S util.S \
68 gunzip_util.c elf_util.c $(zlib) devtree.c stdlib.c \ 67 gunzip_util.c elf_util.c $(zlib) devtree.c oflib.c ofconsole.c \
69 oflib.c ofconsole.c cuboot.c mpsc.c cpm-serial.c \ 68 4xx.c ebony.c mv64x60.c mpsc.c mv64x60_i2c.c cuboot.c bamboo.c \
70 uartlite.c mpc52xx-psc.c 69 cpm-serial.c stdlib.c mpc52xx-psc.c planetcore.c uartlite.c \
71src-wlib-$(CONFIG_40x) += 4xx.c planetcore.c 70 fsl-soc.c mpc8xx.c pq2.c ugecon.c
72src-wlib-$(CONFIG_44x) += 4xx.c ebony.c bamboo.c 71src-plat := of.c cuboot-52xx.c cuboot-824x.c cuboot-83xx.c cuboot-85xx.c holly.c \
73src-wlib-$(CONFIG_8xx) += mpc8xx.c planetcore.c 72 cuboot-ebony.c cuboot-hotfoot.c epapr.c treeboot-ebony.c \
74src-wlib-$(CONFIG_PPC_82xx) += pq2.c fsl-soc.c planetcore.c 73 prpmc2800.c \
75src-wlib-$(CONFIG_EMBEDDED6xx) += mv64x60.c mv64x60_i2c.c ugecon.c 74 ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c \
76 75 cuboot-pq2.c cuboot-sequoia.c treeboot-walnut.c \
77src-plat-y := of.c 76 cuboot-bamboo.c cuboot-mpc7448hpc2.c cuboot-taishan.c \
78src-plat-$(CONFIG_40x) += fixed-head.S ep405.c cuboot-hotfoot.c \ 77 fixed-head.S ep88xc.c ep405.c cuboot-c2k.c \
79 treeboot-walnut.c cuboot-acadia.c \ 78 cuboot-katmai.c cuboot-rainier.c redboot-8xx.c ep8248e.c \
80 cuboot-kilauea.c simpleboot.c \ 79 cuboot-warp.c cuboot-85xx-cpm2.c cuboot-yosemite.c simpleboot.c \
81 virtex405-head.S virtex.c 80 virtex405-head.S virtex.c redboot-83xx.c cuboot-sam440ep.c \
82src-plat-$(CONFIG_44x) += treeboot-ebony.c cuboot-ebony.c treeboot-bamboo.c \ 81 cuboot-acadia.c cuboot-amigaone.c cuboot-kilauea.c \
83 cuboot-bamboo.c cuboot-sam440ep.c \ 82 gamecube-head.S gamecube.c wii-head.S wii.c treeboot-iss4xx.c
84 cuboot-sequoia.c cuboot-rainier.c \
85 cuboot-taishan.c cuboot-katmai.c \
86 cuboot-warp.c cuboot-yosemite.c \
87 treeboot-iss4xx.c treeboot-currituck.c \
88 simpleboot.c fixed-head.S virtex.c
89src-plat-$(CONFIG_8xx) += cuboot-8xx.c fixed-head.S ep88xc.c redboot-8xx.c
90src-plat-$(CONFIG_PPC_MPC52xx) += cuboot-52xx.c
91src-plat-$(CONFIG_PPC_82xx) += cuboot-pq2.c fixed-head.S ep8248e.c cuboot-824x.c
92src-plat-$(CONFIG_PPC_83xx) += cuboot-83xx.c fixed-head.S redboot-83xx.c
93src-plat-$(CONFIG_FSL_SOC_BOOKE) += cuboot-85xx.c cuboot-85xx-cpm2.c
94src-plat-$(CONFIG_EMBEDDED6xx) += cuboot-pq2.c cuboot-mpc7448hpc2.c \
95 cuboot-c2k.c gamecube-head.S \
96 gamecube.c wii-head.S wii.c holly.c \
97 prpmc2800.c
98src-plat-$(CONFIG_AMIGAONE) += cuboot-amigaone.c
99src-plat-$(CONFIG_PPC_PS3) += ps3-head.S ps3-hvcall.S ps3.c
100src-plat-$(CONFIG_EPAPR_BOOT) += epapr.c
101
102src-wlib := $(sort $(src-wlib-y))
103src-plat := $(sort $(src-plat-y))
104src-boot := $(src-wlib) $(src-plat) empty.c 83src-boot := $(src-wlib) $(src-plat) empty.c
105 84
106src-boot := $(addprefix $(obj)/, $(src-boot)) 85src-boot := $(addprefix $(obj)/, $(src-boot))
107obj-boot := $(addsuffix .o, $(basename $(src-boot))) 86obj-boot := $(addsuffix .o, $(basename $(src-boot)))
108obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) 87obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib))))
109obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) 88obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat))))
110obj-plat: $(libfdt)
111 89
112quiet_cmd_copy_zlib = COPY $@ 90quiet_cmd_copy_zlib = COPY $@
113 cmd_copy_zlib = sed "s@__used@@;s@<linux/\([^>]*\).*@\"\1\"@" $< > $@ 91 cmd_copy_zlib = sed "s@__used@@;s@<linux/\([^>]*\).*@\"\1\"@" $< > $@
@@ -193,7 +171,6 @@ quiet_cmd_wrap = WRAP $@
193 $(if $3, -s $3)$(if $4, -d $4)$(if $5, -i $5) vmlinux 171 $(if $3, -s $3)$(if $4, -d $4)$(if $5, -i $5) vmlinux
194 172
195image-$(CONFIG_PPC_PSERIES) += zImage.pseries 173image-$(CONFIG_PPC_PSERIES) += zImage.pseries
196image-$(CONFIG_PPC_POWERNV) += zImage.pseries
197image-$(CONFIG_PPC_MAPLE) += zImage.maple 174image-$(CONFIG_PPC_MAPLE) += zImage.maple
198image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries 175image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries
199image-$(CONFIG_PPC_PS3) += dtbImage.ps3 176image-$(CONFIG_PPC_PS3) += dtbImage.ps3
@@ -204,6 +181,7 @@ image-$(CONFIG_PPC_EFIKA) += zImage.chrp
204image-$(CONFIG_PPC_PMAC) += zImage.pmac 181image-$(CONFIG_PPC_PMAC) += zImage.pmac
205image-$(CONFIG_PPC_HOLLY) += dtbImage.holly 182image-$(CONFIG_PPC_HOLLY) += dtbImage.holly
206image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800 183image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800
184image-$(CONFIG_PPC_ISERIES) += zImage.iseries
207image-$(CONFIG_DEFAULT_UIMAGE) += uImage 185image-$(CONFIG_DEFAULT_UIMAGE) += uImage
208image-$(CONFIG_EPAPR_BOOT) += zImage.epapr 186image-$(CONFIG_EPAPR_BOOT) += zImage.epapr
209 187
@@ -220,7 +198,6 @@ image-$(CONFIG_EP405) += dtbImage.ep405
220image-$(CONFIG_HOTFOOT) += cuImage.hotfoot 198image-$(CONFIG_HOTFOOT) += cuImage.hotfoot
221image-$(CONFIG_WALNUT) += treeImage.walnut 199image-$(CONFIG_WALNUT) += treeImage.walnut
222image-$(CONFIG_ACADIA) += cuImage.acadia 200image-$(CONFIG_ACADIA) += cuImage.acadia
223image-$(CONFIG_OBS600) += uImage.obs600
224 201
225# Board ports in arch/powerpc/platform/44x/Kconfig 202# Board ports in arch/powerpc/platform/44x/Kconfig
226image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony 203image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony
@@ -234,7 +211,6 @@ image-$(CONFIG_WARP) += cuImage.warp
234image-$(CONFIG_YOSEMITE) += cuImage.yosemite 211image-$(CONFIG_YOSEMITE) += cuImage.yosemite
235image-$(CONFIG_ISS4xx) += treeImage.iss4xx \ 212image-$(CONFIG_ISS4xx) += treeImage.iss4xx \
236 treeImage.iss4xx-mpic 213 treeImage.iss4xx-mpic
237image-$(CONFIG_CURRITUCK) += treeImage.currituck
238 214
239# Board ports in arch/powerpc/platform/8xx/Kconfig 215# Board ports in arch/powerpc/platform/8xx/Kconfig
240image-$(CONFIG_MPC86XADS) += cuImage.mpc866ads 216image-$(CONFIG_MPC86XADS) += cuImage.mpc866ads
@@ -266,7 +242,7 @@ image-$(CONFIG_ASP834x) += dtbImage.asp834x-redboot
266image-$(CONFIG_MPC8540_ADS) += cuImage.mpc8540ads 242image-$(CONFIG_MPC8540_ADS) += cuImage.mpc8540ads
267image-$(CONFIG_MPC8560_ADS) += cuImage.mpc8560ads 243image-$(CONFIG_MPC8560_ADS) += cuImage.mpc8560ads
268image-$(CONFIG_MPC85xx_CDS) += cuImage.mpc8541cds \ 244image-$(CONFIG_MPC85xx_CDS) += cuImage.mpc8541cds \
269 cuImage.mpc8548cds_32b \ 245 cuImage.mpc8548cds \
270 cuImage.mpc8555cds 246 cuImage.mpc8555cds
271image-$(CONFIG_MPC85xx_MDS) += cuImage.mpc8568mds 247image-$(CONFIG_MPC85xx_MDS) += cuImage.mpc8568mds
272image-$(CONFIG_MPC85xx_DS) += cuImage.mpc8544ds \ 248image-$(CONFIG_MPC85xx_DS) += cuImage.mpc8544ds \
@@ -277,6 +253,7 @@ image-$(CONFIG_TQM8548) += cuImage.tqm8548
277image-$(CONFIG_TQM8555) += cuImage.tqm8555 253image-$(CONFIG_TQM8555) += cuImage.tqm8555
278image-$(CONFIG_TQM8560) += cuImage.tqm8560 254image-$(CONFIG_TQM8560) += cuImage.tqm8560
279image-$(CONFIG_SBC8548) += cuImage.sbc8548 255image-$(CONFIG_SBC8548) += cuImage.sbc8548
256image-$(CONFIG_SBC8560) += cuImage.sbc8560
280image-$(CONFIG_KSI8560) += cuImage.ksi8560 257image-$(CONFIG_KSI8560) += cuImage.ksi8560
281 258
282# Board ports in arch/powerpc/platform/embedded6xx/Kconfig 259# Board ports in arch/powerpc/platform/embedded6xx/Kconfig
@@ -329,15 +306,15 @@ $(obj)/dtbImage.%: vmlinux $(wrapperbits) $(obj)/%.dtb
329$(obj)/vmlinux.strip: vmlinux 306$(obj)/vmlinux.strip: vmlinux
330 $(STRIP) -s -R .comment $< -o $@ 307 $(STRIP) -s -R .comment $< -o $@
331 308
309# The iseries hypervisor won't take an ET_DYN executable, so this
310# changes the type (byte 17) in the file to ET_EXEC (2).
311$(obj)/zImage.iseries: vmlinux
312 $(STRIP) -s -R .comment $< -o $@
313 printf "\x02" | dd of=$@ conv=notrunc bs=1 seek=17
314
332$(obj)/uImage: vmlinux $(wrapperbits) 315$(obj)/uImage: vmlinux $(wrapperbits)
333 $(call if_changed,wrap,uboot) 316 $(call if_changed,wrap,uboot)
334 317
335$(obj)/uImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits)
336 $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
337
338$(obj)/uImage.%: vmlinux $(obj)/%.dtb $(wrapperbits)
339 $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb)
340
341$(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) 318$(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits)
342 $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz) 319 $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)
343 320
@@ -357,8 +334,8 @@ $(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits)
357 $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb) 334 $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb)
358 335
359# Rule to build device tree blobs 336# Rule to build device tree blobs
360$(obj)/%.dtb: $(src)/dts/%.dts FORCE 337$(obj)/%.dtb: $(src)/dts/%.dts
361 $(call if_changed_dep,dtc) 338 $(call cmd,dtc)
362 339
363# If there isn't a platform selected then just strip the vmlinux. 340# If there isn't a platform selected then just strip the vmlinux.
364ifeq (,$(image-y)) 341ifeq (,$(image-y))
@@ -376,7 +353,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y))
376# anything not in $(targets) 353# anything not in $(targets)
377clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ 354clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \
378 zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ 355 zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \
379 zImage.miboot zImage.pmac zImage.pseries \ 356 zImage.iseries zImage.miboot zImage.pmac zImage.pseries \
380 zImage.maple simpleImage.* otheros.bld *.dtb 357 zImage.maple simpleImage.* otheros.bld *.dtb
381 358
382# clean up files cached by wrapper 359# clean up files cached by wrapper
@@ -431,3 +408,4 @@ $(wrapper-installed): $(DESTDIR)$(WRAPPER_BINDIR) $(srctree)/$(obj)/wrapper | $(
431 $(call cmd,install_wrapper) 408 $(call cmd,install_wrapper)
432 409
433$(obj)/bootwrapper_install: $(all-installed) 410$(obj)/bootwrapper_install: $(all-installed)
411