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/powerpc/boot/Makefile | |
| parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) | |
Patched in Tegra support.
Diffstat (limited to 'arch/powerpc/boot/Makefile')
| -rw-r--r-- | arch/powerpc/boot/Makefile | 84 |
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): \ | |||
| 59 | libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c | 58 | libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c |
| 60 | libfdtheader := fdt.h libfdt.h libfdt_internal.h | 59 | libfdtheader := 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 | ||
| 65 | src-wlib-y := string.S crt0.S crtsavres.S stdio.c main.c \ | 64 | src-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 \ |
| 71 | src-wlib-$(CONFIG_40x) += 4xx.c planetcore.c | 70 | fsl-soc.c mpc8xx.c pq2.c ugecon.c |
| 72 | src-wlib-$(CONFIG_44x) += 4xx.c ebony.c bamboo.c | 71 | src-plat := of.c cuboot-52xx.c cuboot-824x.c cuboot-83xx.c cuboot-85xx.c holly.c \ |
| 73 | src-wlib-$(CONFIG_8xx) += mpc8xx.c planetcore.c | 72 | cuboot-ebony.c cuboot-hotfoot.c epapr.c treeboot-ebony.c \ |
| 74 | src-wlib-$(CONFIG_PPC_82xx) += pq2.c fsl-soc.c planetcore.c | 73 | prpmc2800.c \ |
| 75 | src-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 \ | |
| 77 | src-plat-y := of.c | 76 | cuboot-bamboo.c cuboot-mpc7448hpc2.c cuboot-taishan.c \ |
| 78 | src-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 \ |
| 82 | src-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 | ||
| 89 | src-plat-$(CONFIG_8xx) += cuboot-8xx.c fixed-head.S ep88xc.c redboot-8xx.c | ||
| 90 | src-plat-$(CONFIG_PPC_MPC52xx) += cuboot-52xx.c | ||
| 91 | src-plat-$(CONFIG_PPC_82xx) += cuboot-pq2.c fixed-head.S ep8248e.c cuboot-824x.c | ||
| 92 | src-plat-$(CONFIG_PPC_83xx) += cuboot-83xx.c fixed-head.S redboot-83xx.c | ||
| 93 | src-plat-$(CONFIG_FSL_SOC_BOOKE) += cuboot-85xx.c cuboot-85xx-cpm2.c | ||
| 94 | src-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 | ||
| 98 | src-plat-$(CONFIG_AMIGAONE) += cuboot-amigaone.c | ||
| 99 | src-plat-$(CONFIG_PPC_PS3) += ps3-head.S ps3-hvcall.S ps3.c | ||
| 100 | src-plat-$(CONFIG_EPAPR_BOOT) += epapr.c | ||
| 101 | |||
| 102 | src-wlib := $(sort $(src-wlib-y)) | ||
| 103 | src-plat := $(sort $(src-plat-y)) | ||
| 104 | src-boot := $(src-wlib) $(src-plat) empty.c | 83 | src-boot := $(src-wlib) $(src-plat) empty.c |
| 105 | 84 | ||
| 106 | src-boot := $(addprefix $(obj)/, $(src-boot)) | 85 | src-boot := $(addprefix $(obj)/, $(src-boot)) |
| 107 | obj-boot := $(addsuffix .o, $(basename $(src-boot))) | 86 | obj-boot := $(addsuffix .o, $(basename $(src-boot))) |
| 108 | obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) | 87 | obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) |
| 109 | obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) | 88 | obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) |
| 110 | obj-plat: $(libfdt) | ||
| 111 | 89 | ||
| 112 | quiet_cmd_copy_zlib = COPY $@ | 90 | quiet_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 | ||
| 195 | image-$(CONFIG_PPC_PSERIES) += zImage.pseries | 173 | image-$(CONFIG_PPC_PSERIES) += zImage.pseries |
| 196 | image-$(CONFIG_PPC_POWERNV) += zImage.pseries | ||
| 197 | image-$(CONFIG_PPC_MAPLE) += zImage.maple | 174 | image-$(CONFIG_PPC_MAPLE) += zImage.maple |
| 198 | image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries | 175 | image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries |
| 199 | image-$(CONFIG_PPC_PS3) += dtbImage.ps3 | 176 | image-$(CONFIG_PPC_PS3) += dtbImage.ps3 |
| @@ -204,6 +181,7 @@ image-$(CONFIG_PPC_EFIKA) += zImage.chrp | |||
| 204 | image-$(CONFIG_PPC_PMAC) += zImage.pmac | 181 | image-$(CONFIG_PPC_PMAC) += zImage.pmac |
| 205 | image-$(CONFIG_PPC_HOLLY) += dtbImage.holly | 182 | image-$(CONFIG_PPC_HOLLY) += dtbImage.holly |
| 206 | image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800 | 183 | image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800 |
| 184 | image-$(CONFIG_PPC_ISERIES) += zImage.iseries | ||
| 207 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage | 185 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage |
| 208 | image-$(CONFIG_EPAPR_BOOT) += zImage.epapr | 186 | image-$(CONFIG_EPAPR_BOOT) += zImage.epapr |
| 209 | 187 | ||
| @@ -220,7 +198,6 @@ image-$(CONFIG_EP405) += dtbImage.ep405 | |||
| 220 | image-$(CONFIG_HOTFOOT) += cuImage.hotfoot | 198 | image-$(CONFIG_HOTFOOT) += cuImage.hotfoot |
| 221 | image-$(CONFIG_WALNUT) += treeImage.walnut | 199 | image-$(CONFIG_WALNUT) += treeImage.walnut |
| 222 | image-$(CONFIG_ACADIA) += cuImage.acadia | 200 | image-$(CONFIG_ACADIA) += cuImage.acadia |
| 223 | image-$(CONFIG_OBS600) += uImage.obs600 | ||
| 224 | 201 | ||
| 225 | # Board ports in arch/powerpc/platform/44x/Kconfig | 202 | # Board ports in arch/powerpc/platform/44x/Kconfig |
| 226 | image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony | 203 | image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony |
| @@ -234,7 +211,6 @@ image-$(CONFIG_WARP) += cuImage.warp | |||
| 234 | image-$(CONFIG_YOSEMITE) += cuImage.yosemite | 211 | image-$(CONFIG_YOSEMITE) += cuImage.yosemite |
| 235 | image-$(CONFIG_ISS4xx) += treeImage.iss4xx \ | 212 | image-$(CONFIG_ISS4xx) += treeImage.iss4xx \ |
| 236 | treeImage.iss4xx-mpic | 213 | treeImage.iss4xx-mpic |
| 237 | image-$(CONFIG_CURRITUCK) += treeImage.currituck | ||
| 238 | 214 | ||
| 239 | # Board ports in arch/powerpc/platform/8xx/Kconfig | 215 | # Board ports in arch/powerpc/platform/8xx/Kconfig |
| 240 | image-$(CONFIG_MPC86XADS) += cuImage.mpc866ads | 216 | image-$(CONFIG_MPC86XADS) += cuImage.mpc866ads |
| @@ -266,7 +242,7 @@ image-$(CONFIG_ASP834x) += dtbImage.asp834x-redboot | |||
| 266 | image-$(CONFIG_MPC8540_ADS) += cuImage.mpc8540ads | 242 | image-$(CONFIG_MPC8540_ADS) += cuImage.mpc8540ads |
| 267 | image-$(CONFIG_MPC8560_ADS) += cuImage.mpc8560ads | 243 | image-$(CONFIG_MPC8560_ADS) += cuImage.mpc8560ads |
| 268 | image-$(CONFIG_MPC85xx_CDS) += cuImage.mpc8541cds \ | 244 | image-$(CONFIG_MPC85xx_CDS) += cuImage.mpc8541cds \ |
| 269 | cuImage.mpc8548cds_32b \ | 245 | cuImage.mpc8548cds \ |
| 270 | cuImage.mpc8555cds | 246 | cuImage.mpc8555cds |
| 271 | image-$(CONFIG_MPC85xx_MDS) += cuImage.mpc8568mds | 247 | image-$(CONFIG_MPC85xx_MDS) += cuImage.mpc8568mds |
| 272 | image-$(CONFIG_MPC85xx_DS) += cuImage.mpc8544ds \ | 248 | image-$(CONFIG_MPC85xx_DS) += cuImage.mpc8544ds \ |
| @@ -277,6 +253,7 @@ image-$(CONFIG_TQM8548) += cuImage.tqm8548 | |||
| 277 | image-$(CONFIG_TQM8555) += cuImage.tqm8555 | 253 | image-$(CONFIG_TQM8555) += cuImage.tqm8555 |
| 278 | image-$(CONFIG_TQM8560) += cuImage.tqm8560 | 254 | image-$(CONFIG_TQM8560) += cuImage.tqm8560 |
| 279 | image-$(CONFIG_SBC8548) += cuImage.sbc8548 | 255 | image-$(CONFIG_SBC8548) += cuImage.sbc8548 |
| 256 | image-$(CONFIG_SBC8560) += cuImage.sbc8560 | ||
| 280 | image-$(CONFIG_KSI8560) += cuImage.ksi8560 | 257 | image-$(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. |
| 364 | ifeq (,$(image-y)) | 341 | ifeq (,$(image-y)) |
| @@ -376,7 +353,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) | |||
| 376 | # anything not in $(targets) | 353 | # anything not in $(targets) |
| 377 | clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ | 354 | clean-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 | |||
