From: "Jon Mason" <jdmason@kudzu.us>
To: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Cc: meta-arm@lists.yoctoproject.org, nd@arm.com
Subject: Re: [meta-arm] [PATCH 01/10] arm: Add hafnium support
Date: Thu, 14 Jan 2021 14:23:59 -0500 [thread overview]
Message-ID: <20210114192358.GG511@kudzu.us> (raw)
In-Reply-To: <20210112152049.3436645-1-arunachalam.ganapathy@arm.com>
On Tue, Jan 12, 2021 at 03:20:40PM +0000, Arunachalam Ganapathy wrote:
> Initial recipe for hafnium[1]. This enables build for reference Secure
> Partition Manager (SPM) for systems that implement the Armv8.4-A
> Secure-EL2 extension.
>
> Link: [1] https://www.trustedfirmware.org/projects/hafnium/
>
> Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
> Change-Id: Ib256d8ca03c94131e308d962d786d5d6a656c256
> ---
Series pulled into master.
Thanks,
Jon
> meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb | 74 +++++++++++++++++++++
> 1 file changed, 74 insertions(+)
> create mode 100644 meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb
>
> diff --git a/meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb b/meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb
> new file mode 100644
> index 0000000..3a52599
> --- /dev/null
> +++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.4.bb
> @@ -0,0 +1,74 @@
> +SUMMARY = "Hafnium"
> +DESCRIPTION = "A reference Secure Partition Manager (SPM) for systems that implement the Armv8.4-A Secure-EL2 extension"
> +LICENSE = "BSD-3-Clause & GPLv2"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=782b40c14bad5294672c500501edc103"
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
> +inherit deploy python3native
> +
> +SRC_URI = "gitsm://git.trustedfirmware.org/hafnium/hafnium.git;protocol=https"
> +SRCREV = "410a3acaf669c12d41fb4c57fcaf3ecee6fdba61"
> +S = "${WORKDIR}/git"
> +
> +COMPATIBLE_MACHINE ?= "invalid"
> +
> +# Default build 'reference'
> +HAFNIUM_PROJECT ?= "reference"
> +
> +# Platform must be set for each machine
> +HAFNIUM_PLATFORM ?= "invalid"
> +
> +# hafnium build directory
> +# Append _clang as the build rule in hafnium adds this to the platform name.
> +HAFNIUM_BUILD_DIR_PLAT = "out/${HAFNIUM_PROJECT}/${HAFNIUM_PLATFORM}_clang"
> +
> +# do_deploy will install everything listed in this variable. It is set by
> +# default to hafnium
> +HAFNIUM_INSTALL_TARGET ?= "hafnium"
> +
> +DEPENDS = "bison-native bc-native"
> +
> +# set project to build
> +EXTRA_OEMAKE += "PROJECT=${HAFNIUM_PROJECT}"
> +
> +do_compile_prepend() {
> + # Hafnium expects 'python'. Create symlink python to python3
> + real=$(which ${PYTHON})
> + ln -snf $real $(dirname $real)/python
> +}
> +
> +do_install() {
> + install -d -m 755 ${D}/firmware
> + for bldfile in ${HAFNIUM_INSTALL_TARGET}; do
> + processed="0"
> + if [ -f ${S}/${HAFNIUM_BUILD_DIR_PLAT}/$bldfile.bin ]; then
> + echo "Install $bldfile.bin"
> + install -m 0755 ${S}/${HAFNIUM_BUILD_DIR_PLAT}/$bldfile.bin \
> + ${D}/firmware/$bldfile-${HAFNIUM_PLATFORM}.bin
> + ln -sf $bldfile-${HAFNIUM_PLATFORM}.bin ${D}/firmware/$bldfile.bin
> + processed="1"
> + fi
> + if [ -f ${S}/${HAFNIUM_BUILD_DIR_PLAT}/$bldfile.elf ]; then
> + echo "Install $bldfile.elf"
> + install -m 0755 ${S}/${HAFNIUM_BUILD_DIR_PLAT}/$bldfile.elf \
> + ${D}/firmware/$bldfile-${HAFNIUM_PLATFORM}.elf
> + ln -sf $bldfile-${HAFNIUM_PLATFORM}.elf ${D}/firmware/$bldfile.elf
> + processed="1"
> + fi
> + if [ "$processed" = "0" ]; then
> + bberror "Unsupported HAFNIUM_INSTALL_TARGET target $bldfile"
> + exit 1
> + fi
> + done
> +}
> +
> +FILES_${PN} = "/firmware"
> +SYSROOT_DIRS += "/firmware"
> +# skip QA tests: {'ldflags'}
> +INSANE_SKIP_${PN} = "ldflags"
> +
> +do_deploy() {
> + cp -rf ${D}/firmware/* ${DEPLOYDIR}/
> +}
> +addtask deploy after do_install
> --
> 2.29.2
>
>
>
>
prev parent reply other threads:[~2021-01-14 19:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-12 15:20 [PATCH 01/10] arm: Add hafnium support arunachalam.ganapathy
2021-01-12 15:20 ` [PATCH 02/10] arm/trusted-firmware-a: Add support for spmd build option arunachalam.ganapathy
2021-01-12 15:20 ` [PATCH 03/10] arm-bsp/tc0: Add hafnium support Arunachalam Ganapathy
2021-01-12 15:20 ` [PATCH 04/10] arm-bsp/tc0: Add support for optee Arunachalam Ganapathy
2021-01-12 15:20 ` [PATCH 05/10] arm-bsp/tc0: Add tc0 platform support patches " Arunachalam Ganapathy
2021-01-12 15:20 ` [PATCH 06/10] arm-bsp/tc0: Enable optee core with SPMC at SEL2 Arunachalam Ganapathy
2021-01-12 15:20 ` [PATCH 07/10] arm-bsp/linux: add ffa driver to TC0 Arunachalam Ganapathy
2021-01-12 15:20 ` [PATCH 08/10] arm-bsp/linux: enable ffa driver for TC0 Arunachalam Ganapathy
2021-01-12 15:20 ` [PATCH 09/10] arm-bsp/linux: add ffa transport in optee " Arunachalam Ganapathy
2021-01-12 15:20 ` [PATCH 10/10] arm-bsp/tc0: Enable spmd and SEL2 SPMC with optee as SEL1 SP Arunachalam Ganapathy
2021-01-14 19:23 ` Jon Mason [this message]
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=20210114192358.GG511@kudzu.us \
--to=jdmason@kudzu.us \
--cc=arunachalam.ganapathy@arm.com \
--cc=meta-arm@lists.yoctoproject.org \
--cc=nd@arm.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.