cns3xxx: build images for the old boot loader and the new one (default to the new one)
SVN-Revision: 33488
This commit is contained in:
parent
59b1d018b1
commit
190b4344a3
1 changed files with 8 additions and 2 deletions
|
@ -7,12 +7,18 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/image.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
|
define Image/Prepare
|
||||||
cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
|
$(call mkimage,old,0x00008000)
|
||||||
|
$(call mkimage,new,0x20008000)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
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
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
|
|
Loading…
Reference in a new issue