summaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/image
diff options
context:
space:
mode:
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-04 08:47:00 +0000
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-05-04 08:47:00 +0000
commit55090a4f276ff1b0db0b681737ce8972b9a10c35 (patch)
tree6084b9e59251aee667c39ed882794c18f27c6057 /target/linux/rb532/image
parent8359c4e323c66a7af0cad4785002d5830ff6f2a1 (diff)
linux/rb532: use kernel and initramfs tags on image generation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26817 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rb532/image')
-rw-r--r--target/linux/rb532/image/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/rb532/image/Makefile b/target/linux/rb532/image/Makefile
index b7849cbda..da4baaa48 100644
--- a/target/linux/rb532/image/Makefile
+++ b/target/linux/rb532/image/Makefile
@@ -28,8 +28,13 @@ define Image/Prepare
$(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile
endef
+VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux-kernel
+ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
+ VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux-initramfs
+endif
+
define Image/BuildKernel
- $(CP) $(KDIR)/loader.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux
+ $(CP) $(KDIR)/loader.elf $(VMLINUX)
endef
define Image/cmdline/jffs2-64k
@@ -64,9 +69,6 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
$(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile
endef
- define Image/BuildKernel
- $(CP) $(KDIR)/loader.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux
- endef
endif
$(eval $(call BuildImage))