2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=u-boot-
$(PKG_VERSION
).
tar.bz2
14 https
://mirror.cyberbits.eu
/u-boot \
15 https
://ftp.denx.de
/pub
/u-boot \
16 ftp
://ftp.denx.de
/pub
/u-boot
17 PKG_HASH
:=81b4543227db228c03f8a1bf5ddbc813b0bb8f6555ce46064ef721a6fc680413
19 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/u-boot-
$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/host-build.mk
24 $(MAKE
) -C
$(HOST_BUILD_DIR
) \
25 HOSTCFLAGS
="$(HOST_CFLAGS)" \
26 HOSTLDFLAGS
="$(HOST_LDFLAGS)" \
27 PKG_CONFIG_EXTRAARGS
="--static" \
28 V
=$(if
$(findstring c
,$(OPENWRT_VERBOSE
)),1) \
35 $(CP
) $(HOST_BUILD_DIR
)/tools
/mkimage
$(STAGING_DIR_HOST
)/bin
/
36 $(CP
) $(HOST_BUILD_DIR
)/tools
/mkenvimage
$(STAGING_DIR_HOST
)/bin
/
40 rm -f
$(STAGING_DIR_HOST
)/bin
/mkimage
41 rm -f
$(STAGING_DIR_HOST
)/bin
/mkenvimage
44 $(eval
$(call HostBuild
))