It is at version 2.5 in the commit hash of meta-arm that I use, this
is 2.7, hence a new recipe.

The original fiptool recipe in meta-arm has a typo @
${STAGING_DIR_NATIVE}${prefix_native}" where it is :
${STAGING_DIR_NATIVE}/${prefix_native}" - there is an unnecessary
forward slash, which is already contained in the variable.

I have not submitted a patch for this yet, but thought you would want to know.

Pawel


On Mon, 30 Jan 2023 at 11:30, Ross Burton <Ross.Burton@arm.com> wrote:
This recipe is already in meta-arm.  Does it need to be overridden?

Ross

> On 27 Jan 2023, at 15:28, Pawel Zalewski <pzalewski@thegoodpenguin.co.uk> wrote:
>
> Add native fiptool and cert_create used to create the fip.
>
> Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
> Reviewed-by: Andrew Murray <amurray@thegoodpenguin.co.uk>
> ---
> .../fiptool/fiptool-native_2.7.bb             | 31 +++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 recipes-devtools/fiptool/fiptool-native_2.7.bb
>
> diff --git a/recipes-devtools/fiptool/fiptool-native_2.7.bb b/recipes-devtools/fiptool/fiptool-native_2.7.bb
> new file mode 100644
> index 0000000..9c21c7a
> --- /dev/null
> +++ b/recipes-devtools/fiptool/fiptool-native_2.7.bb
> @@ -0,0 +1,31 @@
> +inherit native
> +
> +DESCRIPTION = "fiptool - Trusted Firmware tool for packaging"
> +LICENSE     = "BSD-3-Clause"
> +
> +DEPENDS += "openssl-native"
> +PROVIDES = "virtual/fiptool-native"
> +
> +SRC_URI    = "gitsm://git.morello-project.org/morello/trusted-firmware-a;protocol=https;branch=${SRCBRANCH}"
> +SRCBRANCH  = "morello/master"
> +SRCREV     = "3ce2815936774fe924ec7538151b71085c2f18d9"
> +
> +LIC_FILES_CHKSUM = "file://docs/license.rst;md5=b2c740efedc159745b9b31f88ff03dde"
> +
> +EXTRA_OEMAKE = "HOSTCC='${BUILD_CC}' OPENSSL_DIR=${STAGING_DIR_NATIVE}${prefix_native}"
> +
> +S = "${WORKDIR}/git"
> +
> +do_compile() {
> +    sed -i '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' ${S}/tools/fiptool/Makefile
> +    sed -i '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},' ${S}/tools/fiptool/Makefile
> +    oe_runmake fiptool
> +
> +    sed -i '/^LIB/ s,$, \$\{BUILD_LDFLAGS},' ${S}/tools/cert_create/Makefile
> +    oe_runmake certtool
> +}
> +
> +do_install() {
> +    install -D -p -m 0755 tools/fiptool/fiptool ${D}${bindir}/fiptool
> +    install -D -p -m 0755 tools/cert_create/cert_create ${D}${bindir}/cert_create
> +}
> \ No newline at end of file
> --
> 2.34.1
>
> _______________________________________________
> linux-morello-distros mailing list -- linux-morello-distros@op-lists.linaro.org
> To unsubscribe send an email to linux-morello-distros-leave@op-lists.linaro.org