Przeglądaj źródła

oe-init-build-env: unset BBSERVER

If BBSERVER is set, we should unset it before proceeding. Its assumed the
user will have unloaded the server from memory should they have wished
to do so.

(From OE-Core rev: 5cc4d315709de195bfb0655c2f00ae2267bfa4c6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie 11 lat temu
rodzic
commit
113398d258
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      oe-init-build-env

+ 4 - 1
oe-init-build-env

@@ -35,7 +35,10 @@ else
    else
    else
       OEROOT="`pwd`"
       OEROOT="`pwd`"
    fi
    fi
-   OEROOT=`readlink -f "$OEROOT"`
+   if [ -n "$BBSERVER" ]; then
+      unset BBSERVER
+   fi
+    OEROOT=`readlink -f "$OEROOT"`
    export OEROOT
    export OEROOT
    . $OEROOT/scripts/oe-buildenv-internal && \
    . $OEROOT/scripts/oe-buildenv-internal && \
         $OEROOT/scripts/oe-setup-builddir && \
         $OEROOT/scripts/oe-setup-builddir && \