summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-05-07 00:36:47 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-05-07 00:36:47 +0000
commite2274f0509ee24e4e937a55e45b3d988c27b0689 (patch)
treea3ba684fdc44e59ce812b13959cac9021f5662c1 /target/linux
parent9ff2cc6d2adedac68c6ba5726a3c9d2c9dcef3a2 (diff)
downloadmtk-20170518-e2274f0509ee24e4e937a55e45b3d988c27b0689.zip
mtk-20170518-e2274f0509ee24e4e937a55e45b3d988c27b0689.tar.gz
mtk-20170518-e2274f0509ee24e4e937a55e45b3d988c27b0689.tar.bz2
also copy bzImage when generating initramfs images
SVN-Revision: 15650
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/rdc/image/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/target/linux/rdc/image/Makefile b/target/linux/rdc/image/Makefile
index ecfe7ff..3c7f476 100644
--- a/target/linux/rdc/image/Makefile
+++ b/target/linux/rdc/image/Makefile
@@ -7,14 +7,8 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
-ifeq ($(CONFIG_LINUX_2_6_23),y)
-ARCH_PATH=i386
-else
-ARCH_PATH=x86
-endif
-
define Image/Prepare
- $(CP) $(LINUX_DIR)/arch/$(ARCH_PATH)/boot/bzImage $(KDIR)/bzImage
+ $(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
endef
define trxalign/jffs2-128k
@@ -74,9 +68,16 @@ define Image/Build/amit
$(STAGING_DIR_HOST)/bin/makeamitbin -o $(BIN_DIR)/openwrt-$(BOARD)-$(1)-ar360w3g.bin -1 ALK_ATG001 -2 Atropos linux3g $(KDIR)/bzImage ramdisk3g $(KDIR)/root.$(1)
endef
+define Image/Build/Initramfs
+ $(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-ramfs.bzImage
+endef
+
define Image/Build
$(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD).bzImage
$(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
+ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
+ $(call Image/Build/Initramfs)
+endif
endef
$(eval $(call BuildImage))