4059896bc9e1c11cbe3bb66629057204f836c3f3
[openwrt.git] / openwrt / target / squashfs-lzma / squashfslzmaroot.mk
1 #############################################################
2 #
3 # squashfs target
4 #
5 #############################################################
6
7 SQUASHFSLZMA_DIR=$(BUILD_DIR)/squashfs2.1-r2-lzma
8 SQUASHFSLZMA_SOURCE=squashfs2.1-r2-lzma.tar.gz
9 SQUASHFSLZMA_SITE=http://openwrt.openbsd-geek.de
10
11 $(DL_DIR)/$(SQUASHFSLZMA_SOURCE):
12 $(WGET) -P $(DL_DIR) $(SQUASHFSLZMA_SITE)/$(SQUASHFSLZMA_SOURCE)
13
14 $(SQUASHFSLZMA_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
15 zcat $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) | tar -C $(BUILD_DIR) -xvf -
16 touch $(SQUASHFSLZMA_DIR)/.unpacked
17
18 $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs: $(SQUASHFSLZMA_DIR)/.unpacked
19 $(MAKE) -C $(SQUASHFSLZMA_DIR)/lzma/SRC/7zip/Compress/LZMA_Lib
20 $(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools mksquashfs-lzma
21
22 squashfslzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs
23
24 squashfslzma-source: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
25
26 squashfslzma-clean:
27 -$(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools clean
28
29 squashfslzma-dirclean:
30 rm -rf $(SQUASHFSLZMA_DIR)
31
32
33 #############################################################
34 #
35 # Build the squashfs root filesystem image
36 #
37 #############################################################
38
39 squashfslzmaroot: squashfslzma
40 @rm -rf $(TARGET_DIR)/usr/man
41 @rm -rf $(TARGET_DIR)/usr/info
42 @mkdir -p $(TARGET_DIR)/jffs
43 $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(TARGET_DIR) $(IMAGE).squashfslzma -noappend -root-owned -le
44
45 squashfslzmaroot-source: squashfslzma-source
46
47 squashfslzmaroot-clean:
48 -$(MAKE) -C $(SQUASHFSLZMA_DIR) clean
49
50 squashfslzmaroot-dirclean:
51 rm -rf $(SQUASHFSLZMA_DIR)
52
53 ifeq ($(strip $(BR2_TARGET_ROOTFS_SQUASHFS_LZMA)),y)
54 TARGETS+=squashfslzmaroot openwrt-image
55 ROOTFS=squashfslzma
56 endif
This page took 0.042633 seconds and 3 git commands to generate.