pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/arm-trusted-firmware-rk3399 add a package to ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8bb02a38cba3
branches: trunk
changeset: 346994:8bb02a38cba3
user: mrg <mrg%pkgsrc.org@localhost>
date: Mon Jan 06 08:37:01 2020 +0000
description:
add a package to build arm trusted firmware for rockchip RK3399,
as needed by pinebook pro (and usable by others, likely.)
this is using the latest ATF release version - v2.2.
diffstat:
sysutils/arm-trusted-firmware-rk3399/DESCR | 20 ++++++++++
sysutils/arm-trusted-firmware-rk3399/Makefile | 44 ++++++++++++++++++++++
sysutils/arm-trusted-firmware-rk3399/PLIST | 2 +
sysutils/arm-trusted-firmware-rk3399/buildlink3.mk | 15 +++++++
sysutils/arm-trusted-firmware-rk3399/distinfo | 6 +++
5 files changed, 87 insertions(+), 0 deletions(-)
diffs (107 lines):
diff -r bc6d0a95383f -r 8bb02a38cba3 sysutils/arm-trusted-firmware-rk3399/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3399/DESCR Mon Jan 06 08:37:01 2020 +0000
@@ -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 RockChip RK3399 platform,
+for example used by u-boot for the Pinebook Pro.
diff -r bc6d0a95383f -r 8bb02a38cba3 sysutils/arm-trusted-firmware-rk3399/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3399/Makefile Mon Jan 06 08:37:01 2020 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2020/01/06 08:37:01 mrg Exp $
+
+VERSION= 2.2
+GITHUB_PROJECT= arm-trusted-firmware
+GITHUB_TAG= v2.2
+#GITHUB_TAG= ab3d22473df279c61ed4d4873d26b072dcf887e8
+
+DISTNAME= ${GITHUB_PROJECT}-${VERSION}
+PLATFORM= rk3399
+PKGNAME= ${GITHUB_PROJECT}-${PLATFORM}-${VERSION}
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ARM-software/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= port-arm%NetBSD.org@localhost
+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+= M0_CROSS_COMPILE=${PREFIX}/cross-arm-none-eabi/bin/arm-none-eabi-
+MAKE_FLAGS+= PLAT=${PLATFORM}
+MAKE_FLAGS+= CFLAGS='-gdwarf-2'
+MAKE_FLAGS+= DEBUG=1
+#MAKE_FLAGS+= V=1
+MAKE_FLAGS+= BUILD_STRING=${GITHUB_TAG}
+BUILD_TARGET= bl31
+
+# This package builds for Cortex-M0 *and* Cortex-A53/A72.
+BUILD_DEPENDS+= cross-aarch64-none-elf-gcc-[0-9]*:../../cross/aarch64-none-elf-gcc
+BUILD_DEPENDS+= cross-arm-none-eabi-gcc-[0-9]*:../../cross/arm-none-eabi-gcc
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/arm-trusted-firmware/${PLATFORM}
+ ${INSTALL_DATA} ${WRKSRC}/build/${PLATFORM}/debug/bl31/bl31.elf \
+ ${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"
diff -r bc6d0a95383f -r 8bb02a38cba3 sysutils/arm-trusted-firmware-rk3399/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3399/PLIST Mon Jan 06 08:37:01 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/06 08:37:01 mrg Exp $
+share/arm-trusted-firmware/rk3399/bl31.elf
diff -r bc6d0a95383f -r 8bb02a38cba3 sysutils/arm-trusted-firmware-rk3399/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3399/buildlink3.mk Mon Jan 06 08:37:01 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/06 08:37:01 mrg Exp $
+
+BUILDLINK_DEPMETHOD.arm-trusted-firmware-rk3399?= build
+
+BUILDLINK_TREE+= arm-trusted-firmware-rk3399
+
+.if !defined(ARM_TRUSTED_FIRMWARE_SUN50I_A64_BUILDLINK3_MK)
+ARM_TRUSTED_FIRMWARE_SUN50I_A64_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.arm-trusted-firmware-rk3399+= arm-trusted-firmware-rk3399>2.0
+BUILDLINK_PKGSRCDIR.arm-trusted-firmware-rk3399?= ../../sysutils/arm-trusted-firmware-rk3399
+.endif # ARM_TRUSTED_FIRMWARE_SUN50I_A64_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -arm-trusted-firmware-rk3399
+
diff -r bc6d0a95383f -r 8bb02a38cba3 sysutils/arm-trusted-firmware-rk3399/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3399/distinfo Mon Jan 06 08:37:01 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/01/06 08:37:01 mrg Exp $
+
+SHA1 (arm-trusted-firmware-2.2.zip) = 95bd4fc50b233ffffef87fe209756811a813f284
+RMD160 (arm-trusted-firmware-2.2.zip) = 615b7a60e3293dee8686cfca8bca3a83fea5ff88
+SHA512 (arm-trusted-firmware-2.2.zip) = 84fd95b14b5363b1a98482b71bde6915e8e36e832260371343fd576245124abfeb017ee5898996c373efcc46d03210b86ab665446aa1f7a3c9e4f290d2137f37
+Size (arm-trusted-firmware-2.2.zip) = 5205813 bytes
Home |
Main Index |
Thread Index |
Old Index