diff options
author | martin <martin@pkgsrc.org> | 2019-02-23 06:20:12 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2019-02-23 06:20:12 +0000 |
commit | f69272f41fdc02c3bf137503f48c39e02f057883 (patch) | |
tree | 62fed6e3cc0d77ccb5a40a157b8e2036689bd02f /sysutils/arm-trusted-firmware-sun50i_a64 | |
parent | 2cd5a8272ec20e27dab1051d3175545f70737a8a (diff) | |
download | pkgsrc-f69272f41fdc02c3bf137503f48c39e02f057883.tar.gz |
ARM trusted firmware, mainline version, build for the sun50i_a64
platform (e.g. Pinebook).
Diffstat (limited to 'sysutils/arm-trusted-firmware-sun50i_a64')
-rw-r--r-- | sysutils/arm-trusted-firmware-sun50i_a64/DESCR | 20 | ||||
-rw-r--r-- | sysutils/arm-trusted-firmware-sun50i_a64/Makefile | 41 | ||||
-rw-r--r-- | sysutils/arm-trusted-firmware-sun50i_a64/PLIST | 2 | ||||
-rw-r--r-- | sysutils/arm-trusted-firmware-sun50i_a64/buildlink3.mk | 13 | ||||
-rw-r--r-- | sysutils/arm-trusted-firmware-sun50i_a64/distinfo | 6 |
5 files changed, 82 insertions, 0 deletions
diff --git a/sysutils/arm-trusted-firmware-sun50i_a64/DESCR b/sysutils/arm-trusted-firmware-sun50i_a64/DESCR new file mode 100644 index 00000000000..d0793dc54a5 --- /dev/null +++ b/sysutils/arm-trusted-firmware-sun50i_a64/DESCR @@ -0,0 +1,20 @@ +ARM Trusted Firmware (ATF) provides a reference implementation of secure +world software for ARMv8-A, including a Secure Monitor executing at +Exception Level 3 (EL3). It implements various ARM interface standards, +such as: + + The Power State Coordination Interface (PSCI) + Trusted Board Boot Requirements (TBBR, ARM DEN0006C-1) + SMC Calling Convention + System Control and Management Interface + +As far as possible the code is designed for reuse or porting to other +ARMv8-A model and hardware platforms. + +ARM will continue development in collaboration with interested parties to +provide a full reference implementation of Secure Monitor code and ARM +standards to the benefit of all developers working with ARMv8-A TrustZone +technology. + +This package provides mainline ATF for the sun50i_a64 platform, +for example used by u-boot for the Pinebook. diff --git a/sysutils/arm-trusted-firmware-sun50i_a64/Makefile b/sysutils/arm-trusted-firmware-sun50i_a64/Makefile new file mode 100644 index 00000000000..491764bfa58 --- /dev/null +++ b/sysutils/arm-trusted-firmware-sun50i_a64/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1 2019/02/23 06:20:12 martin Exp $ + +VERSION= 2.0 +GITHUB_PROJECT= arm-trusted-firmware +GITHUB_TAG= v${VERSION} + +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+= 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 but the +# cross ld(1) doesn't understand -R. If we pass down -L instead it +# will be safely ignored. +COMPILER_RPATH_FLAG=-L + + +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/arm-trusted-firmware-sun50i_a64/PLIST b/sysutils/arm-trusted-firmware-sun50i_a64/PLIST new file mode 100644 index 00000000000..fa10ebb896f --- /dev/null +++ b/sysutils/arm-trusted-firmware-sun50i_a64/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2019/02/23 06:20:12 martin Exp $ +share/arm-trusted-firmware-sun50i_a64/bl31.bin diff --git a/sysutils/arm-trusted-firmware-sun50i_a64/buildlink3.mk b/sysutils/arm-trusted-firmware-sun50i_a64/buildlink3.mk new file mode 100644 index 00000000000..85e5be5bf84 --- /dev/null +++ b/sysutils/arm-trusted-firmware-sun50i_a64/buildlink3.mk @@ -0,0 +1,13 @@ +# $NetBSD: buildlink3.mk,v 1.1 2019/02/23 06:20:12 martin Exp $ + +BUILDLINK_DEPMETHOD.arm-trusted-firmware-sun50i_a64?= build + +BUILDLINK_TREE+= arm-trusted-firmware-sun50i_a64 + +.if !defined(ARM_TRUSTED_FIRMWARE_SUN50I_A64_BUILDLINK3_MK) +ARM_TRUSTED_FIRMWARE_SUN50I_A64_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.arm-trusted-firmware-sun50i_a64+= arm-trusted-firmware-sun50i_a64>=2.0 +BUILDLINK_PKGSRCDIR.arm-trusted-firmware-sun50i_a64?= ../../sysutils/arm-trusted-firmware-sun50i_a64 +.endif # ARM_TRUSTED_FIRMWARE_SUN50I_A64_BUILDLINK3_MK + diff --git a/sysutils/arm-trusted-firmware-sun50i_a64/distinfo b/sysutils/arm-trusted-firmware-sun50i_a64/distinfo new file mode 100644 index 00000000000..5ed2fc2363a --- /dev/null +++ b/sysutils/arm-trusted-firmware-sun50i_a64/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2019/02/23 06:20:12 martin Exp $ + +SHA1 (arm-trusted-firmware-2.0.zip) = d789e7aac0e987d8524a11587cc598bf5d894581 +RMD160 (arm-trusted-firmware-2.0.zip) = a7a49da9b0e27c45df867ea1de4809cb89d9b8cc +SHA512 (arm-trusted-firmware-2.0.zip) = 39180d12be7532b742949f162759793e97c0a6ac835d66aaf857bd3c1d9c0ab10b7ccd5e6a47831ad909a92b4727e181c82a74c90b5d941e469f3a5cf66b0e7c +Size (arm-trusted-firmware-2.0.zip) = 3949049 bytes |