* [PATCH 0/1] arm/optee: Cleaning optee-os-3.19 recipe
@ 2023-01-17 13:24 emekcan.aras
2023-01-17 13:24 ` [PATCH 1/1] " emekcan.aras
0 siblings, 1 reply; 3+ messages in thread
From: emekcan.aras @ 2023-01-17 13:24 UTC (permalink / raw)
To: meta-arm, Jon.Mason, Ross.Burton; +Cc: nd, Emekcan Aras
From: Emekcan Aras <emekcan.aras@arm.com>
Removes the optee-os_3.19.inc file since optee-os.inc is very similar and
cleans optee-os.inc.
Emekcan Aras (1):
arm/optee: Cleaning optee-os-3.19 recipe
.../recipes-security/optee/optee-os-3_19.inc | 82 -------------------
meta-arm/recipes-security/optee/optee-os.inc | 6 +-
.../recipes-security/optee/optee-os_3.19.0.bb | 2 +-
3 files changed, 3 insertions(+), 87 deletions(-)
delete mode 100644 meta-arm/recipes-security/optee/optee-os-3_19.inc
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] arm/optee: Cleaning optee-os-3.19 recipe
2023-01-17 13:24 [PATCH 0/1] arm/optee: Cleaning optee-os-3.19 recipe emekcan.aras
@ 2023-01-17 13:24 ` emekcan.aras
2023-01-17 20:22 ` [meta-arm] " Denys Dmytriyenko
0 siblings, 1 reply; 3+ messages in thread
From: emekcan.aras @ 2023-01-17 13:24 UTC (permalink / raw)
To: meta-arm, Jon.Mason, Ross.Burton; +Cc: nd, Emekcan Aras
From: Emekcan Aras <emekcan.aras@arm.com>
Removes the optee-os_3.19.inc file since optee-os.inc is very similar and
cleans optee-os.inc.
Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
---
.../recipes-security/optee/optee-os-3_19.inc | 82 -------------------
meta-arm/recipes-security/optee/optee-os.inc | 6 +-
.../recipes-security/optee/optee-os_3.19.0.bb | 2 +-
3 files changed, 3 insertions(+), 87 deletions(-)
delete mode 100644 meta-arm/recipes-security/optee/optee-os-3_19.inc
diff --git a/meta-arm/recipes-security/optee/optee-os-3_19.inc b/meta-arm/recipes-security/optee/optee-os-3_19.inc
deleted file mode 100644
index 61475dcf..00000000
--- a/meta-arm/recipes-security/optee/optee-os-3_19.inc
+++ /dev/null
@@ -1,82 +0,0 @@
-SUMMARY = "OP-TEE Trusted OS"
-DESCRIPTION = "Open Portable Trusted Execution Environment - Trusted side of the TEE"
-HOMEPAGE = "https://www.op-tee.org/"
-
-LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173"
-
-inherit deploy python3native
-require optee.inc
-
-FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.19.0:"
-
-CVE_PRODUCT = "linaro:op-tee op-tee:op-tee_os"
-
-DEPENDS = "python3-pyelftools-native python3-cryptography-native"
-
-DEPENDS:append:toolchain-clang = " compiler-rt"
-
-SRC_URI = "git://github.com/OP-TEE/optee_os.git;branch=master;protocol=https"
-
-SRC_URI:append = " \
- file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \
- file://0007-allow-setting-sysroot-for-clang.patch \
- file://0008-no-warn-rwx-segments.patch \
- "
-
-S = "${WORKDIR}/git"
-B = "${WORKDIR}/build"
-
-EXTRA_OEMAKE += " \
- PLATFORM=${OPTEEMACHINE} \
- CFG_${OPTEE_CORE}_core=y \
- CROSS_COMPILE_core=${HOST_PREFIX} \
- CROSS_COMPILE_ta_${OPTEE_ARCH}=${HOST_PREFIX} \
- NOWERROR=1 \
- ta-targets=ta_${OPTEE_ARCH} \
- O=${B} \
-"
-EXTRA_OEMAKE += " HOST_PREFIX=${HOST_PREFIX}"
-EXTRA_OEMAKE += " CROSS_COMPILE64=${HOST_PREFIX}"
-
-CFLAGS[unexport] = "1"
-LDFLAGS[unexport] = "1"
-CPPFLAGS[unexport] = "1"
-AS[unexport] = "1"
-LD[unexport] = "1"
-
-do_compile:prepend() {
- PLAT_LIBGCC_PATH=$(${CC} -print-libgcc-file-name)
-}
-
-do_compile() {
- oe_runmake -C ${S} all
-}
-do_compile[cleandirs] = "${B}"
-
-do_install() {
- #install core in firmware
- install -d ${D}${nonarch_base_libdir}/firmware/
- install -m 644 ${B}/core/*.bin ${B}/core/tee.elf ${D}${nonarch_base_libdir}/firmware/
-}
-
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-do_deploy() {
- install -d ${DEPLOYDIR}/${MLPREFIX}optee
- install -m 644 ${D}${nonarch_base_libdir}/firmware/* ${DEPLOYDIR}/${MLPREFIX}optee
-}
-
-addtask deploy before do_build after do_install
-
-SYSROOT_DIRS += "${nonarch_base_libdir}/firmware"
-
-FILES:${PN} = "${nonarch_base_libdir}/firmware/"
-
-# note: "textrel" is not triggered on all archs
-INSANE_SKIP:${PN} = "textrel"
-# Build paths are currently embedded
-INSANE_SKIP:${PN} += "buildpaths"
-INSANE_SKIP:${PN}-dev = "staticdev"
-INHIBIT_PACKAGE_STRIP = "1"
-
diff --git a/meta-arm/recipes-security/optee/optee-os.inc b/meta-arm/recipes-security/optee/optee-os.inc
index a03ea6a3..5d1df55b 100644
--- a/meta-arm/recipes-security/optee/optee-os.inc
+++ b/meta-arm/recipes-security/optee/optee-os.inc
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173"
inherit deploy python3native
require optee.inc
+FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.19.0:"
+
CVE_PRODUCT = "linaro:op-tee op-tee:op-tee_os"
DEPENDS = "python3-pyelftools-native python3-cryptography-native"
@@ -43,10 +45,6 @@ CPPFLAGS[unexport] = "1"
AS[unexport] = "1"
LD[unexport] = "1"
-do_compile:prepend() {
- PLAT_LIBGCC_PATH=$(${CC} -print-libgcc-file-name)
-}
-
do_compile() {
oe_runmake -C ${S} all
}
diff --git a/meta-arm/recipes-security/optee/optee-os_3.19.0.bb b/meta-arm/recipes-security/optee/optee-os_3.19.0.bb
index 656a0974..97aff5aa 100644
--- a/meta-arm/recipes-security/optee/optee-os_3.19.0.bb
+++ b/meta-arm/recipes-security/optee/optee-os_3.19.0.bb
@@ -1,4 +1,4 @@
-require optee-os-3_19.inc
+require optee-os.inc
DEPENDS += "dtc-native"
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-arm] [PATCH 1/1] arm/optee: Cleaning optee-os-3.19 recipe
2023-01-17 13:24 ` [PATCH 1/1] " emekcan.aras
@ 2023-01-17 20:22 ` Denys Dmytriyenko
0 siblings, 0 replies; 3+ messages in thread
From: Denys Dmytriyenko @ 2023-01-17 20:22 UTC (permalink / raw)
To: Emekcan Aras; +Cc: meta-arm, Jon.Mason, Ross.Burton, nd
On Tue, Jan 17, 2023 at 01:24:41PM +0000, Emekcan Aras wrote:
> From: Emekcan Aras <emekcan.aras@arm.com>
>
> Removes the optee-os_3.19.inc file since optee-os.inc is very similar and
> cleans optee-os.inc.
>
> Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
> ---
> .../recipes-security/optee/optee-os-3_19.inc | 82 -------------------
> meta-arm/recipes-security/optee/optee-os.inc | 6 +-
> .../recipes-security/optee/optee-os_3.19.0.bb | 2 +-
> 3 files changed, 3 insertions(+), 87 deletions(-)
> delete mode 100644 meta-arm/recipes-security/optee/optee-os-3_19.inc
>
> diff --git a/meta-arm/recipes-security/optee/optee-os-3_19.inc b/meta-arm/recipes-security/optee/optee-os-3_19.inc
> deleted file mode 100644
> index 61475dcf..00000000
> --- a/meta-arm/recipes-security/optee/optee-os-3_19.inc
> +++ /dev/null
> @@ -1,82 +0,0 @@
> -SUMMARY = "OP-TEE Trusted OS"
> -DESCRIPTION = "Open Portable Trusted Execution Environment - Trusted side of the TEE"
> -HOMEPAGE = "https://www.op-tee.org/"
> -
> -LICENSE = "BSD-2-Clause"
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173"
> -
> -inherit deploy python3native
> -require optee.inc
> -
> -FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.19.0:"
> -
> -CVE_PRODUCT = "linaro:op-tee op-tee:op-tee_os"
> -
> -DEPENDS = "python3-pyelftools-native python3-cryptography-native"
> -
> -DEPENDS:append:toolchain-clang = " compiler-rt"
> -
> -SRC_URI = "git://github.com/OP-TEE/optee_os.git;branch=master;protocol=https"
> -
> -SRC_URI:append = " \
> - file://0006-allow-setting-sysroot-for-libgcc-lookup.patch \
> - file://0007-allow-setting-sysroot-for-clang.patch \
> - file://0008-no-warn-rwx-segments.patch \
> - "
> -
> -S = "${WORKDIR}/git"
> -B = "${WORKDIR}/build"
> -
> -EXTRA_OEMAKE += " \
> - PLATFORM=${OPTEEMACHINE} \
> - CFG_${OPTEE_CORE}_core=y \
> - CROSS_COMPILE_core=${HOST_PREFIX} \
> - CROSS_COMPILE_ta_${OPTEE_ARCH}=${HOST_PREFIX} \
> - NOWERROR=1 \
> - ta-targets=ta_${OPTEE_ARCH} \
> - O=${B} \
> -"
> -EXTRA_OEMAKE += " HOST_PREFIX=${HOST_PREFIX}"
> -EXTRA_OEMAKE += " CROSS_COMPILE64=${HOST_PREFIX}"
> -
> -CFLAGS[unexport] = "1"
> -LDFLAGS[unexport] = "1"
> -CPPFLAGS[unexport] = "1"
> -AS[unexport] = "1"
> -LD[unexport] = "1"
> -
> -do_compile:prepend() {
> - PLAT_LIBGCC_PATH=$(${CC} -print-libgcc-file-name)
> -}
> -
> -do_compile() {
> - oe_runmake -C ${S} all
> -}
> -do_compile[cleandirs] = "${B}"
> -
> -do_install() {
> - #install core in firmware
> - install -d ${D}${nonarch_base_libdir}/firmware/
> - install -m 644 ${B}/core/*.bin ${B}/core/tee.elf ${D}${nonarch_base_libdir}/firmware/
> -}
> -
> -PACKAGE_ARCH = "${MACHINE_ARCH}"
> -
> -do_deploy() {
> - install -d ${DEPLOYDIR}/${MLPREFIX}optee
> - install -m 644 ${D}${nonarch_base_libdir}/firmware/* ${DEPLOYDIR}/${MLPREFIX}optee
> -}
> -
> -addtask deploy before do_build after do_install
> -
> -SYSROOT_DIRS += "${nonarch_base_libdir}/firmware"
> -
> -FILES:${PN} = "${nonarch_base_libdir}/firmware/"
> -
> -# note: "textrel" is not triggered on all archs
> -INSANE_SKIP:${PN} = "textrel"
> -# Build paths are currently embedded
> -INSANE_SKIP:${PN} += "buildpaths"
> -INSANE_SKIP:${PN}-dev = "staticdev"
> -INHIBIT_PACKAGE_STRIP = "1"
> -
> diff --git a/meta-arm/recipes-security/optee/optee-os.inc b/meta-arm/recipes-security/optee/optee-os.inc
> index a03ea6a3..5d1df55b 100644
> --- a/meta-arm/recipes-security/optee/optee-os.inc
> +++ b/meta-arm/recipes-security/optee/optee-os.inc
> @@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173"
> inherit deploy python3native
> require optee.inc
>
> +FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-3.19.0:"
1. What would happen to 3.18 recipe that also includes this version-agnostic
.inc file?
2. I agree with Ross, it should be "optee-os-3.19" here, so it's usable when
bumping slightly past 3.19.0 release and use PV=3.19+git{SRCPV}
https://lists.yoctoproject.org/g/meta-arm/message/4278
> +
> CVE_PRODUCT = "linaro:op-tee op-tee:op-tee_os"
>
> DEPENDS = "python3-pyelftools-native python3-cryptography-native"
> @@ -43,10 +45,6 @@ CPPFLAGS[unexport] = "1"
> AS[unexport] = "1"
> LD[unexport] = "1"
>
> -do_compile:prepend() {
> - PLAT_LIBGCC_PATH=$(${CC} -print-libgcc-file-name)
> -}
> -
> do_compile() {
> oe_runmake -C ${S} all
> }
> diff --git a/meta-arm/recipes-security/optee/optee-os_3.19.0.bb b/meta-arm/recipes-security/optee/optee-os_3.19.0.bb
> index 656a0974..97aff5aa 100644
> --- a/meta-arm/recipes-security/optee/optee-os_3.19.0.bb
> +++ b/meta-arm/recipes-security/optee/optee-os_3.19.0.bb
> @@ -1,4 +1,4 @@
> -require optee-os-3_19.inc
> +require optee-os.inc
>
> DEPENDS += "dtc-native"
>
> --
> 2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-17 20:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-17 13:24 [PATCH 0/1] arm/optee: Cleaning optee-os-3.19 recipe emekcan.aras
2023-01-17 13:24 ` [PATCH 1/1] " emekcan.aras
2023-01-17 20:22 ` [meta-arm] " Denys Dmytriyenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).