From: "Denys Dmytriyenko" <denis@denix.org>
To: Ross Burton <ross@burtonini.com>
Cc: meta-arm@lists.yoctoproject.org
Subject: Re: [meta-arm] [PATCH 7/7] arm/optee: consolidate common variables
Date: Tue, 3 Nov 2020 20:18:51 -0500 [thread overview]
Message-ID: <20201104011851.GD19155@denix.org> (raw)
In-Reply-To: <20201102153341.2844482-7-ross.burton@arm.com>
On Mon, Nov 02, 2020 at 03:33:41PM +0000, Ross Burton wrote:
> Move a number of shared varibles into optee.inc so that they don't have
> to be duplicated repeatedly.
>
> Change-Id: Ie2565dfa66cbd61aad199224a4cdc7b2e1af0c5d
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
> .../recipes-security/optee/optee-examples.inc | 17 +++------------
> meta-arm/recipes-security/optee/optee-os.inc | 14 +------------
> .../recipes-security/optee/optee-test.inc | 16 +++-----------
> meta-arm/recipes-security/optee/optee.inc | 21 +++++++++++++++++++
> 4 files changed, 28 insertions(+), 40 deletions(-)
>
> diff --git a/meta-arm/recipes-security/optee/optee-examples.inc b/meta-arm/recipes-security/optee/optee-examples.inc
> index 73193f5..851043b 100644
> --- a/meta-arm/recipes-security/optee/optee-examples.inc
> +++ b/meta-arm/recipes-security/optee/optee-examples.inc
> @@ -15,26 +15,15 @@ SRC_URI = "git://github.com/linaro-swg/optee_examples.git \
> file://0001-make-Pass-ldflags-during-link.patch \
> "
>
> -OPTEE_COMPILER = "${@d.getVar('TOOLCHAIN') or 'gcc'}"
> -
> -EXTRA_OEMAKE = " TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
> - OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \
> - TEEC_EXPORT=${TEEC_EXPORT} \
> - HOST_CROSS_COMPILE=${TARGET_PREFIX} \
> - LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \
> - COMPILER=${OPTEE_COMPILER} \
> - TA_CROSS_COMPILE=${TARGET_PREFIX} \
> - V=1 \
> +EXTRA_OEMAKE += "TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
> + HOST_CROSS_COMPILE=${HOST_PREFIX} \
> + TA_CROSS_COMPILE=${HOST_PREFIX} \
> OUTPUT_DIR=${B} \
> "
>
> S = "${WORKDIR}/git"
> B = "${WORKDIR}/build"
>
> -OPTEE_CLIENT_EXPORT = "${STAGING_DIR_HOST}${prefix}"
> -TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}"
> -TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta"
> -
> do_compile() {
> oe_runmake -C ${S}
> }
> diff --git a/meta-arm/recipes-security/optee/optee-os.inc b/meta-arm/recipes-security/optee/optee-os.inc
> index e513fcc..ea6c496 100644
> --- a/meta-arm/recipes-security/optee/optee-os.inc
> +++ b/meta-arm/recipes-security/optee/optee-os.inc
> @@ -17,25 +17,13 @@ SRC_URI = "git://github.com/OP-TEE/optee_os.git"
> S = "${WORKDIR}/git"
> B = "${WORKDIR}/build"
>
> -OPTEEMACHINE ?= "${MACHINE}"
> -OPTEEMACHINE_aarch64_qemuall ?= "vexpress-qemu_armv8a"
> -OPTEE_ARCH = "null"
> -OPTEE_ARCH_armv7a = "arm32"
> -OPTEE_ARCH_aarch64 = "arm64"
> -OPTEE_CORE = "${@d.getVar('OPTEE_ARCH').upper()}"
> -OPTEE_COMPILER = "${@d.getVar('TOOLCHAIN') or 'gcc'}"
> -
> -
> -EXTRA_OEMAKE = " \
> +EXTRA_OEMAKE += " \
> PLATFORM=${OPTEEMACHINE} \
> CFG_${OPTEE_CORE}_core=y \
> CROSS_COMPILE_core=${HOST_PREFIX} \
> CROSS_COMPILE_ta_${OPTEE_ARCH}=${HOST_PREFIX} \
> NOWERROR=1 \
> - V=1 \
I noticed verbose building got disabled - any specific reasons?
> ta-targets=ta_${OPTEE_ARCH} \
> - LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \
> - COMPILER=${OPTEE_COMPILER} \
> O=${B} \
> "
>
> diff --git a/meta-arm/recipes-security/optee/optee-test.inc b/meta-arm/recipes-security/optee/optee-test.inc
> index 95ed311..467e687 100644
> --- a/meta-arm/recipes-security/optee/optee-test.inc
> +++ b/meta-arm/recipes-security/optee/optee-test.inc
> @@ -19,19 +19,9 @@ SRC_URI = "git://github.com/OP-TEE/optee_test.git \
> S = "${WORKDIR}/git"
> B = "${WORKDIR}/build"
>
> -OPTEE_CLIENT_EXPORT = "${STAGING_DIR_HOST}${prefix}"
> -TEEC_EXPORT = "${STAGING_DIR_HOST}${prefix}"
> -TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta"
> -OPTEE_COMPILER = "${@d.getVar('TOOLCHAIN') or 'gcc'}"
> -
> -EXTRA_OEMAKE = " TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
> - OPTEE_CLIENT_EXPORT=${OPTEE_CLIENT_EXPORT} \
> - TEEC_EXPORT=${TEEC_EXPORT} \
> - LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \
> - COMPILER=${OPTEE_COMPILER} \
> - CROSS_COMPILE_HOST=${TARGET_PREFIX} \
> - CROSS_COMPILE_TA=${TARGET_PREFIX} \
> - V=1 \
> +EXTRA_OEMAKE += "TA_DEV_KIT_DIR=${TA_DEV_KIT_DIR} \
> + CROSS_COMPILE_HOST=${HOST_PREFIX} \
> + CROSS_COMPILE_TA=${HOST_PREFIX} \
> O=${B} \
> "
>
> diff --git a/meta-arm/recipes-security/optee/optee.inc b/meta-arm/recipes-security/optee/optee.inc
> index 4bf87fe..8aaf616 100644
> --- a/meta-arm/recipes-security/optee/optee.inc
> +++ b/meta-arm/recipes-security/optee/optee.inc
> @@ -1,3 +1,24 @@
> COMPATIBLE_MACHINE ?= "invalid"
> COMPATIBLE_MACHINE_qemuarm64 ?= "qemuarm64"
> # Please add supported machines below or set it in .bbappend or .conf
> +
> +OPTEEMACHINE ?= "${MACHINE}"
> +OPTEEMACHINE_aarch64_qemuall ?= "vexpress-qemu_armv8a"
> +
> +OPTEE_ARCH = "null"
> +OPTEE_ARCH_armv7a = "arm32"
> +OPTEE_ARCH_aarch64 = "arm64"
> +OPTEE_CORE = "${@d.getVar('OPTEE_ARCH').upper()}"
> +
> +OPTEE_COMPILER = "${@d.getVar('TOOLCHAIN') or 'gcc'}"
> +
> +# Set here but not passed to EXTRA_OEMAKE by default as that breaks
> +# the optee-os build
> +TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta"
> +
> +EXTRA_OEMAKE += "V=1 \
> + LIBGCC_LOCATE_CFLAGS=--sysroot=${STAGING_DIR_HOST} \
> + COMPILER=${OPTEE_COMPILER} \
> + OPTEE_CLIENT_EXPORT=${STAGING_DIR_HOST}${prefix} \
> + TEEC_EXPORT=${STAGING_DIR_HOST}${prefix} \
> + "
> --
> 2.25.1
>
>
>
>
next prev parent reply other threads:[~2020-11-04 1:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 15:33 [PATCH 1/7] arm/optee-os: improve sysroot lookup Ross Burton
2020-11-02 15:33 ` [PATCH 2/7] arm/optee-test: add bug links Ross Burton
2020-11-02 15:33 ` [PATCH 3/7] arm/optee-os: fix the optee-test build with GCC 10 Ross Burton
2020-11-02 15:33 ` [PATCH 4/7] arm/optee-client: rewrite recipe Ross Burton
2020-11-04 1:18 ` [meta-arm] " Denys Dmytriyenko
2020-11-04 11:39 ` Ross Burton
2020-11-02 15:33 ` [PATCH 5/7] arm/optee-examples: cleanup recipe Ross Burton
2020-11-02 15:33 ` [PATCH 6/7] arm/optee-os: " Ross Burton
2020-11-02 15:33 ` [PATCH 7/7] arm/optee: consolidate common variables Ross Burton
2020-11-04 1:18 ` Denys Dmytriyenko [this message]
2020-11-04 11:40 ` [meta-arm] " Ross Burton
2020-11-03 2:10 ` [meta-arm] [PATCH 1/7] arm/optee-os: improve sysroot lookup Jon Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201104011851.GD19155@denix.org \
--to=denis@denix.org \
--cc=meta-arm@lists.yoctoproject.org \
--cc=ross@burtonini.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.