summaryrefslogtreecommitdiff
path: root/target/squashfs-lzma/Makefile
blob: 8e7e8e47921e5770a070abdf952e0accf267030c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include $(TOPDIR)/rules.mk
include ./squashfslzmaroot.mk

TARGETS:=$(BIN_DIR)/openwrt-generic-squashfs.trx

prepare: $(SQUASHFSLZMA_DIR)/.unpacked
compile: squashfslzma
install: $(TARGETS)
clean: squashfslzmaroot-dirclean

$(BIN_DIR)/openwrt-generic-squashfs.trx:
	@mkdir -p $(TARGET_DIR)/jffs
	$(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(TARGET_DIR) $(IMAGE).squashfslzma -noappend -root-owned -le
	PATH=$(TARGET_PATH) trx -o $@ $(LINUX_LOADER) \
	 $(LINUX_IMAGE) $(IMAGE).squashfslzma