1 #############################################################
5 #############################################################
7 SQUASHFS_DIR
=$(BUILD_DIR
)/squashfs2.1
-r2
8 SQUASHFS_SOURCE
=squashfs2.1
-r2.
tar.gz
9 SQUASHFS_SITE
=http
://dl.sourceforge.net
/sourceforge
/squashfs
11 $(DL_DIR
)/$(SQUASHFS_SOURCE
):
12 $(WGET
) -P
$(DL_DIR
) $(SQUASHFS_SITE
)/$(SQUASHFS_SOURCE
)
14 $(SQUASHFS_DIR
)/.unpacked
: $(DL_DIR
)/$(SQUASHFS_SOURCE
)
15 zcat
$(DL_DIR
)/$(SQUASHFS_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
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
)
32 #############################################################
34 # Build the squashfs root filesystem image
36 #############################################################
38 squashfsroot
: squashfs
39 @
rm -rf
$(TARGET_DIR
)/usr
/man
40 @
rm -rf
$(TARGET_DIR
)/usr
/info
41 $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
$(TARGET_DIR
) $(IMAGE
).squashfs
-noappend
-root-owned
-le
43 squashfsroot-source
: squashfs-source
46 -$(MAKE
) -C
$(SQUASHFS_DIR
) clean
48 squashfsroot-dirclean
:
49 rm -rf
$(SQUASHFS_DIR
)
51 openwrt-linux.trx.squashfs
:
52 $(BUILD_DIR
)/trx
-o openwrt-linux.trx.squashfs
$(LINUX_DIR
)/$(LINUX_BINLOC
) $(IMAGE
).squashfs
54 openwrt-gs-code.bin.squashfs
: openwrt-linux.trx.squashfs
55 $(BUILD_DIR
)/addpattern
-2 -i openwrt-linux.trx.squashfs
-o openwrt-gs-code.bin.squashfs
-g
57 openwrt-g-code.bin.squashfs
: openwrt-gs-code.bin.squashfs
58 sed
-e
"1s,^W54S,W54G," < openwrt-gs-code.bin.squashfs
> openwrt-g-code.bin.squashfs
60 openwrt-image-squashfs
: openwrt-g-code.bin.squashfs