From c6fc0f9a034a3a3c8748e0a650f8728f8c044065 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Mon, 24 Feb 2020 12:17:14 -0800 Subject: Ensure that bbappends do not affect task hashes When the xilinx-standalone distribution is not enabled, we need to make sure that we do not affect various task hashes. This conforms to the Yocto Project Compliance requirements. Signed-off-by: Mark Hatle --- .../recipes-devtools/gcc/gcc-cross-canadian_%.bbappend | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'meta-xilinx-standalone/recipes-devtools') diff --git a/meta-xilinx-standalone/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend b/meta-xilinx-standalone/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend index 90dbae9a..6a3138a3 100644 --- a/meta-xilinx-standalone/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend +++ b/meta-xilinx-standalone/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend @@ -11,8 +11,9 @@ EXTRA_OECONF_append_xilinx-standalone = " \ # has been removed from TARGET_OS for elf and eabi in gcc-cross-canadian.inc python() { - extraoeconfgcc = d.getVar('EXTRA_OECONF') - extraoeconfgcc += " --with-sysroot=/not/exist" - d.delVar('EXTRA_OECONF') - d.setVar('EXTRA_OECONF', extraoeconfgcc) + if 'xilinx-standalone' in d.getVar("DISTROOVERRIDES").split(':'): + extraoeconfgcc = d.getVar('EXTRA_OECONF') + extraoeconfgcc += " --with-sysroot=/not/exist" + d.delVar('EXTRA_OECONF') + d.setVar('EXTRA_OECONF', extraoeconfgcc) } -- cgit v1.2.3-54-g00ecf