diff options
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index d4f9fef7f9e9..83788986b93b 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -33,6 +33,9 @@ endif | |||
33 | 33 | ||
34 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) | 34 | BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) |
35 | 35 | ||
36 | $(obj)/44x.o: BOOTCFLAGS += -Wa,-mbooke | ||
37 | $(obj)/ebony.o: BOOTCFLAGS += -Wa,-mbooke | ||
38 | |||
36 | zlib := inffast.c inflate.c inftrees.c | 39 | zlib := inffast.c inflate.c inftrees.c |
37 | zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h | 40 | zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h |
38 | zliblinuxheader := zlib.h zconf.h zutil.h | 41 | zliblinuxheader := zlib.h zconf.h zutil.h |
@@ -54,13 +57,13 @@ obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) | |||
54 | obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) | 57 | obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) |
55 | 58 | ||
56 | quiet_cmd_copy_zlib = COPY $@ | 59 | quiet_cmd_copy_zlib = COPY $@ |
57 | cmd_copy_zlib = sed "s@__attribute_used__@@;s@<linux/\([^>]\+\).*@\"\1\"@" $< > $@ | 60 | cmd_copy_zlib = sed "s@__attribute_used__@@;s@<linux/\([^>]*\).*@\"\1\"@" $< > $@ |
58 | 61 | ||
59 | quiet_cmd_copy_zlibheader = COPY $@ | 62 | quiet_cmd_copy_zlibheader = COPY $@ |
60 | cmd_copy_zlibheader = sed "s@<linux/\([^>]\+\).*@\"\1\"@" $< > $@ | 63 | cmd_copy_zlibheader = sed "s@<linux/\([^>]*\).*@\"\1\"@" $< > $@ |
61 | # stddef.h for NULL | 64 | # stddef.h for NULL |
62 | quiet_cmd_copy_zliblinuxheader = COPY $@ | 65 | quiet_cmd_copy_zliblinuxheader = COPY $@ |
63 | cmd_copy_zliblinuxheader = sed "s@<linux/string.h>@\"string.h\"@;s@<linux/kernel.h>@<stddef.h>@;s@<linux/\([^>]\+\).*@\"\1\"@" $< > $@ | 66 | cmd_copy_zliblinuxheader = sed "s@<linux/string.h>@\"string.h\"@;s@<linux/kernel.h>@<stddef.h>@;s@<linux/\([^>]*\).*@\"\1\"@" $< > $@ |
64 | 67 | ||
65 | $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/% | 68 | $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/% |
66 | $(call cmd,copy_zlib) | 69 | $(call cmd,copy_zlib) |
@@ -204,12 +207,12 @@ dts = $(if $(shell echo $(CONFIG_DEVICE_TREE) | grep '^/'),\ | |||
204 | $(obj)/cuImage.%: vmlinux $(dts) $(wrapperbits) | 207 | $(obj)/cuImage.%: vmlinux $(dts) $(wrapperbits) |
205 | $(call if_changed,wrap,cuboot-$*,$(dts)) | 208 | $(call if_changed,wrap,cuboot-$*,$(dts)) |
206 | 209 | ||
207 | $(obj)/treeImage.%: vmlinux $(dts) $(wrapperbits) | ||
208 | $(call if_changed,wrap,treeboot-$*,$(dts)) | ||
209 | |||
210 | $(obj)/treeImage.initrd.%: vmlinux $(dts) $(wrapperbits) | 210 | $(obj)/treeImage.initrd.%: vmlinux $(dts) $(wrapperbits) |
211 | $(call if_changed,wrap,treeboot-$*,$(dts),,$(obj)/ramdisk.image.gz) | 211 | $(call if_changed,wrap,treeboot-$*,$(dts),,$(obj)/ramdisk.image.gz) |
212 | 212 | ||
213 | $(obj)/treeImage.%: vmlinux $(dts) $(wrapperbits) | ||
214 | $(call if_changed,wrap,treeboot-$*,$(dts)) | ||
215 | |||
213 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) | 216 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) |
214 | @rm -f $@; ln $< $@ | 217 | @rm -f $@; ln $< $@ |
215 | $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) | 218 | $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y)) |