Add a new atf-master master port.

ARM Arm Trusted Framework (sometimes called TF-A for reasons ...) provides
a reference implementation of secure world software for Armv7-A and Armv8-A,
including a Secure Monitor executing at Exception Level 3 (EL3).

We had a port for Alwinner A64/H5 chip, but we need to introduced more ports.
So convert this to a master/slave port scheme like u-boot.

atf-allwinner is now badly named, when it was introduced it only support A64,
now it both support A64 and H5 and there is another ATF platform for H6.
Rename it with the platform name
This commit is contained in:
Emmanuel Vadot 2019-02-05 15:30:29 +00:00
parent 83dc5a133c
commit f8fd817c79
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492250
9 changed files with 57 additions and 39 deletions

1
MOVED
View File

@ -11587,3 +11587,4 @@ net-mgmt/icinga||2019-02-04|Removed, depends on expired net-mgmt/icinga-core
net-mgmt/icli||2019-02-04|Removed, depends on expired net-mgmt/icinga-core
net-mgmt/icinga-classicweb||2019-02-04|Has expired: Upstream EOLed Icinga 1.x from 2018-12-31
net-mgmt/pnp-icinga||2019-02-04|Removed, depends on expired net-mgmt/icinga-classicweb
sysutils/atf-allwinner|devel/atf-sun50i_a64|2019-02-05|Respect the ARM TF-A platform name

View File

@ -56,7 +56,7 @@
SUBDIR += asmem
SUBDIR += asmon
SUBDIR += asusoled
SUBDIR += atf-allwinner
SUBDIR += atf-sun50i_a64
SUBDIR += atitvout
SUBDIR += atop
SUBDIR += auto-admin

View File

@ -1,34 +0,0 @@
# $FreeBSD$
PORTNAME= atf-allwinner
PORTVERSION= 2.0.20181123
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= manu@FreeBSD.org
COMMENT= Arm Trusted Framework for Allwinner SoCs
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= aarch64-none-elf-gcc:devel/aarch64-none-elf-gcc
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= ARM-software
GH_PROJECT= arm-trusted-firmware
GH_TAGNAME= 98aab97
SSP_UNSAFE= yes
MAKE_ENV+= CROSS_COMPILE="aarch64-none-elf-"
ALL_TARGET= ARCH="aarch64" PLAT=sun50i_a64 V=1 bl31
PLIST_FILES= ${PREFIX}/share/${PORTNAME}/bl31.bin
NO_ARCH= yes
do-install:
${MKDIR} ${STAGEDIR}/${PREFIX}/share/${PORTNAME}/
${INSTALL_DATA} ${WRKSRC}/build/sun50i_a64/release/bl31.bin ${STAGEDIR}/${PREFIX}/share/${PORTNAME}/
.include <bsd.port.mk>

View File

@ -0,0 +1,40 @@
# $FreeBSD$
PORTNAME= atf
PORTVERSION?= ${ATF_VERSION}
CATEGORIES= sysutils
PKGNAMESUFFIX?= -${PLAT}
MAINTAINER= uboot@FreeBSD.org
COMMENT= ARM TF-A for platform ${PLAT}
LICENSE= BSD3CLAUSE
BUILD_DEPENDS+= aarch64-none-elf-gcc:devel/aarch64-none-elf-gcc
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= ARM-software
GH_PROJECT= arm-trusted-firmware
GH_TAGNAME= ${ATF_VERSION}
SSP_UNSAFE= yes
MAKE_ENV+= CROSS_COMPILE="aarch64-none-elf-"
ALL_TARGET= ARCH="aarch64" PLAT=${PLAT} V=1 bl31
# Default to the latest release
ATF_VERSION?= v2.0
PLIST_FILES?= ${PREFIX}/share/${PORTNAME}-${PLAT}/${BL31:T}
DESCR?= ${.CURDIR}/pkg-descr
NO_ARCH= yes
do-install:
${MKDIR} ${STAGEDIR}/${PREFIX}/share/${PORTNAME}-${PLAT}/
${INSTALL_DATA} ${WRKSRC}/build/${PLAT}/release/${BL31} ${STAGEDIR}/${PREFIX}/share/${PORTNAME}-${PLAT}/
${INSTALL_DATA} ${DESCR} ${STAGEDIR}/${INST}/README
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1542995778
TIMESTAMP = 1549376667
SHA256 (ARM-software-arm-trusted-firmware-2.0.20181123-98aab97_GH0.tar.gz) = e5496f84f6cd550ed494d83e3c82fb75d8ebeb3d3034aa741e62cbdccfdc761c
SIZE (ARM-software-arm-trusted-firmware-2.0.20181123-98aab97_GH0.tar.gz) = 3385437

View File

@ -0,0 +1 @@
ARM TF-A (ATF) master port.

View File

@ -0,0 +1,10 @@
# $FreeBSD$
MASTERDIR= ${.CURDIR}/../atf-master
PORTVERSION= 2.0.20181123
ATF_VERSION= 98aab97
PLAT= sun50i_a64
BL31= bl31.bin
.include "${MASTERDIR}/Makefile"

View File

@ -1,4 +1,4 @@
Arm Trusted Framework for Allwinner 64 Bits SoCs
Arm Trusted Framework for Allwinner A64/H5 SoCs
Trusted Firmware-A (TF-A) provides a reference implementation of secure world
software for Armv7-A and Armv8-A, including a Secure Monitor executing at

View File

@ -125,8 +125,8 @@ UBOOT_MOVE=${UBOOT_MOVE_${FAMILY:tu}}
# Per family dependancies
.if defined(FAMILY) && ${FAMILY} == allwinner64
BUILD_DEPENDS+= ${LOCALBASE}/share/atf-allwinner/bl31.bin:sysutils/atf-allwinner
MAKE_ENV+= BL31=${LOCALBASE}/share/atf-allwinner/bl31.bin
BUILD_DEPENDS+= ${LOCALBASE}/share/atf-sun50i_a64/bl31.bin:sysutils/atf-sun50i_a64
MAKE_ENV+= BL31=${LOCALBASE}/share/atf-sun50i_a64/bl31.bin
.endif
# Each u-boot family has different files to include, bring them in.