blob: 01fe651068fb9c12a81d5f729e0079f0c5260fee (
plain) (
blame)
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
38
39
40
41
42
43
|
# $FreeBSD$
PORTNAME= u-boot
PORTVERSION= 2014.10
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.denx.de/pub/u-boot/
PKGNAMESUFFIX= -beaglebone
MAINTAINER= ian@FreeBSD.org
COMMENT= Cross-build U-Boot loader for BeagleBone and BeagleBone Black
LICENSE= GPLv2
BUILD_DEPENDS= ${CROSS_GCC}:${PORTSDIR}/devel/arm-none-eabi-gcc492
CROSS_GCC= arm-none-eabi-gcc-4.9.2
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 \
CC=${CROSS_GCC} \
CROSS_COMPILE=arm-none-eabi-
do-configure:
(cd ${WRKSRC}; ${GMAKE} am335x_boneblack_defconfig)
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>
|