diff --git a/scripts/oe-setup-build b/scripts/oe-setup-build index 49603d9fd1..edbcd48355 100755 --- a/scripts/oe-setup-build +++ b/scripts/oe-setup-build @@ -89,7 +89,7 @@ def setup_build_env(args): builddir = args.b if args.b else template["buildpath"] no_shell = args.no_shell coredir = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')) - cmd_base = ". {} {}".format(os.path.join(coredir, 'oe-init-build-env'), os.path.abspath(builddir)) + cmd_base = "cd {}\nset {}\n. ./oe-init-build-env\n".format(coredir, os.path.abspath(builddir)) initbuild = os.path.join(builddir, 'init-build-env') if not os.path.exists(initbuild):