Index: sysutils/optee_os/Makefile =================================================================== --- /dev/null +++ sysutils/optee_os/Makefile @@ -0,0 +1,55 @@ +PORTNAME= optee_os +PORTVERSION?= 4.0.0 +CATEGORIES= sysutils + +MAINTAINER= oh@FreeBSD.org +COMMENT= OP-TEE Trusted OS + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS+= aarch64-none-elf-gcc:devel/aarch64-none-elf-gcc arm-none-eabi-gcc:devel/arm-none-eabie-gcc + +USES= gmake + +USE_GITHUB= yes +GH_ACCOUNT= OP-TEE +GH_PROJECT= optee_os +GH_TAGNAME= 4.3.0 + +SSP_UNSAFE= yes +MAKE_ENV+= CROSS_COMPILE=${LOCALBASE}/bin/arm-none-eabi- CROSS_COMPILE64=${LOCALBASE}/bin/aarch64-none-elf- CFLAGS= LDFLAGS= PLATFORM=k3-am62x CFG_WITH_SOFTWARE_PRNG=y CFG_ARM64_core=y +ALL_TARGET= all + +OPTIONS_RADIO= PLATFORM +OPTIONS_RADIO_PLATFORM= AM62X AM64X AM65X AM67 AM68 AM69 TDA4VM +OPTIONS_DEFAULT= AM62X + +AM62X_DESC= TI AM62x (BeaglePlay) +AM64X_DESC= TI AM64x (TI SK-AM64B) +AM65X_DESC= TI AM65x (TMDX654IDKEVM) +AM67_DESC= TI AM67 (BeagleY-AI) +AM68_DESC= TI AM68 (TI SK-AM68) +AM69_DESC= TI AM69 (TI SK-AM69) +TDA4VM_DESC= TI TDA4VM (Beaglebone AI-64) + +AM62X_MAKE_ENV+= PLATFORM=k3-am62x +AM64X_MAKE_ENV+= PLATFORM=k3-am64x +AM65X_MAKE_ENV+= PLATFORM=k3-am65x +AM67_MAKE_ENV+= PLATFORM=k3-j722s +AM68_MAKE_ENV+= PLATFORM=k3-j784s4 +AM69_MAKE_ENV+= PLATFORM=k3-j784s4 +TDA4VM_MAKE_ENV+= PLATFORM=k3-j721e + +PLIST_FILES?= ${PREFIX}/share/${PORTNAME}/tee-pager_v2.bin + +DESCR?= ${.CURDIR}/pkg-descr + +NO_ARCH= yes + +#LDFLAGS+= --no-warn-rwx-segments + +do-install: + ${MKDIR} ${STAGEDIR}/${PREFIX}/share/${PORTNAME}/ + ${INSTALL_DATA} ${WRKSRC}/out/arm-plat-k3/core/tee-pager_v2.bin ${STAGEDIR}/${PREFIX}/share/${PORTNAME}/ + +.include Index: sysutils/optee_os/distinfo =================================================================== --- /dev/null +++ sysutils/optee_os/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1720908059 +SHA256 (OP-TEE-optee_os-4.0.0-4.3.0_GH0.tar.gz) = 390b271905c828d6def9fa6a77bbaa425f3b434d733c8eb18f582ccbc6896096 +SIZE (OP-TEE-optee_os-4.0.0-4.3.0_GH0.tar.gz) = 4352154 Index: sysutils/optee_os/pkg-descr =================================================================== --- /dev/null +++ sysutils/optee_os/pkg-descr @@ -0,0 +1,2 @@ +OP-TEE Trusted OS. Currently only support TI boards. +For details: https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/08_06_00_42/exports/docs/linux/Foundational_Components_OPTEE.html