summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2023-06-05 09:06:35 -0500
committerJohn Klug <john.klug@multitech.com>2023-06-05 09:06:35 -0500
commit129d6fa34243ab14be33b98941e2abebd34849a4 (patch)
treec07828dad7de96b48a73da1c7617ab740c5967d7
parent6e18f1c283c2a9ba9fddd31ae97f40337cc374ab (diff)
downloadmlinux-129d6fa34243ab14be33b98941e2abebd34849a4.tar.gz
mlinux-129d6fa34243ab14be33b98941e2abebd34849a4.tar.bz2
mlinux-129d6fa34243ab14be33b98941e2abebd34849a4.zip
Make $OEROOT a safe directory for git to prevent mlinux-version build issue
-rwxr-xr-xoe-init-build-env6
1 files changed, 6 insertions, 0 deletions
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 <unknown> 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