disable aout support
[openwrt.git] / openwrt / target / squashfs-lzma / squashfslzmaroot.mk
1 #############################################################
2 #
3 # squashfs target
4 #
5 #############################################################
6
7 SQUASHFSLZMA_DIR=$(BUILD_DIR)/squashfs2.1-r2
8 SQUASHFSLZMA_SOURCE=squashfs2.1-r2.tar.gz
9 SQUASHFSLZMA_SITE=http://mesh.dl.sourceforge.net/sourceforge/squashfs/
10
11 $(DL_DIR)/$(SQUASHFSLZMA_SOURCE):
12 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SQUASHFSLZMA_SOURCE) x $(SQUASHFSLZMA_SITE)
13
14 $(SQUASHFSLZMA_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
15 zcat $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) | tar -C $(BUILD_DIR) -xvf -
16 patch -d $(SQUASHFSLZMA_DIR) -p1 < squashfs2.0-tools-lzma.patch
17 touch $(SQUASHFSLZMA_DIR)/.unpacked
18
19 $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/.unpacked
20 $(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools mksquashfs-lzma LZMAPATH=$(BUILD_DIR)/lzma
21
22 $(STAGING_DIR)/bin/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma
23 cp $< $@
24
25 squashfslzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(STAGING_DIR)/bin/mksquashfs-lzma
26
27 squashfslzma-source: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
28
29 squashfslzma-clean:
30 -$(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools clean
31
32 squashfslzma-dirclean:
33 rm -rf $(SQUASHFSLZMA_DIR)
34
35
36 #############################################################
37 #
38 # Build the squashfs root filesystem image
39 #
40 #############################################################
41
42 squashfslzmaroot-source: squashfslzma-source
43
44 squashfslzmaroot-dirclean:
45 rm -rf $(SQUASHFSLZMA_DIR)
This page took 0.04853 seconds and 5 git commands to generate.