1 include $(TOPDIR
)/rules.mk
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
8 $(DL_DIR
)/$(SQUASHFSLZMA_SOURCE
):
9 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(SQUASHFSLZMA_SOURCE
) $(SQUASHFSLZMA_MD5SUM
) $(SQUASHFSLZMA_SITE
)
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
16 $(SQUASHFSLZMA_DIR
)/squashfs-tools
/mksquashfs-lzma
: $(SQUASHFSLZMA_DIR
)/.unpacked
17 $(MAKE
) -C
$(SQUASHFSLZMA_DIR
)/squashfs-tools mksquashfs-lzma LZMAPATH
=$(BUILD_DIR
)/lzma
19 $(STAGING_DIR
)/bin
/mksquashfs-lzma
: $(SQUASHFSLZMA_DIR
)/squashfs-tools
/mksquashfs-lzma
22 source
: $(DL_DIR
)/$(SQUASHFSLZMA_SOURCE
)
23 prepare
: $(SQUASHFSLZMA_DIR
)/.unpacked
24 compile
: $(SQUASHFSLZMA_DIR
)/squashfs-tools
/mksquashfs-lzma
$(STAGING_DIR
)/bin
/mksquashfs-lzma
27 rm -rf
$(SQUASHFSLZMA_DIR
)
30 define squashfs_template
31 @mkdir
-p
$(1)/root
/jffs
32 PATH
=$(TARGET_PATH
) mksquashfs-lzma
$(1)/root
$(1)/root.squashfs
-noappend
-root-owned
-le
33 PATH
=$(TARGET_PATH
) trx
-o
$@
$(BUILD_DIR
)/loader.gz \
34 $(1)/kernel-image
$(1)/root.squashfs