[OpenWrt-Devel] [PATCH] brcm47xx: image: Enhance initramfs support to create chk and alternative nodictionary images
Stephen Parry
sgparry at mainscreen.com
Sun Oct 12 18:35:23 EDT 2014
Enhance support for initramfs:
- added commands to create chk images for flashing via tftp or
stock firmware gui
- added commands to generate nodictionary and noloader variants of trx
images
Signed-off-by: Stephen Parry <sgparry at mainscreen.com>
---
target/linux/brcm47xx/image/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/linux/brcm47xx/image/Makefile b/target/linux/brcm47xx/image/Makefile
index d19a13e..42461d3 100644
--- a/target/linux/brcm47xx/image/Makefile
+++ b/target/linux/brcm47xx/image/Makefile
@@ -21,6 +21,7 @@ define Image/Prepare
gzip -nc9 $(KDIR)/vmlinux > $(KDIR)/vmlinux.gz
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
cat $(KDIR)/vmlinux-initramfs | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux-initramfs.lzma
+ $(STAGING_DIR_HOST)/bin/lzma e -so -d16 $(KDIR)/vmlinux-initramfs > $(KDIR)/vmlinux-initramfs-nodictionary.lzma
endif
rm -f $(KDIR)/loader.gz
$(MAKE) -C lzma-loader \
@@ -228,6 +229,8 @@ endef
define Image/Build/Initramfs
$(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/$(IMG_PREFIX)-initramfs.trx -f $(KDIR)/loader.gz -f $(KDIR)/vmlinux-initramfs.lzma
+ $(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/$(IMG_PREFIX)-initramfs-noloader-nodictionary.trx -f $(KDIR)/vmlinux-initramfs-nodictionary.lzma
+ $(call Image/Build/$(SUBTARGET)/squashfs,initramfs)
endef
# $(1): filesystem type.
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list