1 #############################################################
3 # mksquashfs to build to target squashfs filesystems
5 #############################################################
6 SQUASHFS_DIR
=$(BUILD_DIR
)/squashfs2.0r2
7 SQUASHFS_SOURCE
=squashfs2.0
-r2.
tar.gz
8 SQUASHFS_SITE
=http
://dl.sourceforge.net
/sourceforge
/squashfs
10 $(DL_DIR
)/$(SQUASHFS_SOURCE
):
11 $(WGET
) -P
$(DL_DIR
) $(SQUASHFS_SITE
)/$(SQUASHFS_SOURCE
)
13 $(SQUASHFS_DIR
)/.unpacked
: $(DL_DIR
)/$(SQUASHFS_SOURCE
) #$(SQUASHFS_PATCH)
14 zcat
$(DL_DIR
)/$(SQUASHFS_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
15 $(SOURCE_DIR
)/patch-kernel.sh
$(SQUASHFS_DIR
) $(SOURCE_DIR
) squashfs.patch
16 touch
$(SQUASHFS_DIR
)/.unpacked
18 $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
: $(SQUASHFS_DIR
)/.unpacked
19 $(MAKE
) -C
$(SQUASHFS_DIR
)/squashfs-tools
;
21 squashfs
: $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
23 squashfs-source
: $(DL_DIR
)/$(SQUASHFS_SOURCE
)
26 -$(MAKE
) -C
$(SQUASHFS_DIR
)/squashfs-tools
clean
29 rm -rf
$(SQUASHFS_DIR
)
31 #############################################################
33 # Build the squashfs root filesystem image
35 #############################################################
37 squashfsroot
: squashfs
38 #-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) 2>/dev/null || true;
39 #-@find $(TARGET_DIR) -type f -perm +111 | xargs $(STAGING_DIR)/bin/sstrip 2>/dev/null || true;
40 @
rm -rf
$(TARGET_DIR
)/usr
/man
41 @
rm -rf
$(TARGET_DIR
)/usr
/info
42 #$(SQUASHFS_DIR)/squashfs-tools/mksquashfs -q -D $(SOURCE_DIR)/device_table.txt $(TARGET_DIR) $(IMAGE)
43 $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
$(TARGET_DIR
) $(IMAGE
) -noappend
-root-owned
-le
45 squashfsroot-source
: squashfs-source
48 -$(MAKE
) -C
$(SQUASHFS_DIR
) clean
50 squashfsroot-dirclean
:
51 rm -rf
$(SQUASHFS_DIR
)
This page took 0.045855 seconds and 5 git commands to generate.