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-rk3328 add a package to ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d586249528be
branches: trunk
changeset: 426640:d586249528be
user: mrg <mrg%pkgsrc.org@localhost>
date: Sat Apr 04 06:21:54 2020 +0000
description:
add a package to build atf for rk3328. needed for not-yet functional
updated u-boot for pine64's rock64.
diffstat:
sysutils/arm-trusted-firmware-rk3328/DESCR | 20 ++++++++
sysutils/arm-trusted-firmware-rk3328/Makefile | 51 ++++++++++++++++++++++
sysutils/arm-trusted-firmware-rk3328/PLIST | 2 +
sysutils/arm-trusted-firmware-rk3328/buildlink3.mk | 15 ++++++
sysutils/arm-trusted-firmware-rk3328/distinfo | 10 ++++
5 files changed, 98 insertions(+), 0 deletions(-)
diffs (118 lines):
diff -r 4d1ed8768f3c -r d586249528be sysutils/arm-trusted-firmware-rk3328/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3328/DESCR Sat Apr 04 06:21:54 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 RK3328 platform,
+for example used by u-boot for the Pine64's Rock64.
diff -r 4d1ed8768f3c -r d586249528be sysutils/arm-trusted-firmware-rk3328/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3328/Makefile Sat Apr 04 06:21:54 2020 +0000
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1 2020/04/04 06:21:54 mrg Exp $
+
+VERSION= 2.2
+GITHUB_PROJECT= arm-trusted-firmware
+GITHUB_TAG= v2.2
+#GITHUB_TAG= ab3d22473df279c61ed4d4873d26b072dcf887e8
+
+DISTNAME= ${GITHUB_PROJECT}-${VERSION}
+PLATFORM= rk3328
+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+= LOG_LEVEL=50
+#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
+
+.if empty(MAKE_FLAGS:MDEBUG=1)
+BL31_DIR=release
+.else
+BL31_DIR=debug
+.endif
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/arm-trusted-firmware/${PLATFORM}
+ ${INSTALL_DATA} ${WRKSRC}/build/${PLATFORM}/${BL31_DIR}/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 4d1ed8768f3c -r d586249528be sysutils/arm-trusted-firmware-rk3328/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3328/PLIST Sat Apr 04 06:21:54 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/04 06:21:54 mrg Exp $
+share/arm-trusted-firmware/rk3328/bl31.elf
diff -r 4d1ed8768f3c -r d586249528be sysutils/arm-trusted-firmware-rk3328/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3328/buildlink3.mk Sat Apr 04 06:21:54 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/04/04 06:21:54 mrg Exp $
+
+BUILDLINK_DEPMETHOD.arm-trusted-firmware-rk3328?= build
+
+BUILDLINK_TREE+= arm-trusted-firmware-rk3328
+
+.if !defined(ARM_TRUSTED_FIRMWARE_RK3328_BUILDLINK3_MK)
+ARM_TRUSTED_FIRMWARE_RK3328_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.arm-trusted-firmware-rk3328+= arm-trusted-firmware-rk3328>2.0
+BUILDLINK_PKGSRCDIR.arm-trusted-firmware-rk3328?= ../../sysutils/arm-trusted-firmware-rk3328
+.endif # ARM_TRUSTED_FIRMWARE_RK3328_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -arm-trusted-firmware-rk3328
+
diff -r 4d1ed8768f3c -r d586249528be sysutils/arm-trusted-firmware-rk3328/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/arm-trusted-firmware-rk3328/distinfo Sat Apr 04 06:21:54 2020 +0000
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2020/04/04 06:21:54 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
+SHA1 (patch-plat_rockchip_common_params_setup.c) = 4a53e20d8ff0500aee691f415801c574a07d2d7f
+SHA1 (patch-plat_rockchip_rk3399_drivers_pmu_pmu.c) = 64d3db54b8b3a9d25b955636a4338969dae05f5e
+SHA1 (patch-plat_rockchip_rk3399_drivers_pmu_pmu.h) = f3cc7c2ec114cb08d38e5e08e54eb4b34080da70
+SHA1 (patch-plat_rockchip_rk3399_drivers_soc_soc.c) = 3813ad5f37eeb5ae431fdb1eb779a0a74b9598a9
Home |
Main Index |
Thread Index |
Old Index