From 699d986de6c301cfdec34d4928f3f65de43a3733 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 2 Dec 2020 09:53:12 -0800 Subject: libgcc.bbappend: Clear empty lib directory Due to the way the multilib xilinx-standalone works, one or more empty directories under ${D}/lib may exist. This triggers a QA error about unpackaged files. Use rmdir to delete these directories to ensure they are empty. Signed-off-by: Mark Hatle --- meta-xilinx-standalone/recipes-devtools/gcc/libgcc_%.bbappend | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-xilinx-standalone/recipes-devtools/gcc/libgcc_%.bbappend b/meta-xilinx-standalone/recipes-devtools/gcc/libgcc_%.bbappend index e80b0b79..17529a03 100644 --- a/meta-xilinx-standalone/recipes-devtools/gcc/libgcc_%.bbappend +++ b/meta-xilinx-standalone/recipes-devtools/gcc/libgcc_%.bbappend @@ -13,6 +13,9 @@ standalone_fixup () { ln -s $each $(basename $each) done ) + + # Apparently we can end up with an empty /lib occasionally + find ${D}/lib -type d | sort -r | xargs rmdir || : } FIXUP_FUNCTION = "" -- cgit v1.2.3-54-g00ecf