bc526b8fef
to get proper support for Pinebook.
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2019/02/27 06:23:39 martin Exp $
|
|
|
|
VERSION= 2.0.20190222 # v2.0 is too old
|
|
GITHUB_PROJECT= arm-trusted-firmware
|
|
# GITHUB_TAG= v${VERSION} # only for real releases
|
|
GITHUB_TAG= ab3d22473df279c61ed4d4873d26b072dcf887e8
|
|
|
|
DISTNAME= ${GITHUB_PROJECT}-${VERSION}
|
|
PLATFORM= sun50i_a64
|
|
PKGNAME= ${GITHUB_PROJECT}-${PLATFORM}-${VERSION}
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=ARM-software/}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= port-arm@NetBSD.org
|
|
HOMEPAGE= https://github.com/ARM-software/arm-trusted-firmware/
|
|
COMMENT= ARM Trusted Firmware
|
|
LICENSE= modified-bsd
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
MAKE_FLAGS+= CROSS_COMPILE=${PREFIX}/cross-aarch64-none-elf/bin/aarch64-none-elf-
|
|
MAKE_FLAGS+= PLAT=${PLATFORM}
|
|
MAKE_FLAGS+= DEBUG=1
|
|
# MAKE_FLAGS+= V=1
|
|
MAKE_FLAGS+= BUILD_STRING=${GITHUB_TAG}
|
|
BUILD_TARGET= bl31
|
|
|
|
BUILD_DEPENDS+= cross-aarch64-none-elf-gcc-[0-9]*:../../cross/aarch64-none-elf-gcc
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/arm-trusted-firmware/${PLATFORM}
|
|
${INSTALL_DATA} ${WRKSRC}/build/${PLATFORM}/debug/bl31.bin \
|
|
${DESTDIR}${PREFIX}/share/arm-trusted-firmware/${PLATFORM}/
|
|
|
|
|
|
# XXX kludge. pkgsrc passes down run path flags in LDFLAGS assuming
|
|
# gcc is used for linking, but here we call the linker directly.
|
|
COMPILER_RPATH_FLAG=-R
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|