summaryrefslogtreecommitdiffstats
path: root/target/linux/cns3xxx/image
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-19 23:50:09 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-19 23:50:09 +0000
commit2a134ef25ad2122501a55f7ec5eeb03ca7e4db47 (patch)
tree5773a5c3a230c5e4bbd910e115cb5aee58ac7254 /target/linux/cns3xxx/image
parentd6c5497a48ad8536375c757365d59e03ff38fc88 (diff)
cns3xxx: build images for the old boot loader and the new one (default to the new one)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33488 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/cns3xxx/image')
-rw-r--r--target/linux/cns3xxx/image/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/target/linux/cns3xxx/image/Makefile b/target/linux/cns3xxx/image/Makefile
index 0265d7c54..271d5ea19 100644
--- a/target/linux/cns3xxx/image/Makefile
+++ b/target/linux/cns3xxx/image/Makefile
@@ -7,12 +7,18 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
+define mkimage
+ mkimage -A arm -O linux -T kernel -C none -a $(2) -e $(2) -n 'OpenWrt Linux-$(LINUX_VERSION)' -d $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/uImage-$(1)
+endef
+
define Image/Prepare
- cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
+ $(call mkimage,old,0x00008000)
+ $(call mkimage,new,0x20008000)
endef
define Image/BuildKernel
- cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
+ cp $(KDIR)/uImage-old $(BIN_DIR)/openwrt-$(BOARD)-old-uboot-uImage
+ cp $(KDIR)/uImage-new $(BIN_DIR)/openwrt-$(BOARD)-uImage
endef
define Image/Build