diff options
Diffstat (limited to 'arch/powerpc/boot/Makefile')
-rw-r--r-- | arch/powerpc/boot/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index f2d850ca5056..d56e24b85472 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -37,8 +37,8 @@ zlib := inffast.c inflate.c inftrees.c | |||
37 | zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h | 37 | zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h |
38 | zliblinuxheader := zlib.h zconf.h zutil.h | 38 | zliblinuxheader := zlib.h zconf.h zutil.h |
39 | 39 | ||
40 | $(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) \ | 40 | $(addprefix $(obj)/,$(zlib) gunzip_util.o main.o): \ |
41 | $(addprefix $(obj)/,$(zlibheader)) | 41 | $(addprefix $(obj)/,$(zliblinuxheader)) $(addprefix $(obj)/,$(zlibheader)) |
42 | 42 | ||
43 | src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ | 43 | src-wlib := string.S crt0.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ |
44 | ns16550.c serial.c simple_alloc.c div64.S util.S \ | 44 | ns16550.c serial.c simple_alloc.c div64.S util.S \ |
@@ -167,10 +167,11 @@ $(obj)/zImage.initrd.ps3: vmlinux | |||
167 | $(obj)/uImage: vmlinux $(wrapperbits) | 167 | $(obj)/uImage: vmlinux $(wrapperbits) |
168 | $(call if_changed,wrap,uboot) | 168 | $(call if_changed,wrap,uboot) |
169 | 169 | ||
170 | # CONFIG_DEVICE_TREE will have "" around it, make sure to strip them | ||
170 | dts = $(if $(shell echo $(CONFIG_DEVICE_TREE) | grep '^/'),\ | 171 | dts = $(if $(shell echo $(CONFIG_DEVICE_TREE) | grep '^/'),\ |
171 | ,$(srctree)/$(src)/dts/)$(CONFIG_DEVICE_TREE) | 172 | ,$(srctree)/$(src)/dts/)$(CONFIG_DEVICE_TREE:"%"=%) |
172 | 173 | ||
173 | $(obj)/cuImage.%: vmlinux $(wrapperbits) | 174 | $(obj)/cuImage.%: vmlinux $(dts) $(wrapperbits) |
174 | $(call if_changed,wrap,cuboot-$*,$(dts)) | 175 | $(call if_changed,wrap,cuboot-$*,$(dts)) |
175 | 176 | ||
176 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) | 177 | $(obj)/zImage: $(addprefix $(obj)/, $(image-y)) |