remove old trace/verbose junk
[10.03/openwrt.git] / target / linux / image / squashfs.mk
1 endian := le
2
3 ifeq ($(ARCH),mips)
4         endian := be
5 endif
6
7 squashfs-prepare:
8         $(MAKE) -C squashfs prepare
9
10 squashfs-compile: prepare-targets
11         $(MAKE) -C squashfs compile
12         
13 squashfs-clean:
14         $(MAKE) -C squashfs clean
15         rm -f $(KDIR)/root.squashfs
16
17 $(KDIR)/root.squashfs: install-prepare
18         @mkdir -p $(KDIR)/root/jffs
19         $(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -$(endian)
20         
21 ifeq ($(IB),)
22 squashfs-install: compile-targets $(BOARD)-compile
23 endif
24
25 squashfs-install: $(KDIR)/root.squashfs
26         $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
27
28 squashfs-install-ib: compile-targets
29         mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
30         $(CP) $(STAGING_DIR)/bin/mksquashfs-lzma $(IB_DIR)/staging_dir_$(ARCH)/bin
31         
32 prepare-targets: squashfs-prepare
33 compile-targets: squashfs-compile
34 install-targets: squashfs-install
35 install-ib: squashfs-install-ib
36 clean: squashfs-clean