Skip to content

Commit b2e8dbd

Browse files
committed
Blackfin: add an uncompressed vmImage target
This is useful for quick tests where networks are faster than compression, and/or the compression code is broken. Reported-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
1 parent 13a1320 commit b2e8dbd

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎arch/blackfin/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ archclean:
137137

138138
INSTALL_PATH ?= /tftpboot
139139
boot := arch/$(ARCH)/boot
140-
BOOT_TARGETS = vmImage vmImage.bz2 vmImage.gz vmImage.lzma
140+
BOOT_TARGETS = vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma
141141
PHONY += $(BOOT_TARGETS) install
142142
KBUILD_IMAGE := $(boot)/vmImage
143143

@@ -151,6 +151,7 @@ install:
151151

152152
define archhelp
153153
echo '* vmImage - Alias to selected kernel format (vmImage.gz by default)'
154+
echo ' vmImage.bin - Uncompressed Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bin)'
154155
echo ' vmImage.bz2 - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bz2)'
155156
echo '* vmImage.gz - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.gz)'
156157
echo ' vmImage.lzma - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzma)'

‎arch/blackfin/boot/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
MKIMAGE := $(srctree)/scripts/mkuboot.sh
1010

11-
targets := vmImage vmImage.bz2 vmImage.gz vmImage.lzma
11+
targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma
1212
extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma
1313

1414
quiet_cmd_uimage = UIMAGE $@
@@ -29,6 +29,9 @@ $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
2929
$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
3030
$(call if_changed,lzma)
3131

32+
$(obj)/vmImage.bin: $(obj)/vmlinux.bin
33+
$(call if_changed,uimage,none)
34+
3235
$(obj)/vmImage.bz2: $(obj)/vmlinux.bin.bz2
3336
$(call if_changed,uimage,bzip2)
3437

@@ -38,6 +41,7 @@ $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz
3841
$(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma
3942
$(call if_changed,uimage,lzma)
4043

44+
suffix-y := bin
4145
suffix-$(CONFIG_KERNEL_GZIP) := gz
4246
suffix-$(CONFIG_KERNEL_BZIP2) := bz2
4347
suffix-$(CONFIG_KERNEL_LZMA) := lzma

0 commit comments

Comments
 (0)