From 129d6fa34243ab14be33b98941e2abebd34849a4 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 5 Jun 2023 09:06:35 -0500 Subject: Make $OEROOT a safe directory for git to prevent mlinux-version build issue --- oe-init-build-env | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/oe-init-build-env b/oe-init-build-env index 525c23f..8814b87 100755 --- a/oe-init-build-env +++ b/oe-init-build-env @@ -75,3 +75,9 @@ for entry in ${WlAdditions[@]}; do fi done +# Build of mlinux-version will fail with Python syntax errors because of in the +# build path due to git describe failing because git thinks the ROOT directory is unsafe. +if ! git config --global --list | grep -q "^safe.directory=$OEROOT" ; then + echo "Making $OEROOT a safe directory for git" + git config --global --add safe.directory "$OEROOT" +fi -- cgit v1.2.3