small image builder change
[openwrt.git] / target / linux / image / squashfs / Makefile
1 include $(TOPDIR)/rules.mk
2
3 SQUASHFSLZMA_DIR=$(BUILD_DIR)/squashfs2.1-r2
4 SQUASHFSLZMA_SOURCE=squashfs2.1-r2.tar.gz
5 SQUASHFSLZMA_SITE=@SF/squashfs
6 SQUASHFSLZMA_MD5SUM=ffa24eff13b2ca51ed6990d15237e4c1
7
8 $(DL_DIR)/$(SQUASHFSLZMA_SOURCE):
9 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SQUASHFSLZMA_SOURCE) $(SQUASHFSLZMA_MD5SUM) $(SQUASHFSLZMA_SITE)
10
11 $(SQUASHFSLZMA_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
12 zcat $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) | tar -C $(BUILD_DIR) -xvf -
13 $(PATCH) $(SQUASHFSLZMA_DIR) ./patches
14 touch $(SQUASHFSLZMA_DIR)/.unpacked
15
16 $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/.unpacked
17 $(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools mksquashfs-lzma LZMAPATH=$(BUILD_DIR)/lzma
18
19 $(STAGING_DIR)/bin/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma
20 cp $< $@
21
22 source: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
23 prepare: $(SQUASHFSLZMA_DIR)/.unpacked
24 compile: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(STAGING_DIR)/bin/mksquashfs-lzma
25 install:
26 clean:
27 rm -rf $(SQUASHFSLZMA_DIR)
This page took 0.043513 seconds and 5 git commands to generate.