diff options
-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 |