Changeset 38219


Ignore:
Timestamp:
2013-09-26T21:16:19+02:00 (4 years ago)
Author:
florian
Message:

rb532: fix initramfs image creation (#14215)

Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

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

    r38157 r38219  
    2727        cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma 
    2828        $(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile 
     29ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) 
     30        $(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux-initramfs '$(strip $(call Image/cmdline/yaffs2)) ' 
     31        cat $(KDIR)/vmlinux-initramfs | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux-initramfs.lzma 
     32        $(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile 
     33        $(CP) $(KDIR)/loader.elf $(KDIR)/loader-initramfs.elf 
     34endif 
    2935endef 
    3036 
     
    3339define Image/BuildKernel 
    3440        $(CP) $(KDIR)/loader.elf $(VMLINUX) 
    35 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) 
    36         $(CP) $(KDIR)/loader.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux-initramfs 
     41ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) 
     42        $(CP) $(KDIR)/loader-initramfs.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux-initramfs 
    3743endif 
    3844endef 
     
    6470endef 
    6571 
    66 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),) 
    67   define Image/Prepare 
    68         $(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux-initramfs '$(strip $(call Image/cmdline/yaffs2)) ' 
    69         cat $(KDIR)/vmlinux-initramfs | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux-initramfs.lzma 
    70         $(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile 
    71         $(CP) $(KDIR)/loader.elf $(KDIR)/loader-initramfs.elf 
    72   endef 
    73 endif 
    74  
    7572$(eval $(call BuildImage)) 
Note: See TracChangeset for help on using the changeset viewer.