04bee987e3
PR: 196486 Submitted by: Scott Ellis Approved by: bapt
39 lines
990 B
Makefile
39 lines
990 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= u-boot
|
|
PORTVERSION= 2014.10
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/
|
|
PKGNAMESUFFIX= -pandaboard
|
|
|
|
MAINTAINER= ian@FreeBSD.org
|
|
COMMENT= Cross-build U-Boot loader for PandaBoard
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= arm-none-eabi-gcc:${PORTSDIR}/devel/arm-none-eabi-gcc
|
|
|
|
NO_ARCH= yes
|
|
|
|
WRKSRC= ${WRKDIR}/u-boot-${PORTVERSION}
|
|
USES= gmake tar:bzip2
|
|
SSP_UNSAFE= yes # cross-LD does not support -fstack-protector
|
|
|
|
U_BOOT_DIR= share/u-boot/${PORTNAME}${PKGNAMESUFFIX}
|
|
PLIST_FILES= ${U_BOOT_DIR}/u-boot.img \
|
|
${U_BOOT_DIR}/MLO \
|
|
${U_BOOT_DIR}/README
|
|
|
|
MAKE_ARGS+= ARCH=arm \
|
|
CROSS_COMPILE=arm-none-eabi-
|
|
|
|
do-configure:
|
|
(cd ${WRKSRC}; ${GMAKE} omap4_panda_config)
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}
|
|
${CP} ${WRKSRC}/MLO ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}
|
|
${CP} ${WRKSRC}/u-boot.img ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/u-boot.img
|
|
${CP} ${.CURDIR}/pkg-descr ${STAGEDIR}/${PREFIX}/${U_BOOT_DIR}/README
|
|
|
|
.include <bsd.port.mk>
|