diff options
author | Tony Breeds <tony@bakeyournoodle.com> | 2012-04-03 11:00:39 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-03 00:14:37 -0400 |
commit | b81f18e55e9f4ea81759bcb00fea295de679bbe8 (patch) | |
tree | cca343938789e3950cb6020f30c1e9c0c09f3bed /arch/powerpc/boot | |
parent | ca24a145573124732152daff105ba68cc9a2b545 (diff) |
powerpc/boot: Only build board support files when required.
Currently we build all board files regardless of the final zImage
target. This is sub-optimal (in terms on compilation) and leads to
problems in one platform needlessly causing failures for other
platforms.
Use the Kconfig variables to selectively construct this board files to
build.
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r-- | arch/powerpc/boot/Makefile | 56 |
1 files changed, 37 insertions, 19 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index e8461cb18d04..c802a90ae2d7 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -62,26 +62,45 @@ libfdtheader := fdt.h libfdt.h libfdt_internal.h | |||
62 | $(addprefix $(obj)/,$(libfdt) libfdt-wrapper.o simpleboot.o epapr.o): \ | 62 | $(addprefix $(obj)/,$(libfdt) libfdt-wrapper.o simpleboot.o epapr.o): \ |
63 | $(addprefix $(obj)/,$(libfdtheader)) | 63 | $(addprefix $(obj)/,$(libfdtheader)) |
64 | 64 | ||
65 | src-wlib := string.S crt0.S crtsavres.S stdio.c main.c \ | 65 | src-wlib-y := string.S crt0.S crtsavres.S stdio.c main.c \ |
66 | $(libfdt) libfdt-wrapper.c \ | 66 | $(libfdt) libfdt-wrapper.c \ |
67 | ns16550.c serial.c simple_alloc.c div64.S util.S \ | 67 | ns16550.c serial.c simple_alloc.c div64.S util.S \ |
68 | gunzip_util.c elf_util.c $(zlib) devtree.c oflib.c ofconsole.c \ | 68 | gunzip_util.c elf_util.c $(zlib) devtree.c stdlib.c \ |
69 | 4xx.c ebony.c mv64x60.c mpsc.c mv64x60_i2c.c cuboot.c bamboo.c \ | 69 | oflib.c ofconsole.c cuboot.c mpsc.c cpm-serial.c \ |
70 | cpm-serial.c stdlib.c mpc52xx-psc.c planetcore.c uartlite.c \ | 70 | uartlite.c mpc52xx-psc.c |
71 | fsl-soc.c mpc8xx.c pq2.c ugecon.c | 71 | src-wlib-$(CONFIG_40x) += 4xx.c planetcore.c |
72 | src-plat := of.c cuboot-52xx.c cuboot-824x.c cuboot-83xx.c cuboot-85xx.c holly.c \ | 72 | src-wlib-$(CONFIG_44x) += 4xx.c ebony.c bamboo.c |
73 | cuboot-ebony.c cuboot-hotfoot.c epapr.c treeboot-ebony.c \ | 73 | src-wlib-$(CONFIG_8xx) += mpc8xx.c planetcore.c |
74 | prpmc2800.c \ | 74 | src-wlib-$(CONFIG_PPC_82xx) += pq2.c fsl-soc.c planetcore.c |
75 | ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c \ | 75 | src-wlib-$(CONFIG_EMBEDDED6xx) += mv64x60.c mv64x60_i2c.c ugecon.c |
76 | cuboot-pq2.c cuboot-sequoia.c treeboot-walnut.c \ | 76 | |
77 | cuboot-bamboo.c cuboot-mpc7448hpc2.c cuboot-taishan.c \ | 77 | src-plat-y := of.c |
78 | fixed-head.S ep88xc.c ep405.c cuboot-c2k.c \ | 78 | src-plat-$(CONFIG_40x) += fixed-head.S ep405.c cuboot-hotfoot.c \ |
79 | cuboot-katmai.c cuboot-rainier.c redboot-8xx.c ep8248e.c \ | 79 | treeboot-walnut.c cuboot-acadia.c \ |
80 | cuboot-warp.c cuboot-85xx-cpm2.c cuboot-yosemite.c simpleboot.c \ | 80 | cuboot-kilauea.c simpleboot.c \ |
81 | virtex405-head.S virtex.c redboot-83xx.c cuboot-sam440ep.c \ | 81 | virtex405-head.S virtex.c |
82 | cuboot-acadia.c cuboot-amigaone.c cuboot-kilauea.c \ | 82 | src-plat-$(CONFIG_44x) += treeboot-ebony.c cuboot-ebony.c treeboot-bamboo.c \ |
83 | gamecube-head.S gamecube.c wii-head.S wii.c treeboot-iss4xx.c \ | 83 | cuboot-bamboo.c cuboot-sam440ep.c \ |
84 | treeboot-currituck.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)) | ||
85 | src-boot := $(src-wlib) $(src-plat) empty.c | 104 | src-boot := $(src-wlib) $(src-plat) empty.c |
86 | 105 | ||
87 | src-boot := $(addprefix $(obj)/, $(src-boot)) | 106 | src-boot := $(addprefix $(obj)/, $(src-boot)) |
@@ -412,4 +431,3 @@ $(wrapper-installed): $(DESTDIR)$(WRAPPER_BINDIR) $(srctree)/$(obj)/wrapper | $( | |||
412 | $(call cmd,install_wrapper) | 431 | $(call cmd,install_wrapper) |
413 | 432 | ||
414 | $(obj)/bootwrapper_install: $(all-installed) | 433 | $(obj)/bootwrapper_install: $(all-installed) |
415 | |||