Fix dependency on libol, should close #403
[openwrt.git] / openwrt / 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 $(MAKE_TRACE)
9
10 squashfs-compile: prepare-targets
11 $(MAKE) -C squashfs compile $(MAKE_TRACE)
12
13 squashfs-clean:
14 $(MAKE) -C squashfs clean $(MAKE_TRACE)
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) $(MAKE_TRACE)
20
21 ifeq ($(IB),)
22 squashfs-install: compile-targets $(BOARD)-compile
23 endif
24
25 squashfs-install: $(KDIR)/root.squashfs
26 $(TRACE) target/linux/image/$(BOARD)/install
27 $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
28
29 squashfs-install-ib: compile-targets
30 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
31 $(CP) $(STAGING_DIR)/bin/mksquashfs-lzma $(IB_DIR)/staging_dir_$(ARCH)/bin
32
33 prepare-targets: squashfs-prepare
34 compile-targets: squashfs-compile
35 install-targets: squashfs-install
36 install-ib: squashfs-install-ib
37 clean: squashfs-clean
This page took 0.04487 seconds and 5 git commands to generate.