removed untested/broken nocat-auth.mk
[openwrt.git] / obsolete-buildroot / make / squashfsroot.mk
1 #############################################################
2 #
3 # mksquashfs to build to target squashfs filesystems
4 #
5 #############################################################
6 SQUASHFS_DIR=$(BUILD_DIR)/squashfs2.0
7 SQUASHFS_SOURCE=squashfs2.0-ALPHA.tar.gz
8 SQUASHFS_SITE=http://dl.sourceforge.net/sourceforge/squashfs
9
10 $(DL_DIR)/$(SQUASHFS_SOURCE):
11 $(WGET) -P $(DL_DIR) $(SQUASHFS_SITE)/$(SQUASHFS_SOURCE)
12
13 $(SQUASHFS_DIR): $(DL_DIR)/$(SQUASHFS_SOURCE) #$(SQUASHFS_PATCH)
14 zcat $(DL_DIR)/$(SQUASHFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
15 $(SOURCE_DIR)/patch-kernel.sh $(SQUASHFS_DIR) $(SOURCE_DIR) squashfs.patch
16
17 $(SQUASHFS_DIR)/squashfs-tools/mksquashfs: $(SQUASHFS_DIR)
18 $(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools;
19
20 squashfs: $(SQUASHFS_DIR)/squashfs-tools/mksquashfs
21
22 squashfs-source: $(DL_DIR)/$(SQUASHFS_SOURCE)
23
24 squashfs-clean:
25 -$(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools clean
26
27 squashfs-dirclean:
28 rm -rf $(SQUASHFS_DIR)
29
30 #############################################################
31 #
32 # Build the squashfs root filesystem image
33 #
34 #############################################################
35
36 squashfsroot: squashfs
37 #-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) --strip-unneeded 2>/dev/null || true;
38 -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
39 @rm -rf $(TARGET_DIR)/usr/man
40 @rm -rf $(TARGET_DIR)/usr/info
41 #$(SQUASHFS_DIR)/squashfs-tools/mksquashfs -q -D $(SOURCE_DIR)/device_table.txt $(TARGET_DIR) $(IMAGE)
42 $(SQUASHFS_DIR)/squashfs-tools/mksquashfs $(TARGET_DIR) $(IMAGE) -noappend -root-owned
43
44 squashfsroot-source: squashfs-source
45
46 squashfsroot-clean:
47 -$(MAKE) -C $(SQUASHFS_DIR) clean
48
49 squashfsroot-dirclean:
50 rm -rf $(SQUASHFS_DIR)
51
This page took 0.045036 seconds and 5 git commands to generate.