remove patch, some et.4xx cleanup
[openwrt.git] / openwrt / target / squashfs / squashfsroot.mk
1 #############################################################
2 #
3 # squashfs target
4 #
5 #############################################################
6
7 ROOTFSTYPE=squashfs
8
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
12
13 $(DL_DIR)/$(SQUASHFS_SOURCE):
14 $(WGET) -P $(DL_DIR) $(SQUASHFS_SITE)/$(SQUASHFS_SOURCE)
15
16 $(SQUASHFS_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFS_SOURCE)
17 zcat $(DL_DIR)/$(SQUASHFS_SOURCE) | tar -C $(BUILD_DIR) -xvf -
18 touch $(SQUASHFS_DIR)/.unpacked
19
20 $(SQUASHFS_DIR)/squashfs-tools/mksquashfs: $(SQUASHFS_DIR)/.unpacked
21 $(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools;
22
23 squashfs: $(SQUASHFS_DIR)/squashfs-tools/mksquashfs
24
25 squashfs-source: $(DL_DIR)/$(SQUASHFS_SOURCE)
26
27 squashfs-clean:
28 -$(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools clean
29
30 squashfs-dirclean:
31 rm -rf $(SQUASHFS_DIR)
32
33
34 #############################################################
35 #
36 # Build the squashfs root filesystem image
37 #
38 #############################################################
39
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
44
45 squashfsroot-source: squashfs-source
46
47 squashfsroot-clean:
48 -$(MAKE) -C $(SQUASHFS_DIR) clean
49
50 squashfsroot-dirclean:
51 rm -rf $(SQUASHFS_DIR)
52
53 openwrt-linux.trx.$(ROOTFSTYPE):
54 $(BUILD_DIR)/trx -o openwrt-linux.trx.$(ROOTFSTYPE) $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFSTYPE)
55
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
58
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)
61
62 openwrt-image: openwrt-g-code.bin.$(ROOTFSTYPE)
This page took 0.046117 seconds and 5 git commands to generate.