Skip to content

Commit

Permalink
Update generate-knownvars
Browse files Browse the repository at this point in the history
  • Loading branch information
priv-kweihmann committed Oct 19, 2024
1 parent 0827b5d commit b0a1337
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions scripts/generate-knownvars
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ args = create_argparser()

with tempfile.TemporaryDirectory() as t:
subprocess.run(['git', 'clone', 'https://git.yoctoproject.org/poky', '--single-branch', '-b', args.branch], cwd=t)
output = subprocess.check_output(
f'source poky/oe-init-build-env > /dev/null 2>&1 && {basepath}/bitbake-listvars -q',
shell=True,
universal_newlines=True,
executable='/bin/bash',
cwd=t
)
try:
output = subprocess.check_output(
f'source poky/oe-init-build-env && {basepath}/bitbake-listvars -q',
shell=True,
universal_newlines=True,
executable='/bin/bash',
cwd=t
)
except subprocess.CalledProcessError as e:
print(e.stdout)
print(e.stderr)
sys.exit(1)

if args.branch == 'master':
# for master override the name
Expand Down

0 comments on commit b0a1337

Please sign in to comment.