summaryrefslogtreecommitdiff
path: root/package/u-boot/Makefile
blob: 08f44f6dd6b5185f660d827a80c248e94a7b0633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		u-boot
PKG_VERSION:=		2014.07
PKG_RELEASE:=		1
PKG_HASH:=		b4f83b8db325c21671a997198ec3a373e2e00dde2fcf17be9b9afd7cfd727f56
PKG_DESCR:=		bootloader
PKG_SECTION:=		base/boot
PKG_URL:=		http://www.denx.de/wiki/U-Boot	
PKG_SITES:=		ftp://ftp.denx.de/pub/u-boot/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2
PKG_SYSTEM_DEPENDS:=	!cubox-i

PKG_CFLINE_U_BOOT:=	depends on ADK_HOST_ONLY

include $(ADK_TOPDIR)/mk/host.mk
include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call HOST_template,U_BOOT,u-boot,$(PKG_VERSION)-${PKG_RELEASE}))

HOST_STYLE:=		manual
HOST_MAKE_FLAGS+=	HOST_TOOLS_ONLY=yes

host-build:
	(cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
		${HOST_MAKE_FLAGS} tools $(MAKE_TRACE) )

u-boot-hostinstall:
	${INSTALL_BIN} ${WRKBUILD}/tools/mkimage \
		${STAGING_HOST_DIR}/usr/bin

include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk