aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2020-12-02 09:53:12 -0800
committerMark Hatle <mark.hatle@xilinx.com>2020-12-04 16:25:15 -0800
commit699d986de6c301cfdec34d4928f3f65de43a3733 (patch)
tree5e4dd6f1a4f7982556343552a08a8d6e2876d1f7
parentd8d50ea2285d7ce3e2917fdeaf1b651bbfcaad8d (diff)
downloadmeta-xilinx-699d986de6c301cfdec34d4928f3f65de43a3733.tar.gz
meta-xilinx-699d986de6c301cfdec34d4928f3f65de43a3733.tar.bz2
meta-xilinx-699d986de6c301cfdec34d4928f3f65de43a3733.zip
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 <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-standalone/recipes-devtools/gcc/libgcc_%.bbappend3
1 files changed, 3 insertions, 0 deletions
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 = ""