[meta-xilinx] [PATCH 2/7] zynqmp-pmu-config.inc: Restrict BPNs further

Alistair Francis alistair23 at gmail.com
Mon Oct 9 09:09:34 PDT 2017


On Wed, Oct 4, 2017 at 7:41 AM, Nathan Rossi <nathan at nathanrossi.com> wrote:
> Restrict binutils and gcc to their -cross variant only. This prevents
> world targets from selecting zynqmp-pmu-gcc/binutils which require more
> dependencies.
>
> Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>

Acked-by: Alistair Francis <alistair.francis at xilinx.com>

Thanks,
Alistair

> ---
>  conf/machine/include/zynqmp-pmu-config.inc | 17 +++++++++--------
>  1 file changed, 9 insertions(+), 8 deletions(-)
>
> diff --git a/conf/machine/include/zynqmp-pmu-config.inc b/conf/machine/include/zynqmp-pmu-config.inc
> index ffe2cf43b4..23d9ade1b7 100644
> --- a/conf/machine/include/zynqmp-pmu-config.inc
> +++ b/conf/machine/include/zynqmp-pmu-config.inc
> @@ -1,15 +1,16 @@
>
>  # Enable the use of zynqmp-pmu for specific recipes only
>  def zynqmp_pmu_enable_for_bpns(d):
> -    bpns = [
> -        "binutils",
> -        "gcc", "libgcc",
> -        "newlib", "libgloss",
> -        "pmu-firmware",
> -        ]
> -    return " zynqmp-pmu" if (d.getVar("BPN") in bpns) else ""
> +    bpn = d.getVar("BPN")
> +    crossbpns = ["binutils", "gcc"]
> +    targetbpns = ["libgcc", "newlib", "libgloss", "pmu-firmware"]
> +    if bpn in targetbpns:
> +        return True
> +    if bpn in crossbpns and bb.data.inherits_class('cross', d):
> +        return True
> +    return False
>
> -BBCLASSEXTEND_append = "${@zynqmp_pmu_enable_for_bpns(d)}"
> +BBCLASSEXTEND_append = "${@' zynqmp-pmu' if zynqmp_pmu_enable_for_bpns(d) else ''}"
>
>  # Add the pkgarch to the extra list, this is done to avoid warnings about
>  # missing manifests due to implicit dependency chains on populate_sysroot when
> --
> 2.14.2
>
> --
> _______________________________________________
> meta-xilinx mailing list
> meta-xilinx at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-xilinx



More information about the meta-xilinx mailing list