summaryrefslogtreecommitdiff
path: root/sysutils/arm-trusted-firmware-sun50iw1p1
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2017-09-01 21:02:39 +0000
committerjmcneill <jmcneill@pkgsrc.org>2017-09-01 21:02:39 +0000
commitccc094a584ca5cacd821761224ea9a7d125d4b45 (patch)
tree06fe9a990d05830719f1f87998aa59bcc2aa84b2 /sysutils/arm-trusted-firmware-sun50iw1p1
parentcc0f858c7d3749f66968d5f640d26b2d26095203 (diff)
downloadpkgsrc-ccc094a584ca5cacd821761224ea9a7d125d4b45.tar.gz
Initial import of arm-trusted-firmware-sun50iw1p1 version 20170831.
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 ATF for Allwinner sun50iw1p1 family SoCs.
Diffstat (limited to 'sysutils/arm-trusted-firmware-sun50iw1p1')
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/DESCR19
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/Makefile33
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/PLIST2
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/distinfo7
-rw-r--r--sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-Makefile24
5 files changed, 85 insertions, 0 deletions
diff --git a/sysutils/arm-trusted-firmware-sun50iw1p1/DESCR b/sysutils/arm-trusted-firmware-sun50iw1p1/DESCR
new file mode 100644
index 00000000000..603983c366f
--- /dev/null
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/DESCR
@@ -0,0 +1,19 @@
+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 ATF for Allwinner sun50iw1p1 family SoCs.
diff --git a/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile b/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile
new file mode 100644
index 00000000000..f270ad6be29
--- /dev/null
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2017/09/01 21:02:39 jmcneill Exp $
+
+VERSION= 20170831
+GITHUB_PROJECT= arm-trusted-firmware
+GITHUB_TAG= aa75c8da415158a94b82a430b2b40000778e851f
+
+PKGNAME= ${GITHUB_PROJECT}-sun50iw1p1-${VERSION}
+DISTNAME= ${PKGNAME}
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_GITHUB:=apritzel/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= port-arm@NetBSD.org
+HOMEPAGE= https://github.com/apritzel/arm-trusted-firmware/
+COMMENT= ARM Trusted Firmware for Allwinner sun50iw1p1 SoCs
+LICENSE= modified-bsd
+
+USE_TOOLS+= gmake
+
+MAKE_FLAGS+= CROSS_COMPILE=${PREFIX}/cross-aarch64-none-elf/bin/aarch64-none-elf-
+MAKE_FLAGS+= PLAT=sun50iw1p1
+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/sun50iw1p1
+ ${INSTALL_DATA} ${WRKSRC}/build/sun50iw1p1/debug/bl31.bin \
+ ${DESTDIR}${PREFIX}/share/arm-trusted-firmware/sun50iw1p1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/arm-trusted-firmware-sun50iw1p1/PLIST b/sysutils/arm-trusted-firmware-sun50iw1p1/PLIST
new file mode 100644
index 00000000000..3df57ceac65
--- /dev/null
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2017/09/01 21:02:39 jmcneill Exp $
+share/arm-trusted-firmware/sun50iw1p1/bl31.bin
diff --git a/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo b/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo
new file mode 100644
index 00000000000..07023dac9ff
--- /dev/null
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/09/01 21:02:39 jmcneill Exp $
+
+SHA1 (arm-trusted-firmware-sun50iw1p1-20170831-aa75c8da415158a94b82a430b2b40000778e851f.zip) = 20f50fcfa18525c5808f6336f8e81665cc99cd04
+RMD160 (arm-trusted-firmware-sun50iw1p1-20170831-aa75c8da415158a94b82a430b2b40000778e851f.zip) = d4fb1d8d4818c06d7983373ac11829a3307f8dae
+SHA512 (arm-trusted-firmware-sun50iw1p1-20170831-aa75c8da415158a94b82a430b2b40000778e851f.zip) = 2ffea0d9f7b54f789bc565b9957fff2366376f9de9a160c45c7c9eb1dd7c049122a71b65e33d50e71c0553dbab239c11d41c86cdcf51a6dd724c8c39c2a41a23
+Size (arm-trusted-firmware-sun50iw1p1-20170831-aa75c8da415158a94b82a430b2b40000778e851f.zip) = 1063088 bytes
+SHA1 (patch-Makefile) = 05a3c7b3777f058b6228dea940008bf2a15d1285
diff --git a/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-Makefile b/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-Makefile
new file mode 100644
index 00000000000..1106b1df27b
--- /dev/null
+++ b/sysutils/arm-trusted-firmware-sun50iw1p1/patches/patch-Makefile
@@ -0,0 +1,24 @@
+$NetBSD: patch-Makefile,v 1.1 2017/09/01 21:02:39 jmcneill Exp $
+
+--- Makefile.orig 2017-02-20 00:15:39.000000000 +0000
++++ Makefile
+@@ -107,8 +107,8 @@ BL_COMMON_SOURCES := common/bl_common.c
+ BUILD_BASE := ./build
+ BUILD_PLAT := ${BUILD_BASE}/${PLAT}/${BUILD_TYPE}
+
+-PLATFORMS := $(shell ls -I common plat/)
+-SPDS := $(shell ls -I none services/spd)
++PLATFORMS := $(shell ls plat/ | fgrep -v -x common)
++SPDS := $(shell ls services/spd | grep -v -x none)
+ HELP_PLATFORMS := $(shell echo ${PLATFORMS} | sed 's/ /|/g')
+
+ # Convenience function for adding build definitions
+@@ -232,7 +232,7 @@ CFLAGS += -nostdinc -pedantic -ffrees
+ -mgeneral-regs-only -std=c99 -c -Os \
+ ${DEFINES} ${INCLUDES}
+ CFLAGS += -ffunction-sections -fdata-sections
+-LDFLAGS += --fatal-warnings -O1
++LDFLAGS = --fatal-warnings -O1
+ LDFLAGS += --gc-sections
+ #LDFLAGS += --fix-cortex-a53-843419
+