From 4d71a0805ae4e1e69596b1fb0682ec184d8af290 Mon Sep 17 00:00:00 2001 From: mbm Date: Sun, 6 Feb 2005 01:32:23 +0000 Subject: *** empty log message *** git-svn-id: svn://svn.openwrt.org/openwrt/trunk@213 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/target/squashfs/squashfsroot.mk | 50 +++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 openwrt/target/squashfs/squashfsroot.mk (limited to 'openwrt/target/squashfs/squashfsroot.mk') diff --git a/openwrt/target/squashfs/squashfsroot.mk b/openwrt/target/squashfs/squashfsroot.mk new file mode 100644 index 000000000..f3d280859 --- /dev/null +++ b/openwrt/target/squashfs/squashfsroot.mk @@ -0,0 +1,50 @@ +############################################################# +# +# squashfs target +# +############################################################# + +SQUASHFS_DIR=$(BUILD_DIR)/squashfs2.1-r2 +SQUASHFS_SOURCE=squashfs2.1-r2.tar.gz +SQUASHFS_SITE=http://dl.sourceforge.net/sourceforge/squashfs + +$(DL_DIR)/$(SQUASHFS_SOURCE): + $(WGET) -P $(DL_DIR) $(SQUASHFS_SITE)/$(SQUASHFS_SOURCE) + +$(SQUASHFS_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFS_SOURCE) + zcat $(DL_DIR)/$(SQUASHFS_SOURCE) | tar -C $(BUILD_DIR) -xvf - + touch $(SQUASHFS_DIR)/.unpacked + +$(SQUASHFS_DIR)/squashfs-tools/mksquashfs: $(SQUASHFS_DIR)/.unpacked + $(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools; + +squashfs: $(SQUASHFS_DIR)/squashfs-tools/mksquashfs + +squashfs-source: $(DL_DIR)/$(SQUASHFS_SOURCE) + +squashfs-clean: + -$(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools clean + +squashfs-dirclean: + rm -rf $(SQUASHFS_DIR) + + +############################################################# +# +# Build the squashfs root filesystem image +# +############################################################# + +squashfsroot: squashfs + @rm -rf $(TARGET_DIR)/usr/man + @rm -rf $(TARGET_DIR)/usr/info + $(SQUASHFS_DIR)/squashfs-tools/mksquashfs $(TARGET_DIR) $(IMAGE).squashfs -noappend -root-owned -le + +squashfsroot-source: squashfs-source + +squashfsroot-clean: + -$(MAKE) -C $(SQUASHFS_DIR) clean + +squashfsroot-dirclean: + rm -rf $(SQUASHFS_DIR) + -- cgit v1.2.3