Add ndisc package, in its own menu to avoid breaking sort order
[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.0r2
7 SQUASHFS_SOURCE=squashfs2.0-r2.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)/.unpacked: $(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 touch $(SQUASHFS_DIR)/.unpacked
17
18 $(SQUASHFS_DIR)/squashfs-tools/mksquashfs: $(SQUASHFS_DIR)/.unpacked
19 $(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools;
20
21 squashfs: $(SQUASHFS_DIR)/squashfs-tools/mksquashfs
22
23 squashfs-source: $(DL_DIR)/$(SQUASHFS_SOURCE)
24
25 squashfs-clean:
26 -$(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools clean
27
28 squashfs-dirclean:
29 rm -rf $(SQUASHFS_DIR)
30
31 #############################################################
32 #
33 # Build the squashfs root filesystem image
34 #
35 #############################################################
36
37 squashfsroot: squashfs
38 #-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) 2>/dev/null || true;
39 #-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STAGING_DIR)/bin/sstrip 2>/dev/null || true;
40 @rm -rf $(TARGET_DIR)/usr/man
41 @rm -rf $(TARGET_DIR)/usr/info
42 #$(SQUASHFS_DIR)/squashfs-tools/mksquashfs -q -D $(SOURCE_DIR)/device_table.txt $(TARGET_DIR) $(IMAGE)
43 $(SQUASHFS_DIR)/squashfs-tools/mksquashfs $(TARGET_DIR) $(IMAGE) -noappend -root-owned -le
44
45 squashfsroot-source: squashfs-source
46
47 squashfsroot-clean:
48 -$(MAKE) -C $(SQUASHFS_DIR) clean
49
50 squashfsroot-dirclean:
51 rm -rf $(SQUASHFS_DIR)
52
This page took 0.043678 seconds and 5 git commands to generate.