aboutsummaryrefslogtreecommitdiffstats
path: root/target/image.mk
diff options
context:
space:
mode:
Diffstat (limited to 'target/image.mk')
-rw-r--r--target/image.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/image.mk b/target/image.mk
new file mode 100644
index 0000000000..b18613f49c
--- /dev/null
+++ b/target/image.mk
@@ -0,0 +1,13 @@
+
+define image_template
+
+$(BIN_DIR)/openwrt-$(3)-$(2)-$(1).trx:
+ $$(call $(1)_template,$(BUILD_DIR)/linux-$(2)-$(3))
+
+ifeq ($(BR2_LINUX_$(4)),y)
+install: $(BIN_DIR)/openwrt-$(3)-$(2)-$(1).trx
+endif
+
+endef
+
+$(eval $(foreach fs,$(FILESYSTEMS),$(call image_template,$(fs),2.4,brcm,2_4_BRCM)))