X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fwrt350nv2-builder%2FMakefile;h=ccb66b6307d528036187eb06e412a8a0206b1695;hb=930a8201726a3f1318fbf14ff3ccfb274ebf324d;hp=648dd84db9c75d945ace54a90bccf378a7c1e300;hpb=a5e97547c6713ddb6b8f5f1333f45123f60b105f;p=openwrt%2F.git diff --git a/tools/wrt350nv2-builder/Makefile b/tools/wrt350nv2-builder/Makefile index 648dd84db9..ccb66b6307 100644 --- a/tools/wrt350nv2-builder/Makefile +++ b/tools/wrt350nv2-builder/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wrt350nv2-builder -PKG_VERSION:=2.0 +PKG_VERSION:=2.4 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/${PKG_NAME}-$(PKG_VERSION) @@ -24,10 +24,16 @@ endef define Host/Install $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin $(INSTALL_BIN) $(HOST_BUILD_DIR)/wrt350nv2-builder $(STAGING_DIR_HOST)/bin/ +# optionally the builder can add a u-boot binary to create a complete webupgrade image, but this is not mandatory +# u-boot images from stock firmware are available at ftp://ftp.maddes.net/openwrt/trunk/orion/stock/binaries/ + [ ! -f "files/u-boot.bin" ] || ( \ + $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/wrt350nv2-builder; \ + $(CP) files/u-boot.bin $(STAGING_DIR_HOST)/share/wrt350nv2-builder/; ) endef define Host/Clean rm -f $(STAGING_DIR_HOST)/bin/wrt350nv2-builder + rm -f $(STAGING_DIR_HOST)/share/wrt350nv2-builder endef $(eval $(call HostBuild))