1 #############################################################
5 #############################################################
9 SQUASHFS_DIR
=$(BUILD_DIR
)/squashfs2.1
-r2
10 SQUASHFS_SOURCE
=squashfs2.1
-r2.
tar.gz
11 SQUASHFS_SITE
=http
://dl.sourceforge.net
/sourceforge
/squashfs
13 $(DL_DIR
)/$(SQUASHFS_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(SQUASHFS_SITE
)/$(SQUASHFS_SOURCE
)
16 $(SQUASHFS_DIR
)/.unpacked
: $(DL_DIR
)/$(SQUASHFS_SOURCE
)
17 zcat
$(DL_DIR
)/$(SQUASHFS_SOURCE
) |
tar -C
$(BUILD_DIR
) -xvf
-
18 touch
$(SQUASHFS_DIR
)/.unpacked
20 $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
: $(SQUASHFS_DIR
)/.unpacked
21 $(MAKE
) -C
$(SQUASHFS_DIR
)/squashfs-tools
;
23 squashfs
: $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
25 squashfs-source
: $(DL_DIR
)/$(SQUASHFS_SOURCE
)
28 -$(MAKE
) -C
$(SQUASHFS_DIR
)/squashfs-tools
clean
31 rm -rf
$(SQUASHFS_DIR
)
34 #############################################################
36 # Build the squashfs root filesystem image
38 #############################################################
40 squashfsroot
: squashfs
41 @
rm -rf
$(TARGET_DIR
)/usr
/man
42 @
rm -rf
$(TARGET_DIR
)/usr
/info
43 $(SQUASHFS_DIR
)/squashfs-tools
/mksquashfs
$(TARGET_DIR
) $(IMAGE
).
$(ROOTFSTYPE
) -noappend
-root-owned
-le
45 squashfsroot-source
: squashfs-source
48 -$(MAKE
) -C
$(SQUASHFS_DIR
) clean
50 squashfsroot-dirclean
:
51 rm -rf
$(SQUASHFS_DIR
)
53 openwrt-linux.trx.
$(ROOTFSTYPE
):
54 $(BUILD_DIR
)/trx
-o openwrt-linux.trx.
$(ROOTFSTYPE
) $(LINUX_DIR
)/$(LINUX_BINLOC
) $(IMAGE
).
$(ROOTFSTYPE
)
56 openwrt-gs-code.bin.
$(ROOTFSTYPE
): openwrt-linux.trx.
$(ROOTFSTYPE
)
57 $(BUILD_DIR
)/addpattern
-2 -i openwrt-linux.trx.
$(ROOTFSTYPE
) -o openwrt-gs-code.bin.
$(ROOTFSTYPE
) -g
59 openwrt-g-code.bin.
$(ROOTFSTYPE
): openwrt-gs-code.bin.
$(ROOTFSTYPE
)
60 sed
-e
"1s,^W54S,W54G," < openwrt-gs-code.bin.
$(ROOTFSTYPE
) > openwrt-g-code.bin.
$(ROOTFSTYPE
)
62 openwrt-image
: openwrt-g-code.bin.
$(ROOTFSTYPE
)
This page took 0.046117 seconds and 5 git commands to generate.