From 0b0056bfb44386a6c7d9cd725a85f8d85af6b7c8 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 5 Mar 2007 00:21:30 +0000 Subject: add squashfs support for ixp4xx git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6522 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ixp4xx-2.6/image/Makefile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'target/linux/ixp4xx-2.6/image') diff --git a/target/linux/ixp4xx-2.6/image/Makefile b/target/linux/ixp4xx-2.6/image/Makefile index bb33aff7f..52cca6668 100644 --- a/target/linux/ixp4xx-2.6/image/Makefile +++ b/target/linux/ixp4xx-2.6/image/Makefile @@ -37,17 +37,27 @@ define Image/Build $(call Image/Build/$(1),$(1)) endef +define Image/Build/slug + BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/slugimage.pl \ + -L $(KDIR)/apex-nslu2-armeb.bin -m $(KDIR)/NPE-B \ + -k $(BIN_DIR)/openwrt-nslu2-$(KERNEL)-zImage \ + -r Flashdisk:$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img \ + -p -o $(BIN_DIR)/openwrt-nslu2-$(KERNEL)-$(1).bin +endef + define Image/Build/jffs2-64k dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img bs=65536 conv=sync endef define Image/Build/jffs2-128k dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img bs=131072 conv=sync - BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/slugimage.pl \ - -L $(KDIR)/apex-nslu2-armeb.bin -m $(KDIR)/NPE-B \ - -k $(BIN_DIR)/openwrt-nslu2-$(KERNEL)-zImage \ - -r Flashdisk:$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img \ - -p -o $(BIN_DIR)/openwrt-nslu2-$(KERNEL)-$(1).bin + $(call Image/Build/slug,$(1)) +endef + +define Image/Build/squashfs + $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) + dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img bs=131072 conv=sync + $(call Image/Build/slug,$(1)) endef $(eval $(call BuildImage)) -- cgit v1.2.3