1 #############################################################
5 #############################################################
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
/
11 $(DL_DIR
)/$(SQUASHFSLZMA_SOURCE
):
12 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(SQUASHFSLZMA_SOURCE
) x
$(SQUASHFSLZMA_SITE
)
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
19 $(SQUASHFSLZMA_DIR
)/squashfs-tools
/mksquashfs
: $(SQUASHFSLZMA_DIR
)/.unpacked
20 $(MAKE
) -C
$(SQUASHFSLZMA_DIR
)/squashfs-tools mksquashfs-lzma LZMAPATH
=$(BUILD_DIR
)/lzma
22 squashfslzma
: $(SQUASHFSLZMA_DIR
)/squashfs-tools
/mksquashfs
24 squashfslzma-source
: $(DL_DIR
)/$(SQUASHFSLZMA_SOURCE
)
27 -$(MAKE
) -C
$(SQUASHFSLZMA_DIR
)/squashfs-tools
clean
29 squashfslzma-dirclean
:
30 rm -rf
$(SQUASHFSLZMA_DIR
)
33 #############################################################
35 # Build the squashfs root filesystem image
37 #############################################################
39 squashfslzmaroot-source
: squashfslzma-source
41 squashfslzmaroot-dirclean
:
42 rm -rf
$(SQUASHFSLZMA_DIR
)