From 613da127377fe5cc623ddfa5d3babc3666a2d6b6 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 3 Feb 2021 09:55:32 -0600 Subject: meta-xilinx-standalone: Prevent user error, when meta-microblaze is required When the user chooses to build a microblaze target, the compiler can fail to patch properly as a symptom. Users may think it's a simple patch failure, but really they forgot to include the meta-microblaze layer itself. Declare the meta-microblaze layer as a recommended layer, and verify in the gcc-source bbappend that it has been included, if a microblaze target is being built. Signed-off-by: Mark Hatle --- .../recipes-devtools/gcc/gcc-source_10.%.bbappend | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta-xilinx-standalone/recipes-devtools') diff --git a/meta-xilinx-standalone/recipes-devtools/gcc/gcc-source_10.%.bbappend b/meta-xilinx-standalone/recipes-devtools/gcc/gcc-source_10.%.bbappend index e1876700..d3abc611 100644 --- a/meta-xilinx-standalone/recipes-devtools/gcc/gcc-source_10.%.bbappend +++ b/meta-xilinx-standalone/recipes-devtools/gcc/gcc-source_10.%.bbappend @@ -5,3 +5,11 @@ FILESEXTRAPATHS_append_microblaze_xilinx-standalone := ":${THISDIR}/gcc-10" SRC_URI_append_microblaze_xilinx-standalone = " \ file://additional-microblaze-multilibs.patch \ " + +CHECK_FOR_MICROBLAZE_microblaze = "1" + +python() { + if d.getVar('CHECK_FOR_MICROBLAZE') == '1': + if 'xilinx-microblaze' not in d.getVar('BBFILE_COLLECTIONS').split(): + bb.fatal('You must include the meta-microblaze layer to build for this configuration.') +} -- cgit v1.2.3-54-g00ecf