d3a104a83f3e6f0ed8e4ed4f95cbb72c5fe04de5
[openwrt.git] / openwrt / target / squashfs / squashfsroot.mk
1 #############################################################
2 #
3 # squashfs target
4 #
5 #############################################################
6
7 SQUASHFS_DIR=$(BUILD_DIR)/squashfs2.1-r2
8 SQUASHFS_SOURCE=squashfs2.1-r2.tar.gz
9 SQUASHFS_SITE=http://dl.sourceforge.net/sourceforge/squashfs
10
11 $(DL_DIR)/$(SQUASHFS_SOURCE):
12 $(WGET) -P $(DL_DIR) $(SQUASHFS_SITE)/$(SQUASHFS_SOURCE)
13
14 $(SQUASHFS_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFS_SOURCE)
15 zcat $(DL_DIR)/$(SQUASHFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
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 #
34 # Build the squashfs root filesystem image
35 #
36 #############################################################
37
38 squashfsroot: squashfs
39 @rm -rf $(TARGET_DIR)/usr/man
40 @rm -rf $(TARGET_DIR)/usr/info
41 $(SQUASHFS_DIR)/squashfs-tools/mksquashfs $(TARGET_DIR) $(IMAGE).squashfs -noappend -root-owned -le
42
43 squashfsroot-source: squashfs-source
44
45 squashfsroot-clean:
46 -$(MAKE) -C $(SQUASHFS_DIR) clean
47
48 squashfsroot-dirclean:
49 rm -rf $(SQUASHFS_DIR)
50
51 ifeq ($(strip $(BR2_TARGET_ROOTFS_SQUASHFS)),y)
52 TARGETS+=squashfsroot openwrt-image
53 ROOTFS=squashfs
54 endif
This page took 0.050047 seconds and 3 git commands to generate.