diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-12-12 00:44:03 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-12-12 00:44:03 +0000 |
commit | a5e97547c6713ddb6b8f5f1333f45123f60b105f (patch) | |
tree | b2ba7c15cfd2ec678a428cb4c5e0d89f6f1fc22a /tools/wrt350nv2-builder/Makefile | |
parent | d0ca6b908056f1f50d39a158c08bf328f0aca2bc (diff) | |
download | upstream-a5e97547c6713ddb6b8f5f1333f45123f60b105f.tar.gz upstream-a5e97547c6713ddb6b8f5f1333f45123f60b105f.tar.bz2 upstream-a5e97547c6713ddb6b8f5f1333f45123f60b105f.zip |
add wrt350n v2 image building code from #5970 (thx, maddes)
SVN-Revision: 18761
Diffstat (limited to 'tools/wrt350nv2-builder/Makefile')
-rw-r--r-- | tools/wrt350nv2-builder/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/wrt350nv2-builder/Makefile b/tools/wrt350nv2-builder/Makefile new file mode 100644 index 0000000000..648dd84db9 --- /dev/null +++ b/tools/wrt350nv2-builder/Makefile @@ -0,0 +1,33 @@ +# +# Copyright (C) 2006-2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=wrt350nv2-builder +PKG_VERSION:=2.0 + +HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/${PKG_NAME}-$(PKG_VERSION) + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Compile + $(HOSTCC) $(HOST_CFLAGS) -c src/md5.c -o $(HOST_BUILD_DIR)/md5.o + $(HOSTCC) $(HOST_CFLAGS) -c src/ioapi.c -o $(HOST_BUILD_DIR)/ioapi.o + $(HOSTCC) $(HOST_CFLAGS) -c src/wrt350nv2-builder.c -o $(HOST_BUILD_DIR)/wrt350nv2-builder.o + $(HOSTCC) $(HOST_CFLAGS) -o $(HOST_BUILD_DIR)/wrt350nv2-builder $(HOST_BUILD_DIR)/wrt350nv2-builder.o $(HOST_BUILD_DIR)/md5.o $(HOST_BUILD_DIR)/ioapi.o +endef + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin + $(INSTALL_BIN) $(HOST_BUILD_DIR)/wrt350nv2-builder $(STAGING_DIR_HOST)/bin/ +endef + +define Host/Clean + rm -f $(STAGING_DIR_HOST)/bin/wrt350nv2-builder +endef + +$(eval $(call HostBuild)) |