summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/package/base-files/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-02-12 06:00:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-02-12 06:00:38 +0000
commit86382b98a47616d0ac75e336381c4d27bc88e69f (patch)
treecada89d670732bb77a94705b02db613ffcb7a2e3 /openwrt/target/linux/package/base-files/Makefile
parentec41db56e7f296beaef14d6f765036d9b58717c0 (diff)
downloadmtk-20170518-86382b98a47616d0ac75e336381c4d27bc88e69f.zip
mtk-20170518-86382b98a47616d0ac75e336381c4d27bc88e69f.tar.gz
mtk-20170518-86382b98a47616d0ac75e336381c4d27bc88e69f.tar.bz2
add support for netgear dg834 and the almost identical sphairon jdr454wb: new images, automatic boot loader patcher, updated flash script (dlink.pl renamed to adam2flash.pl) - Thanks to Jonathan McDowell (Noodles)
SVN-Revision: 3221
Diffstat (limited to 'openwrt/target/linux/package/base-files/Makefile')
-rw-r--r--openwrt/target/linux/package/base-files/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/openwrt/target/linux/package/base-files/Makefile b/openwrt/target/linux/package/base-files/Makefile
index 637904c..cf72eab 100644
--- a/openwrt/target/linux/package/base-files/Makefile
+++ b/openwrt/target/linux/package/base-files/Makefile
@@ -15,8 +15,21 @@ $(PKG_BUILD_DIR)/.prepared:
mkdir -p $(PKG_BUILD_DIR)
touch $@
+ifeq ($(BOARD),ar7)
+$(PKG_BUILD_DIR)/adam2patcher: src/adam2patcher.c
+ $(TARGET_CC) -o $@ $<
+
+$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/adam2patcher
+
+$(IDIR_OPENWRT)/sbin/adam2patcher: $(PKG_BUILD_DIR)/adam2patcher
+ mkdir -p $(IDIR_OPENWRT)/sbin
+ $(CP) $(PKG_BUILD_DIR)/adam2patcher $(IDIR_OPENWRT)/sbin
+
+$(IPKG_OPENWRT): $(IDIR_OPENWRT)/sbin/adam2patcher
+endif
+
ifeq ($(BOARD),brcm)
-$(PKG_BUILD_DIR)/jffs2root: jffs2root.c
+$(PKG_BUILD_DIR)/jffs2root: src/jffs2root.c
$(TARGET_CC) -o $@ $<
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/jffs2root