cfg80211: fix scan crash on single-band cards
[linux/fpc-iii.git] / arch / blackfin / boot / Makefile
blob0a49279e3428418f9cb1e04ada32e8371620139b
2 # arch/blackfin/boot/Makefile
4 # This file is subject to the terms and conditions of the GNU General Public
5 # License. See the file "COPYING" in the main directory of this archive
6 # for more details.
9 MKIMAGE := $(srctree)/scripts/mkuboot.sh
11 targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip
12 extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip
14 UIMAGE_OPTS-y :=
15 UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD)
16 UIMAGE_OPTS-$(CONFIG_ROMKERNEL) += -a $(CONFIG_ROM_BASE) -x
18 quiet_cmd_uimage = UIMAGE $@
19 cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \
20 -C $(2) -n '$(CPU_REV)-$(KERNELRELEASE)' \
21 -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \
22 $(UIMAGE_OPTS-y) -d $< $@
24 $(obj)/vmlinux.bin: vmlinux FORCE
25 $(call if_changed,objcopy)
27 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
28 $(call if_changed,gzip)
30 $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
31 $(call if_changed,bzip2)
33 $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
34 $(call if_changed,lzma)
36 $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE
37 $(call if_changed,lzo)
39 # The mkimage tool wants 64bytes prepended to the image
40 quiet_cmd_mk_bin_xip = BIN $@
41 cmd_mk_bin_xip = ( printf '%64s' | tr ' ' '\377' ; cat $< ) > $@
42 $(obj)/vmlinux.bin.xip: $(obj)/vmlinux.bin FORCE
43 $(call if_changed,mk_bin_xip)
45 $(obj)/vmImage.bin: $(obj)/vmlinux.bin
46 $(call if_changed,uimage,none)
48 $(obj)/vmImage.bz2: $(obj)/vmlinux.bin.bz2
49 $(call if_changed,uimage,bzip2)
51 $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz
52 $(call if_changed,uimage,gzip)
54 $(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma
55 $(call if_changed,uimage,lzma)
57 $(obj)/vmImage.lzo: $(obj)/vmlinux.bin.lzo
58 $(call if_changed,uimage,lzo)
60 $(obj)/vmImage.xip: $(obj)/vmlinux.bin.xip
61 $(call if_changed,uimage,none)
63 suffix-y := bin
64 suffix-$(CONFIG_KERNEL_GZIP) := gz
65 suffix-$(CONFIG_KERNEL_BZIP2) := bz2
66 suffix-$(CONFIG_KERNEL_LZMA) := lzma
67 suffix-$(CONFIG_KERNEL_LZO) := lzo
68 suffix-$(CONFIG_ROMKERNEL) := xip
70 $(obj)/vmImage: $(obj)/vmImage.$(suffix-y)
71 @ln -sf $(notdir $<) $@
73 install:
74 sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"