Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / arch / powerpc / boot / Makefile
blob4107ee27d4b9123c0da140691ee6c44cd146910a
1 # Makefile for making ELF bootable images for booting on CHRP
2 # using Open Firmware.
4 # Geert Uytterhoeven September 1997
6 # Based on coffboot by Paul Mackerras
7 # Simplified for ppc64 by Todd Inglett
9 # NOTE: this code is built for 32 bit in ELF32 format even though
10 # it packages a 64 bit kernel. We do this to simplify the
11 # bootloader and increase compatibility with OpenFirmware.
13 # To this end we need to define BOOTCC, etc, as the tools
14 # needed to build the 32 bit image. That's normally the same
15 # compiler for the rest of the kernel, with the -m32 flag added.
16 # To make it easier to setup a cross compiler,
17 # CROSS32_COMPILE is setup as a prefix just like CROSS_COMPILE
18 # in the toplevel makefile.
20 all: $(obj)/zImage
22 BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
23 -fno-strict-aliasing -Os -msoft-float -pipe \
24 -fomit-frame-pointer -fno-builtin -fPIC -nostdinc \
25 -isystem $(shell $(CROSS32CC) -print-file-name=include)
26 BOOTAFLAGS := -D__ASSEMBLY__ $(BOOTCFLAGS) -traditional -nostdinc
28 ifdef CONFIG_DEBUG_INFO
29 BOOTCFLAGS += -g
30 endif
32 ifeq ($(call cc-option-yn, -fstack-protector),y)
33 BOOTCFLAGS += -fno-stack-protector
34 endif
36 BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) -I$(srctree)/$(src)/libfdt
38 <<<<<<< HEAD:arch/powerpc/boot/Makefile
39 $(obj)/4xx.o: BOOTCFLAGS += -mcpu=440
40 $(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
41 $(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=440
42 $(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=440
43 =======
44 $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405
45 $(obj)/ebony.o: BOOTCFLAGS += -mcpu=405
46 $(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405
47 $(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
48 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
49 $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
52 zlib := inffast.c inflate.c inftrees.c
53 zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h
54 zliblinuxheader := zlib.h zconf.h zutil.h
56 $(addprefix $(obj)/,$(zlib) gunzip_util.o main.o): \
57 $(addprefix $(obj)/,$(zliblinuxheader)) $(addprefix $(obj)/,$(zlibheader))
59 src-libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
60 src-wlib := string.S crt0.S stdio.c main.c \
61 $(addprefix libfdt/,$(src-libfdt)) libfdt-wrapper.c \
62 ns16550.c serial.c simple_alloc.c div64.S util.S \
63 gunzip_util.c elf_util.c $(zlib) devtree.c oflib.c ofconsole.c \
64 4xx.c ebony.c mv64x60.c mpsc.c mv64x60_i2c.c cuboot.c bamboo.c \
65 cpm-serial.c stdlib.c mpc52xx-psc.c planetcore.c uartlite.c \
66 fsl-soc.c mpc8xx.c pq2.c
67 src-plat := of.c cuboot-52xx.c cuboot-824x.c cuboot-83xx.c cuboot-85xx.c holly.c \
68 cuboot-ebony.c treeboot-ebony.c prpmc2800.c \
69 ps3-head.S ps3-hvcall.S ps3.c treeboot-bamboo.c cuboot-8xx.c \
70 cuboot-pq2.c cuboot-sequoia.c treeboot-walnut.c \
71 cuboot-bamboo.c cuboot-mpc7448hpc2.c cuboot-taishan.c \
72 fixed-head.S ep88xc.c ep405.c \
73 cuboot-katmai.c cuboot-rainier.c redboot-8xx.c ep8248e.c \
74 cuboot-warp.c cuboot-85xx-cpm2.c
75 src-boot := $(src-wlib) $(src-plat) empty.c
77 src-boot := $(addprefix $(obj)/, $(src-boot))
78 obj-boot := $(addsuffix .o, $(basename $(src-boot)))
79 obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib))))
80 obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat))))
82 quiet_cmd_copy_zlib = COPY $@
83 cmd_copy_zlib = sed "s@__used@@;s@<linux/\([^>]*\).*@\"\1\"@" $< > $@
85 quiet_cmd_copy_zlibheader = COPY $@
86 cmd_copy_zlibheader = sed "s@<linux/\([^>]*\).*@\"\1\"@" $< > $@
87 # stddef.h for NULL
88 quiet_cmd_copy_zliblinuxheader = COPY $@
89 cmd_copy_zliblinuxheader = sed "s@<linux/string.h>@\"string.h\"@;s@<linux/kernel.h>@<stddef.h>@;s@<linux/\([^>]*\).*@\"\1\"@" $< > $@
91 $(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
92 $(call cmd,copy_zlib)
94 $(addprefix $(obj)/,$(zlibheader)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
95 $(call cmd,copy_zlibheader)
97 $(addprefix $(obj)/,$(zliblinuxheader)): $(obj)/%: $(srctree)/include/linux/%
98 $(call cmd,copy_zliblinuxheader)
100 $(obj)/empty.c:
101 @touch $@
103 $(obj)/zImage.lds $(obj)/zImage.coff.lds $(obj)/zImage.ps3.lds: $(obj)/%: $(srctree)/$(src)/%.S
104 @cp $< $@
106 clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \
107 empty.c zImage zImage.coff.lds zImage.ps3.lds zImage.lds
109 quiet_cmd_bootcc = BOOTCC $@
110 cmd_bootcc = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTCFLAGS) -c -o $@ $<
112 quiet_cmd_bootas = BOOTAS $@
113 cmd_bootas = $(CROSS32CC) -Wp,-MD,$(depfile) $(BOOTAFLAGS) -c -o $@ $<
115 quiet_cmd_bootar = BOOTAR $@
116 cmd_bootar = $(CROSS32AR) -cr $@.$$$$ $(filter-out FORCE,$^); mv $@.$$$$ $@
118 $(patsubst %.c,%.o, $(filter %.c, $(src-boot))): %.o: %.c FORCE
119 $(Q)mkdir -p $(dir $@)
120 $(call if_changed_dep,bootcc)
121 $(patsubst %.S,%.o, $(filter %.S, $(src-boot))): %.o: %.S FORCE
122 $(Q)mkdir -p $(dir $@)
123 $(call if_changed_dep,bootas)
125 $(obj)/wrapper.a: $(obj-wlib) FORCE
126 $(call if_changed,bootar)
128 hostprogs-y := addnote addRamDisk hack-coff mktree dtc
130 targets += $(patsubst $(obj)/%,%,$(obj-boot) wrapper.a)
131 extra-y := $(obj)/wrapper.a $(obj-plat) $(obj)/empty.o \
132 $(obj)/zImage.lds $(obj)/zImage.coff.lds $(obj)/zImage.ps3.lds
134 dtstree := $(srctree)/$(src)/dts
136 wrapper :=$(srctree)/$(src)/wrapper
137 wrapperbits := $(extra-y) $(addprefix $(obj)/,addnote hack-coff mktree dtc) \
138 $(wrapper) FORCE
140 #############
141 # Bits for building dtc
142 # DTC_GENPARSER := 1 # Uncomment to rebuild flex/bison output
144 dtc-objs := dtc.o flattree.o fstree.o data.o livetree.o treesource.o srcpos.o checks.o
145 dtc-objs += dtc-lexer.lex.o dtc-parser.tab.o
146 dtc-objs := $(addprefix dtc-src/, $(dtc-objs))
148 # prerequisites on generated files needs to be explicit
149 $(obj)/dtc-src/dtc-parser.tab.o: $(obj)/dtc-src/dtc-parser.tab.c $(obj)/dtc-src/dtc-parser.tab.h
150 $(obj)/dtc-src/dtc-lexer.lex.o: $(obj)/dtc-src/dtc-lexer.lex.c $(obj)/dtc-src/dtc-parser.tab.h
152 HOSTCFLAGS += -I$(src)/dtc-src/ -I$(src)/libfdt/
154 targets += dtc-src/dtc-parser.tab.c
155 targets += dtc-src/dtc-lexer.lex.c
157 clean-files += dtc-src/dtc-parser.tab.h
159 ifdef DTC_GENPARSER
160 BISON = bison
161 FLEX = flex
163 quiet_cmd_bison = BISON $@
164 cmd_bison = $(BISON) -o$@ -d $<; cp $@ $@_shipped
165 quiet_cmd_flex = FLEX $@
166 cmd_flex = $(FLEX) -o$@ $<; cp $@ $@_shipped
168 $(obj)/dtc-src/dtc-parser.tab.c: $(src)/dtc-src/dtc-parser.y FORCE
169 $(call if_changed,bison)
171 $(obj)/dtc-src/dtc-parser.tab.h: $(obj)/dtc-src/dtc-parser.tab.c
173 $(obj)/dtc-src/dtc-lexer.lex.c: $(src)/dtc-src/dtc-lexer.l FORCE
174 $(call if_changed,flex)
175 endif
177 #############
178 # Bits for building various flavours of zImage
180 ifneq ($(CROSS32_COMPILE),)
181 CROSSWRAP := -C "$(CROSS32_COMPILE)"
182 else
183 ifneq ($(CROSS_COMPILE),)
184 CROSSWRAP := -C "$(CROSS_COMPILE)"
185 endif
186 endif
188 # args (to if_changed): 1 = (this rule), 2 = platform, 3 = dts 4=dtb 5=initrd
189 quiet_cmd_wrap = WRAP $@
190 cmd_wrap =$(CONFIG_SHELL) $(wrapper) -c -o $@ -p $2 $(CROSSWRAP) \
191 $(if $3, -s $3)$(if $4, -d $4)$(if $5, -i $5) vmlinux
193 image-$(CONFIG_PPC_PSERIES) += zImage.pseries
194 image-$(CONFIG_PPC_MAPLE) += zImage.pseries
195 image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries
196 <<<<<<< HEAD:arch/powerpc/boot/Makefile
197 image-$(CONFIG_PPC_PS3) += zImage-dtb.ps3
198 =======
199 image-$(CONFIG_PPC_PS3) += dtbImage.ps3
200 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
201 image-$(CONFIG_PPC_CELLEB) += zImage.pseries
202 image-$(CONFIG_PPC_CHRP) += zImage.chrp
203 image-$(CONFIG_PPC_EFIKA) += zImage.chrp
204 image-$(CONFIG_PPC_PMAC) += zImage.pmac
205 image-$(CONFIG_PPC_HOLLY) += zImage.holly
206 image-$(CONFIG_PPC_PRPMC2800) += zImage.prpmc2800
207 image-$(CONFIG_PPC_ISERIES) += zImage.iseries
208 image-$(CONFIG_DEFAULT_UIMAGE) += uImage
211 # Targets which embed a device tree blob
213 # Theses are default targets to build images which embed device tree blobs.
214 # They are only required on boards which do not have FDT support in firmware.
215 # Boards with newish u-boot firmare can use the uImage target above
218 # Board ports in arch/powerpc/platform/40x/Kconfig
219 <<<<<<< HEAD:arch/powerpc/boot/Makefile
220 image-$(CONFIG_EP405) += zImage-dtb.ep405
221 =======
222 image-$(CONFIG_EP405) += dtbImage.ep405
223 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
224 image-$(CONFIG_WALNUT) += treeImage.walnut
226 # Board ports in arch/powerpc/platform/44x/Kconfig
227 image-$(CONFIG_EBONY) += treeImage.ebony cuImage.ebony
228 image-$(CONFIG_BAMBOO) += treeImage.bamboo cuImage.bamboo
229 image-$(CONFIG_SEQUOIA) += cuImage.sequoia
230 image-$(CONFIG_RAINIER) += cuImage.rainier
231 image-$(CONFIG_TAISHAN) += cuImage.taishan
232 image-$(CONFIG_KATMAI) += cuImage.katmai
233 image-$(CONFIG_WARP) += cuImage.warp
235 # Board ports in arch/powerpc/platform/8xx/Kconfig
236 image-$(CONFIG_PPC_MPC86XADS) += cuImage.mpc866ads
237 image-$(CONFIG_PPC_MPC885ADS) += cuImage.mpc885ads
238 <<<<<<< HEAD:arch/powerpc/boot/Makefile
239 image-$(CONFIG_PPC_EP88XC) += zImage-dtb.ep88xc
240 =======
241 image-$(CONFIG_PPC_EP88XC) += dtbImage.ep88xc
242 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
243 image-$(CONFIG_PPC_ADDER875) += cuImage.adder875-uboot \
244 <<<<<<< HEAD:arch/powerpc/boot/Makefile
245 zImage-dtb.adder875-redboot
246 =======
247 dtbImage.adder875-redboot
248 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
250 # Board ports in arch/powerpc/platform/52xx/Kconfig
251 image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200 cuImage.lite5200b
253 # Board ports in arch/powerpc/platform/82xx/Kconfig
254 image-$(CONFIG_MPC8272_ADS) += cuImage.mpc8272ads
255 image-$(CONFIG_PQ2FADS) += cuImage.pq2fads
256 <<<<<<< HEAD:arch/powerpc/boot/Makefile
257 image-$(CONFIG_EP8248E) += zImage-dtb.ep8248e
258 =======
259 image-$(CONFIG_EP8248E) += dtbImage.ep8248e
260 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
262 # Board ports in arch/powerpc/platform/83xx/Kconfig
263 image-$(CONFIG_MPC832x_MDS) += cuImage.mpc832x_mds
264 image-$(CONFIG_MPC832x_RDB) += cuImage.mpc832x_rdb
265 image-$(CONFIG_MPC834x_ITX) += cuImage.mpc8349emitx \
266 cuImage.mpc8349emitxgp
267 image-$(CONFIG_MPC834x_MDS) += cuImage.mpc834x_mds
268 image-$(CONFIG_MPC836x_MDS) += cuImage.mpc836x_mds
270 # Board ports in arch/powerpc/platform/85xx/Kconfig
271 image-$(CONFIG_MPC8540_ADS) += cuImage.mpc8540ads
272 image-$(CONFIG_MPC8560_ADS) += cuImage.mpc8560ads
273 image-$(CONFIG_MPC85xx_CDS) += cuImage.mpc8541cds \
274 cuImage.mpc8548cds \
275 cuImage.mpc8555cds
276 image-$(CONFIG_MPC85xx_MDS) += cuImage.mpc8568mds
277 image-$(CONFIG_MPC85xx_DS) += cuImage.mpc8544ds \
278 cuImage.mpc8572ds
279 image-$(CONFIG_TQM8540) += cuImage.tqm8540
280 image-$(CONFIG_TQM8541) += cuImage.tqm8541
281 image-$(CONFIG_TQM8555) += cuImage.tqm8555
282 image-$(CONFIG_TQM8560) += cuImage.tqm8560
283 image-$(CONFIG_SBC8548) += cuImage.tqm8548
284 image-$(CONFIG_SBC8560) += cuImage.tqm8560
286 # Board ports in arch/powerpc/platform/embedded6xx/Kconfig
287 image-$(CONFIG_STORCENTER) += cuImage.storcenter
288 image-$(CONFIG_MPC7448HPC2) += cuImage.mpc7448hpc2
290 # For 32-bit powermacs, build the COFF and miboot images
291 # as well as the ELF images.
292 ifeq ($(CONFIG_PPC32),y)
293 image-$(CONFIG_PPC_PMAC) += zImage.coff zImage.miboot
294 endif
296 initrd- := $(patsubst zImage%, zImage.initrd%, $(image-n) $(image-))
297 initrd-y := $(patsubst zImage%, zImage.initrd%, \
298 <<<<<<< HEAD:arch/powerpc/boot/Makefile
299 $(patsubst treeImage%, treeImage.initrd%, $(image-y)))
300 =======
301 $(patsubst dtbImage%, dtbImage.initrd%, \
302 $(patsubst treeImage%, treeImage.initrd%, $(image-y))))
303 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
304 initrd-y := $(filter-out $(image-y), $(initrd-y))
305 targets += $(image-y) $(initrd-y)
307 $(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz
309 # Don't put the ramdisk on the pattern rule; when its missing make will try
310 # the pattern rule with less dependencies that also matches (even with the
311 # hard dependency listed).
312 $(obj)/zImage.initrd.%: vmlinux $(wrapperbits)
313 $(call if_changed,wrap,$*,,,$(obj)/ramdisk.image.gz)
315 $(obj)/zImage.%: vmlinux $(wrapperbits)
316 $(call if_changed,wrap,$*)
318 <<<<<<< HEAD:arch/powerpc/boot/Makefile
319 $(obj)/zImage-dtb.initrd.%: vmlinux $(wrapperbits) $(dtstree)/%.dts
320 =======
321 # dtbImage% - a dtbImage is a zImage with an embedded device tree blob
322 $(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(dtstree)/%.dts
323 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
324 $(call if_changed,wrap,$*,$(dtstree)/$*.dts,,$(obj)/ramdisk.image.gz)
326 <<<<<<< HEAD:arch/powerpc/boot/Makefile
327 $(obj)/zImage-dtb.%: vmlinux $(wrapperbits) $(dtstree)/%.dts
328 =======
329 $(obj)/dtbImage.%: vmlinux $(wrapperbits) $(dtstree)/%.dts
330 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/powerpc/boot/Makefile
331 $(call if_changed,wrap,$*,$(dtstree)/$*.dts)
333 # This cannot be in the root of $(src) as the zImage rule always adds a $(obj)
334 # prefix
335 $(obj)/vmlinux.strip: vmlinux
336 $(STRIP) -s -R .comment $< -o $@
338 $(obj)/zImage.iseries: vmlinux
339 $(STRIP) -s -R .comment $< -o $@
341 $(obj)/uImage: vmlinux $(wrapperbits)
342 $(call if_changed,wrap,uboot)
344 $(obj)/cuImage.%: vmlinux $(dtstree)/%.dts $(wrapperbits)
345 $(call if_changed,wrap,cuboot-$*,$(dtstree)/$*.dts)
347 $(obj)/treeImage.initrd.%: vmlinux $(dtstree)/%.dts $(wrapperbits)
348 $(call if_changed,wrap,treeboot-$*,$(dtstree)/$*.dts,,$(obj)/ramdisk.image.gz)
350 $(obj)/treeImage.%: vmlinux $(dtstree)/%.dts $(wrapperbits)
351 $(call if_changed,wrap,treeboot-$*,$(dtstree)/$*.dts)
353 # If there isn't a platform selected then just strip the vmlinux.
354 ifeq (,$(image-y))
355 image-y := vmlinux.strip
356 endif
358 $(obj)/zImage: $(addprefix $(obj)/, $(image-y))
359 @rm -f $@; ln $< $@
360 $(obj)/zImage.initrd: $(addprefix $(obj)/, $(initrd-y))
361 @rm -f $@; ln $< $@
363 install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y))
364 sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" vmlinux System.map "$(INSTALL_PATH)" $<
366 # anything not in $(targets)
367 clean-files += $(image-) $(initrd-) zImage zImage.initrd cuImage.* treeImage.* \
368 otheros.bld
370 # clean up files cached by wrapper
371 clean-kernel := vmlinux.strip vmlinux.bin
372 clean-kernel += $(addsuffix .gz,$(clean-kernel))
373 # If not absolute clean-files are relative to $(obj).
374 clean-files += $(addprefix $(objtree)/, $(clean-kernel))
376 WRAPPER_OBJDIR := /usr/lib/kernel-wrapper
377 WRAPPER_DTSDIR := /usr/lib/kernel-wrapper/dts
378 WRAPPER_BINDIR := /usr/sbin
379 INSTALL := install
381 extra-installed := $(patsubst $(obj)/%, $(DESTDIR)$(WRAPPER_OBJDIR)/%, $(extra-y))
382 hostprogs-installed := $(patsubst %, $(DESTDIR)$(WRAPPER_BINDIR)/%, $(hostprogs-y))
383 wrapper-installed := $(DESTDIR)$(WRAPPER_BINDIR)/wrapper
384 dts-installed := $(patsubst $(obj)/dts/%, $(DESTDIR)$(WRAPPER_DTSDIR)/%, $(wildcard $(obj)/dts/*.dts))
386 all-installed := $(extra-installed) $(hostprogs-installed) $(wrapper-installed) $(dts-installed)
388 quiet_cmd_mkdir = MKDIR $(patsubst $(INSTALL_HDR_PATH)/%,%,$@)
389 cmd_mkdir = mkdir -p $@
391 quiet_cmd_install = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_OBJDIR)/%,%,$@)
392 cmd_install = $(INSTALL) -m0644 $(patsubst $(DESTDIR)$(WRAPPER_OBJDIR)/%,$(obj)/%,$@) $@
394 quiet_cmd_install_dts = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_DTSDIR)/%,dts/%,$@)
395 cmd_install_dts = $(INSTALL) -m0644 $(patsubst $(DESTDIR)$(WRAPPER_DTSDIR)/%,$(srctree)/$(obj)/dts/%,$@) $@
397 quiet_cmd_install_exe = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,%,$@)
398 cmd_install_exe = $(INSTALL) -m0755 $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,$(obj)/%,$@) $@
400 quiet_cmd_install_wrapper = INSTALL $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,%,$@)
401 cmd_install_wrapper = $(INSTALL) -m0755 $(patsubst $(DESTDIR)$(WRAPPER_BINDIR)/%,$(srctree)/$(obj)/%,$@) $@ ;\
402 sed -i $@ -e 's%^object=.*%object=$(WRAPPER_OBJDIR)%' \
403 -e 's%^objbin=.*%objbin=$(WRAPPER_BINDIR)%' \
406 $(DESTDIR)$(WRAPPER_OBJDIR) $(DESTDIR)$(WRAPPER_DTSDIR) $(DESTDIR)$(WRAPPER_BINDIR):
407 $(call cmd,mkdir)
409 $(extra-installed) : $(DESTDIR)$(WRAPPER_OBJDIR)/% : $(obj)/% | $(DESTDIR)$(WRAPPER_OBJDIR)
410 $(call cmd,install)
412 $(hostprogs-installed) : $(DESTDIR)$(WRAPPER_BINDIR)/% : $(obj)/% | $(DESTDIR)$(WRAPPER_BINDIR)
413 $(call cmd,install_exe)
415 $(dts-installed) : $(DESTDIR)$(WRAPPER_DTSDIR)/% : $(srctree)/$(obj)/dts/% | $(DESTDIR)$(WRAPPER_DTSDIR)
416 $(call cmd,install_dts)
418 $(wrapper-installed): $(DESTDIR)$(WRAPPER_BINDIR) $(srctree)/$(obj)/wrapper | $(DESTDIR)$(WRAPPER_BINDIR)
419 $(call cmd,install_wrapper)
421 $(obj)/bootwrapper_install: $(all-installed)