All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jon Mason" <jdmason@kudzu.us>
To: meta-arm@lists.yoctoproject.org
Subject: Re: [meta-arm] [PATCH] [arm-autonomy] firmware-image-juno: Add xen-devicetree dependency
Date: Fri, 8 May 2020 09:04:04 -0400	[thread overview]
Message-ID: <20200508130403.GC32710@kudzu.us> (raw)
In-Reply-To: <20200507103029.38305-1-bertrand.marquis@arm.com>

On Thu, May 07, 2020 at 11:30:29AM +0100, Bertrand Marquis wrote:
> From: Diego Sueiro <diego.sueiro@arm.com>
> 
> The do_deploy task depends on xen-devicetree:do_deploy in order to
> include the generated xen dtbs in the firmware image.
> To avoid dependency loop between firmware-image-juno:do_install,
> xen:do_deploy and xen-devicetree:do_deploy when
> INITRAMFS_IMAGE_BUNDLE = "1", we need to handle the xen and
> xen-devicetree binaries copying in the do_deploy task.
> 
> Also Use OVERRIDES to minimize the usage of
> "@bb.utils.contains('DISTRO_FEATURES', 'xen', ..."
> 
> Change-Id: I8da476435de73445fb6d895ec418d85861b8c46c
> Issue-Id: SCM-990
> Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>

Pulled into the master branch.

Thanks,
Jon

> ---
>  .../images/firmware-image-juno.bbappend       | 27 ++++++++++++-------
>  1 file changed, 17 insertions(+), 10 deletions(-)
> 
> diff --git a/meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bbappend b/meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bbappend
> index 2904e0b..b0aae69 100644
> --- a/meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bbappend
> +++ b/meta-arm-autonomy/dynamic-layers/meta-arm-bsp/recipes-bsp/images/firmware-image-juno.bbappend
> @@ -1,14 +1,21 @@
> -FILESEXTRAPATHS_prepend := "${@bb.utils.contains('DISTRO_FEATURES', 'xen', '${THISDIR}/${PN}:', '', d)}"
> +# Use OVERRIDES to minimize the usage of
> +# ${@bb.utils.contains('DISTRO_FEATURES', 'xen', ...
> +OVERRIDES_append = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ':xen', '', d)}"
>  
> -INSTALL_EXTRA_DEPS = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'xen:do_deploy', '', d)}"
> +FILESEXTRAPATHS_prepend_xen := "${THISDIR}/${PN}:"
>  
> -do_install[depends] += "${INSTALL_EXTRA_DEPS}"
> +DEPLOY_EXTRA_DEPS ??= ""
> +DEPLOY_EXTRA_DEPS_xen = "xen:do_deploy xen-devicetree:do_deploy"
>  
> -do_install_append() {
> -    if [ "${@bb.utils.contains('DISTRO_FEATURES', 'xen', 'yes', 'no', d)}" = "yes" ]; then
> -        cp  ${DEPLOY_DIR_IMAGE}/xen-${COMPATIBLE_MACHINE}.efi \
> -            ${D}/${UNPACK_DIR}/SOFTWARE/xen
> -        cp ${DEPLOY_DIR_IMAGE}/*xen.dtb \
> -            ${D}/${UNPACK_DIR}/SOFTWARE/
> -    fi
> +do_deploy[depends] += "${DEPLOY_EXTRA_DEPS}"
> +
> +do_deploy_prepend_xen() {
> +    # To avoid dependency loop between firmware-image-juno:do_install,
> +    # xen:do_deploy and xen-devicetree:do_deploy when
> +    # INITRAMFS_IMAGE_BUNDLE = "1", we need to handle the xen and
> +    # xen-devicetree binaries copying in the do_deploy task.
> +    cp  ${DEPLOY_DIR_IMAGE}/xen-${COMPATIBLE_MACHINE}.efi \
> +        ${D}/${UNPACK_DIR}/SOFTWARE/xen
> +    cp ${DEPLOY_DIR_IMAGE}/*xen.dtb \
> +        ${D}/${UNPACK_DIR}/SOFTWARE/
>  }
> -- 
> 2.17.1
> 

> 


  reply	other threads:[~2020-05-08 13:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-07 10:30 [PATCH] [arm-autonomy] firmware-image-juno: Add xen-devicetree dependency Bertrand Marquis
2020-05-08 13:04 ` Jon Mason [this message]
     [not found] <160CB87CF829AD41.1278@lists.yoctoproject.org>
2020-05-08  9:00 ` [meta-arm] " Bertrand Marquis

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=20200508130403.GC32710@kudzu.us \
    --to=jdmason@kudzu.us \
    --cc=meta-arm@lists.yoctoproject.org \
    /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.