2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=wrt350nv2-builder
13 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/${PKG_NAME}-$(PKG_VERSION
)
15 include $(INCLUDE_DIR
)/host-build.mk
18 $(HOSTCC
) $(HOST_CFLAGS
) -c src
/md5.c
-o
$(HOST_BUILD_DIR
)/md5.o
19 $(HOSTCC
) $(HOST_CFLAGS
) -c src
/ioapi.c
-o
$(HOST_BUILD_DIR
)/ioapi.o
20 $(HOSTCC
) $(HOST_CFLAGS
) -c src
/wrt350nv2-builder.c
-o
$(HOST_BUILD_DIR
)/wrt350nv2-builder.o
21 $(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
25 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
26 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/wrt350nv2-builder
$(STAGING_DIR_HOST
)/bin
/
27 # optionally the builder can add a u-boot binary to create a complete webupgrade image, but this is not mandatory
28 # u-boot images from stock firmware are available at ftp://ftp.maddes.net/openwrt/kamikaze/orion/stock/binaries/
29 [ ! -f
"files/u-boot.bin" ] ||
( \
30 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/share
/wrt350nv2-builder
; \
31 $(CP
) files
/u-boot.bin
$(STAGING_DIR_HOST
)/share
/wrt350nv2-builder
/; )
35 rm -f
$(STAGING_DIR_HOST
)/bin
/wrt350nv2-builder
36 rm -f
$(STAGING_DIR_HOST
)/share
/wrt350nv2-builder
39 $(eval
$(call HostBuild
))
This page took 0.045729 seconds and 5 git commands to generate.