summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-17 08:41:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-18 11:35:38 +0100
commitd4f2f8269cff0e4e9a98ad1ef9c0f7b8a909d563 (patch)
tree697e1e5a81c26e7e0d9fbe269253aa77476599a8 /scripts/lib/devtool
parent022deeb0effb92280cb86da962d8bd5e94d44947 (diff)
downloadpoky-d4f2f8269cff0e4e9a98ad1ef9c0f7b8a909d563.tar.gz
recipetool/devtool: Ensure server knows about changed files
Bitbake has changed to require notification when metadata changes in the middle of tinfoil sessions. Add the required function calls at the places metadata is changed. (From OE-Core rev: e5574163ab49a8f51b2b34fd37acfd1cad9b7595) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool')
-rw-r--r--scripts/lib/devtool/standard.py1
-rw-r--r--scripts/lib/devtool/upgrade.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 88a6ecd421..d53fb81007 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -587,6 +587,7 @@ def _extract_source(srctree, keep_temp, devbranch, sync, config, basepath, works
587 preservestampfile = os.path.join(sstate_manifests, 'preserve-stamps') 587 preservestampfile = os.path.join(sstate_manifests, 'preserve-stamps')
588 with open(preservestampfile, 'w') as f: 588 with open(preservestampfile, 'w') as f:
589 f.write(d.getVar('STAMP')) 589 f.write(d.getVar('STAMP'))
590 tinfoil.modified_files()
590 try: 591 try:
591 if is_kernel_yocto: 592 if is_kernel_yocto:
592 # We need to generate the kernel config 593 # We need to generate the kernel config
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index e015a85982..487308912f 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -429,6 +429,7 @@ def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, srcsubdir_old, src
429 newvalues["LIC_FILES_CHKSUM"] = newlicchksum 429 newvalues["LIC_FILES_CHKSUM"] = newlicchksum
430 _add_license_diff_to_recipe(fullpath, license_diff) 430 _add_license_diff_to_recipe(fullpath, license_diff)
431 431
432 tinfoil.modified_files()
432 try: 433 try:
433 rd = tinfoil.parse_recipe_file(fullpath, False) 434 rd = tinfoil.parse_recipe_file(fullpath, False)
434 except bb.tinfoil.TinfoilCommandFailed as e: 435 except bb.tinfoil.TinfoilCommandFailed as e: