summaryrefslogtreecommitdiff
path: root/poky/scripts/oe-setup-build
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2024-04-17 00:28:03 +0300
committerPatrick Williams <patrick@stwcx.xyz>2024-04-17 00:35:03 +0300
commit2f814a6d8285b35e9fb74e3ce9ce1c44b7e4f763 (patch)
treedd79e93858470af04df47c0953528bf612e8ffcb /poky/scripts/oe-setup-build
parentf0053a50e6a423e12b68673c89b53938346a3af6 (diff)
downloadopenbmc-2f814a6d8285b35e9fb74e3ce9ce1c44b7e4f763.tar.xz
poky: reset subtree on master HEAD(a88251b3e7)
As part of the last subtree update, I used master-next as the subtree basis because there was a fix we needed in order to get QEMU to pass. I didn't realize that master-next deviated (because they use to just have short-term patches in it). Reset the content to the same fix but from the master branch. Change-Id: Ic7d2f0ac42e9da3eb263586b26ba56d8798d5bcf Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'poky/scripts/oe-setup-build')
-rwxr-xr-xpoky/scripts/oe-setup-build11
1 files changed, 1 insertions, 10 deletions
diff --git a/poky/scripts/oe-setup-build b/poky/scripts/oe-setup-build
index c0476992a2..5364f2b481 100755
--- a/poky/scripts/oe-setup-build
+++ b/poky/scripts/oe-setup-build
@@ -91,16 +91,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))
-
- initbuild = os.path.join(builddir, 'init-build-env')
- if not os.path.exists(initbuild):
- os.makedirs(builddir, exist_ok=True)
- with open(initbuild, 'w') as f:
- f.write(cmd_base)
- print("\nRun '. {}' to initialize the build in a current shell session.\n".format(initbuild))
-
- cmd = "TEMPLATECONF={} {}".format(template["templatepath"], cmd_base)
+ cmd = "TEMPLATECONF={} . {} {}".format(template["templatepath"], os.path.join(coredir, 'oe-init-build-env'), builddir)
if not no_shell:
cmd = cmd + " && {}".format(os.environ['SHELL'])
print("Running:", cmd)