diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-05 00:21:30 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-05 00:21:30 +0000 |
commit | 0b0056bfb44386a6c7d9cd725a85f8d85af6b7c8 (patch) | |
tree | b2a081d600b39160c8ce5f773badc00506563d4d | |
parent | 1c92134bda36e1cdfc7cf6a192957368d96f9a78 (diff) |
add squashfs support for ixp4xx
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6522 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ixp4xx-2.6/Makefile | 2 | ||||
-rw-r--r-- | target/linux/ixp4xx-2.6/config/default | 3 | ||||
-rw-r--r-- | target/linux/ixp4xx-2.6/image/Makefile | 20 |
3 files changed, 17 insertions, 8 deletions
diff --git a/target/linux/ixp4xx-2.6/Makefile b/target/linux/ixp4xx-2.6/Makefile index 5eea6d625..6357bcc86 100644 --- a/target/linux/ixp4xx-2.6/Makefile +++ b/target/linux/ixp4xx-2.6/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk ARCH:=armeb BOARD:=ixp4xx BOARDNAME:=Intel XScale IXP4xx -FEATURES:=jffs2 +FEATURES:=squashfs jffs2 define Target/Description endef diff --git a/target/linux/ixp4xx-2.6/config/default b/target/linux/ixp4xx-2.6/config/default index 0869aa514..6d4fdd0b6 100644 --- a/target/linux/ixp4xx-2.6/config/default +++ b/target/linux/ixp4xx-2.6/config/default @@ -223,7 +223,7 @@ CONFIG_MACH_NAS100D=y CONFIG_MACH_NSLU2=y # CONFIG_MAC_PARTITION is not set # CONFIG_MINIX_FS is not set -CONFIG_MINI_FO=m +CONFIG_MINI_FO=y CONFIG_MTD=y # CONFIG_MTD_ABSENT is not set # CONFIG_MTD_AFS_PARTS is not set @@ -436,7 +436,6 @@ CONFIG_RWSEM_GENERIC_SPINLOCK=y # CONFIG_SOUND is not set # CONFIG_SPARSEMEM_STATIC is not set CONFIG_SPLIT_PTLOCK_CPUS=4096 -# CONFIG_SQUASHFS is not set # CONFIG_SWAP is not set CONFIG_SYN_COOKIES=y # CONFIG_TCP_CONG_HSTCP is not set 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)) |