1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/sysutils/atf-master/Makefile
2020-04-23 18:42:44 +00:00

46 lines
994 B
Makefile

# $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 CFLAGS= bl31
# Default to the latest release
ATF_VERSION?= v2.3
PLIST_FILES?= ${PREFIX}/share/${PORTNAME}-${PLAT}/${BL31:T}
DESCR?= ${.CURDIR}/pkg-descr
NO_ARCH= yes
.if !defined(PLAT)
PLAT= NONE
IGNORE= is a metaport; there is nothing to build
.endif
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>