X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fmkresin.git;a=blobdiff_plain;f=target%2Flinux%2Fmvebu%2Fimage%2FMakefile;fp=target%2Flinux%2Fmvebu%2Fimage%2FMakefile;h=3a478780693d31023fae0a62b2152c3dc4e79ce7;hp=ef9274866de3e8b4ef4796c1fc05e2d529875e93;hb=85ef69b20299c2c4f42d6bfbfaf807358ebe2078;hpb=1647790ae6202bd70b199e2aa44f8eb43e8d3af1 diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile index ef9274866d..3a47878069 100644 --- a/target/linux/mvebu/image/Makefile +++ b/target/linux/mvebu/image/Makefile @@ -40,6 +40,20 @@ define Build/boot-img-ext4 make_ext4fs -J -L kernel -l $(CONFIG_TARGET_KERNEL_PARTSIZE)M $@.bootimg $@.boot endef +define Build/buffalo-kernel-jffs2 + rm -rf $(KDIR)/kernel_jffs2 $@.fakerd + mkdir -p $(KDIR)/kernel_jffs2 + dd if=/dev/zero of=$@.fakerd bs=131008 count=1 conv=sync + $(STAGING_DIR_HOST)/bin/mkimage \ + -T ramdisk -A $(LINUX_KARCH) -O linux -C gzip -n 'fake initrd' \ + -d $@.fakerd $(KDIR)/kernel_jffs2/initrd.buffalo + cp $@ $(KDIR)/kernel_jffs2/uImage.buffalo + $(STAGING_DIR_HOST)/bin/mkfs.jffs2 \ + --little-endian -v --squash-uids -q -f -n -x lzma -x rtime -m none \ + --eraseblock=128KiB --pad=$(KERNEL_SIZE) -d $(KDIR)/kernel_jffs2 -o $@ + rm -rf $(KDIR)/kernel_jffs2 $@.fakerd +endef + define Build/sdcard-img SIGNATURE="$(IMG_PART_SIGNATURE)" \ ./gen_mvebu_sdcard_img.sh $@ \