Changeset 32927


Ignore:
Timestamp:
2012-08-01T01:09:50+02:00 (6 years ago)
Author:
florian
Message:

[mcs814x] properly generate squashfs, jffs2 and initramfs images and kernels

Location:
trunk/target/linux/mcs814x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/mcs814x/Makefile

    r32731 r32927  
    1010BOARD:=mcs814x 
    1111BOARDNAME:=Moschip MCS814x 
    12 FEATURES:=pci usb 
     12FEATURES:=pci usb squashfs jffs2 
    1313CFLAGS=-Os -pipe -march=armv5te -mtune=arm926ej-s -fno-caller-saves 
    1414MAINTAINER:=Florian Fainelli <florian@openwrt.org> 
  • trunk/target/linux/mcs814x/image/Makefile

    r32462 r32927  
    1111 
    1212LOADADDR:=0x00008000 
     13 
     14UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage 
     15ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) 
     16        UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs 
     17endif 
    1318 
    1419define Image/Build/MkuImage 
     
    2530        $(foreach dtb,$(TARGET_DTBS),cat $(LINUX_DIR)/arch/$(ARCH)/boot/$(dtb).dtb >> $(KDIR)/zImage-$(dtb);) 
    2631        $(foreach dtb,$(TARGET_DTBS),$(call Image/Build/MkuImage,$(KDIR)/zImage-$(dtb),$(KDIR)/uImage-$(dtb))) 
     32        $(foreach dtb,$(TARGET_DTBS),cp $(KDIR)/uImage-$(dtb) $(UIMAGE)-$(dtb);) 
    2733        $(call Image/Build/Initramfs) 
    2834endef 
    2935 
    30 define Image/Build/squashfs 
    31          $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) 
    32 endef 
    33  
    34 define Image/Build/ext2 
    35         cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-ext2.img 
    36 endef 
    37  
    38 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) 
    39 define Image/Build/Initramfs 
    40         $(foreach dtb,$(TARGET_DTBS),cp $(KDIR)/uImage-$(dtb) $(BIN_DIR)/uImage-$(IMG_PREFIX)-$(dtb)-initramfs;) 
    41 endef 
    42 endif 
    43  
    4436define Image/Build 
    45         $(call Image/Build/$(1),$(1)) 
     37        $(call Image/Build/$(1)) 
     38        dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync 
    4639endef 
    4740 
Note: See TracChangeset for help on using the changeset viewer.