u-boot: Move allwinner 64 bits dep to u-boot-master

We have more than one Allwinner 64bits SoC u-boot ports now
and others are coming.
Move the dependencies into the u-boot-master ports.

While here, switch maintainer on u-boot-pine64 and u-boot-sopine
to uboot@ as discussed with imp@ and brd@

Reviewed by:	imp (maintainer)
Approved by:	imp
Differential Revision:	https://reviews.freebsd.org/D13450
This commit is contained in:
Emmanuel Vadot 2017-12-11 17:54:20 +00:00
parent 43547a5431
commit 29b903239f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=456054
3 changed files with 16 additions and 14 deletions

View File

@ -5,6 +5,7 @@
PORTNAME= u-boot
PORTVERSION= ${UBOOT_VERSION}
PORTREVISION= 1
DISTVERSIONPREFIX= ports-v
CATEGORIES= sysutils
PKGNAMESUFFIX?= -${MODEL}
@ -97,6 +98,12 @@ COMPILER?=${CROSS_COMPILE}gcc
UBOOT_MOVE=${UBOOT_MOVE_${FAMILY:tu}}
.endif
# Per family dependancies
.if ${FAMILY} == allwinner64
BUILD_DEPENDS+= ${LOCALBASE}/share/atf-allwinner/bl31.bin:sysutils/atf-allwinner
MAKE_ENV+= BL31=${LOCALBASE}/share/atf-allwinner/bl31.bin
.endif
# Each u-boot family has different files to include, bring them in.
.for i in ${UBOOT_PLIST}
PLIST_FILES+= ${UBOOT_DIR}/${i}
@ -106,6 +113,13 @@ PLIST_FILES+= ${UBOOT_DIR}/README
do-configure:
(cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${MAKE_CMD} ${BOARD_CONFIG})
# U-Boot for Allwinner 64bits SoCs is splited in two parts
# Generate a single binary to ease deployement on sdcard
.if ${FAMILY} == allwinner64
post-build:
${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin
.endif
# If we need to put anything into WRKSRC, do so now so we can build the PLIST
# in do-install
.if defined(UBOOT_MOVE)

View File

@ -1,16 +1,10 @@
# $FreeBSD$
MAINTAINER= manu@FreeBSD.org
MAINTAINER= uboot@FreeBSD.org
MASTERDIR= ${.CURDIR}/../u-boot-master
MODEL= pine64
BOARD_CONFIG= pine64_plus_defconfig
FAMILY= allwinner64
BUILD_DEPENDS= ${LOCALBASE}/share/atf-allwinner/bl31.bin:sysutils/atf-allwinner
MAKE_ENV+= BL31=${LOCALBASE}/share/atf-allwinner/bl31.bin
post-build:
${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin
.include "${MASTERDIR}/Makefile"

View File

@ -1,16 +1,10 @@
# $FreeBSD$
MAINTAINER= manu@FreeBSD.org
MAINTAINER= uboot@FreeBSD.org
MASTERDIR= ${.CURDIR}/../u-boot-master
MODEL= sopine
BOARD_CONFIG= sopine_baseboard_defconfig
FAMILY= allwinner64
BUILD_DEPENDS= ${LOCALBASE}/share/atf-allwinner/bl31.bin:sysutils/atf-allwinner
MAKE_ENV+= BL31=${LOCALBASE}/share/atf-allwinner/bl31.bin
post-build:
${CAT} ${WRKSRC}/spl/sunxi-spl.bin ${WRKSRC}/u-boot.itb > ${WRKSRC}/u-boot-sunxi-with-spl.bin
.include "${MASTERDIR}/Makefile"