2005-02-18 01:18:46 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# squashfs target
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2005-04-02 15:12:58 +03:00
|
|
|
SQUASHFSLZMA_DIR=$(BUILD_DIR)/squashfs2.1-r2
|
|
|
|
SQUASHFSLZMA_SOURCE=squashfs2.1-r2.tar.gz
|
2005-04-27 11:20:22 +03:00
|
|
|
SQUASHFSLZMA_SITE=@SF/squashfs
|
|
|
|
SQUASHFSLZMA_MD5SUM=ffa24eff13b2ca51ed6990d15237e4c1
|
2005-02-18 01:18:46 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(SQUASHFSLZMA_SOURCE):
|
2005-04-27 11:20:22 +03:00
|
|
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(SQUASHFSLZMA_SOURCE) $(SQUASHFSLZMA_MD5SUM) $(SQUASHFSLZMA_SITE)
|
2005-02-18 01:18:46 +02:00
|
|
|
|
|
|
|
$(SQUASHFSLZMA_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
|
|
|
|
zcat $(DL_DIR)/$(SQUASHFSLZMA_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2005-04-02 15:12:58 +03:00
|
|
|
patch -d $(SQUASHFSLZMA_DIR) -p1 < squashfs2.0-tools-lzma.patch
|
2005-02-18 01:18:46 +02:00
|
|
|
touch $(SQUASHFSLZMA_DIR)/.unpacked
|
|
|
|
|
2005-04-20 20:01:30 +03:00
|
|
|
$(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/.unpacked
|
2005-04-02 15:12:58 +03:00
|
|
|
$(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools mksquashfs-lzma LZMAPATH=$(BUILD_DIR)/lzma
|
2005-02-18 01:18:46 +02:00
|
|
|
|
2005-04-20 20:01:30 +03:00
|
|
|
$(STAGING_DIR)/bin/mksquashfs-lzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
squashfslzma: $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(STAGING_DIR)/bin/mksquashfs-lzma
|
2005-02-18 01:18:46 +02:00
|
|
|
|
|
|
|
squashfslzma-source: $(DL_DIR)/$(SQUASHFSLZMA_SOURCE)
|
|
|
|
|
|
|
|
squashfslzma-clean:
|
|
|
|
-$(MAKE) -C $(SQUASHFSLZMA_DIR)/squashfs-tools clean
|
|
|
|
|
|
|
|
squashfslzma-dirclean:
|
|
|
|
rm -rf $(SQUASHFSLZMA_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Build the squashfs root filesystem image
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
|
|
|
squashfslzmaroot-source: squashfslzma-source
|
|
|
|
|
|
|
|
squashfslzmaroot-dirclean:
|
|
|
|
rm -rf $(SQUASHFSLZMA_DIR)
|