diff options
author | John Klug <john.klug@multitech.com> | 2023-06-05 09:06:35 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-06-05 09:06:35 -0500 |
commit | 129d6fa34243ab14be33b98941e2abebd34849a4 (patch) | |
tree | c07828dad7de96b48a73da1c7617ab740c5967d7 | |
parent | 6e18f1c283c2a9ba9fddd31ae97f40337cc374ab (diff) | |
download | mlinux-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-x | oe-init-build-env | 6 |
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 |