pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/arm-trusted-firmware-rk3399
Module Name: pkgsrc
Committed By: mrg
Date: Mon Jan 6 08:37:02 UTC 2020
Added Files:
pkgsrc/sysutils/arm-trusted-firmware-rk3399: DESCR Makefile PLIST
buildlink3.mk distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/arm-trusted-firmware-rk3399/DESCR \
pkgsrc/sysutils/arm-trusted-firmware-rk3399/Makefile \
pkgsrc/sysutils/arm-trusted-firmware-rk3399/PLIST \
pkgsrc/sysutils/arm-trusted-firmware-rk3399/buildlink3.mk \
pkgsrc/sysutils/arm-trusted-firmware-rk3399/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/sysutils/arm-trusted-firmware-rk3399/DESCR
diff -u /dev/null pkgsrc/sysutils/arm-trusted-firmware-rk3399/DESCR:1.1
--- /dev/null Mon Jan 6 08:37:02 2020
+++ pkgsrc/sysutils/arm-trusted-firmware-rk3399/DESCR Mon Jan 6 08:37:01 2020
@@ -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.
Index: pkgsrc/sysutils/arm-trusted-firmware-rk3399/Makefile
diff -u /dev/null pkgsrc/sysutils/arm-trusted-firmware-rk3399/Makefile:1.1
--- /dev/null Mon Jan 6 08:37:02 2020
+++ pkgsrc/sysutils/arm-trusted-firmware-rk3399/Makefile Mon Jan 6 08:37:01 2020
@@ -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"
Index: pkgsrc/sysutils/arm-trusted-firmware-rk3399/PLIST
diff -u /dev/null pkgsrc/sysutils/arm-trusted-firmware-rk3399/PLIST:1.1
--- /dev/null Mon Jan 6 08:37:02 2020
+++ pkgsrc/sysutils/arm-trusted-firmware-rk3399/PLIST Mon Jan 6 08:37:01 2020
@@ -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
Index: pkgsrc/sysutils/arm-trusted-firmware-rk3399/buildlink3.mk
diff -u /dev/null pkgsrc/sysutils/arm-trusted-firmware-rk3399/buildlink3.mk:1.1
--- /dev/null Mon Jan 6 08:37:02 2020
+++ pkgsrc/sysutils/arm-trusted-firmware-rk3399/buildlink3.mk Mon Jan 6 08:37:01 2020
@@ -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
+
Index: pkgsrc/sysutils/arm-trusted-firmware-rk3399/distinfo
diff -u /dev/null pkgsrc/sysutils/arm-trusted-firmware-rk3399/distinfo:1.1
--- /dev/null Mon Jan 6 08:37:02 2020
+++ pkgsrc/sysutils/arm-trusted-firmware-rk3399/distinfo Mon Jan 6 08:37:01 2020
@@ -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