mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
classes/buildhistory: use BB_CMDLINE to get bitbake command line
We put the bitbake command line in the buildhistory commit message for informational purposes, but calling sys.argv to get that as we were previously doesn't really work in memory resident mode - that gives you the command used to start the bitbake server which is much less interesting. Use the just-introduced BB_CMDLINE variable instead. Part of the fix for [YOCTO #11634]. (From OE-Core rev: 1a6424ee4c865601ff324e9599a2f48c9e6723ee) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
120810c508
commit
4d1866bd28
@@ -696,11 +696,14 @@ def buildhistory_get_sdkvars(d):
|
||||
|
||||
|
||||
def buildhistory_get_cmdline(d):
|
||||
if sys.argv[0].endswith('bin/bitbake'):
|
||||
bincmd = 'bitbake'
|
||||
else:
|
||||
bincmd = sys.argv[0]
|
||||
return '%s %s' % (bincmd, ' '.join(sys.argv[1:]))
|
||||
argv = d.getVar('BB_CMDLINE', False)
|
||||
if argv:
|
||||
if argv[0].endswith('bin/bitbake'):
|
||||
bincmd = 'bitbake'
|
||||
else:
|
||||
bincmd = argv[0]
|
||||
return '%s %s' % (bincmd, ' '.join(argv[1:]))
|
||||
return ''
|
||||
|
||||
|
||||
buildhistory_single_commit() {
|
||||
|
||||
Reference in New Issue
Block a user