Changeset 33488


Ignore:
Timestamp:
2012-09-20T01:50:09+02:00 (5 years ago)
Author:
nbd
Message:

cns3xxx: build images for the old boot loader and the new one (default to the new one)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/cns3xxx/image/Makefile

    r22323 r33488  
    88include $(INCLUDE_DIR)/image.mk 
    99 
     10define mkimage 
     11        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) 
     12endef 
     13 
    1014define Image/Prepare 
    11         cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage 
     15        $(call mkimage,old,0x00008000) 
     16        $(call mkimage,new,0x20008000) 
    1217endef 
    1318 
    1419define Image/BuildKernel 
    15         cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage 
     20        cp $(KDIR)/uImage-old $(BIN_DIR)/openwrt-$(BOARD)-old-uboot-uImage 
     21        cp $(KDIR)/uImage-new $(BIN_DIR)/openwrt-$(BOARD)-uImage 
    1622endef 
    1723 
Note: See TracChangeset for help on using the changeset viewer.