[omap]: copy initramfs zImage to the bin dir as well
authorImre Kaloz <kaloz@openwrt.org>
Wed, 12 Feb 2014 10:51:46 +0000 (10:51 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Wed, 12 Feb 2014 10:51:46 +0000 (10:51 +0000)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39577

target/linux/omap/image/Makefile

index 91b9df3b57b3e669fa2d6b400ff372042e79c3bc..e681b042678732ca68887613e5e49b2c30556177 100644 (file)
@@ -11,7 +11,10 @@ UBIFS_OPTS = -F -m 2048 -e 124KiB -c 4096 -U
 UBI_OPTS = -m 2048 -p 128KiB -s 512 -O 2048
 
 define Image/BuildKernel
-       cp $(KDIR)/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage
+       $(CP) $(KDIR)/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage
+ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+       $(CP) $(KDIR)/zImage-initramfs $(BIN_DIR)/openwrt-$(BOARD)-zImage-initramfs
+ endif
        -mkdir $(BIN_DIR)/dtbs
        -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/am335x*.dtb $(BIN_DIR)/dtbs/
        -$(CP) $(LINUX_DIR)/arch/arm/boot/dts/omap3*.dtb $(BIN_DIR)/dtbs/