1 #############################################################
3 # mksquashfs to build to target squashfs filesystems
5 #############################################################
6 SQUASHFS_DIR
=$(BUILD_DIR
)/squashfs2.0
7 SQUASHFS_SOURCE
=squashfs2.0
-ALPHA.
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
): $(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
17 $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
: $(SQUASHFS_DIR
)
18 $(MAKE
) -C
$(SQUASHFS_DIR
)/squashfs-tools
;
20 squashfs
: $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
22 squashfs-source
: $(DL_DIR
)/$(SQUASHFS_SOURCE
)
25 -$(MAKE
) -C
$(SQUASHFS_DIR
)/squashfs-tools
clean
28 rm -rf
$(SQUASHFS_DIR
)
30 #############################################################
32 # Build the squashfs root filesystem image
34 #############################################################
36 squashfsroot
: squashfs
37 #-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) --strip-unneeded 2>/dev/null || true;
38 -@find
$(TARGET_DIR
) -type f
-perm
+111 | xargs
$(STRIP
) 2>/dev
/null || true
;
39 @
rm -rf
$(TARGET_DIR
)/usr
/man
40 @
rm -rf
$(TARGET_DIR
)/usr
/info
41 #$(SQUASHFS_DIR)/squashfs-tools/mksquashfs -q -D $(SOURCE_DIR)/device_table.txt $(TARGET_DIR) $(IMAGE)
42 $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
$(TARGET_DIR
) $(IMAGE
) -noappend
-root-owned
44 squashfsroot-source
: squashfs-source
47 -$(MAKE
) -C
$(SQUASHFS_DIR
) clean
49 squashfsroot-dirclean
:
50 rm -rf
$(SQUASHFS_DIR
)
This page took 0.049171 seconds and 5 git commands to generate.