aboutsummaryrefslogtreecommitdiff
path: root/sysutils/fiptool/Makefile
blob: b4ebcb7359e2a0141b2f492f6e3a1202fe3777e6 (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
PORTNAME=	fiptool
DISTVERSIONPREFIX=	lts-v
DISTVERSION=	2.14.11
CATEGORIES=	sysutils

MAINTAINER=	hayzam@alchemilla.io
COMMENT=	Create and update Arm TF-A firmware image packages (FIP)
WWW=		https://trustedfirmware-a.readthedocs.io/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/docs/license.rst

# TF-A's make helpers use GNU sed syntax; with base sed the toolchain
# detection fails and the build stops.
BUILD_DEPENDS=	gsed:textproc/gsed

USES=		gmake ssl
USE_GITHUB=	yes
GH_ACCOUNT=	ARM-software
GH_PROJECT=	arm-trusted-firmware

MAKE_ARGS=	BUILD_STRING=${DISTVERSIONFULL} \
		HOSTCC="${CC}" \
		HOSTCCFLAGS="${CFLAGS}" \
		OPENSSL_DIR=${OPENSSLBASE} \
		V=1
ALL_TARGET=	fiptool

BINARY_ALIAS=	sed=${LOCALBASE}/bin/gsed

PLIST_FILES=	bin/fiptool

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/tools/fiptool/fiptool \
		${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>