tegra-minimal-initramfs: add temporary workaround for hashing issue

The combination of hashequiv and the improved pseudo tracking
in OE-Core prevents the enabling of sstate packages for the
initramfs image.  Temporarily work around these failures by
overriding the hash reporting function until something better
is worked out.

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2020-10-20 06:32:37 -07:00
parent aca884e573
commit 7a8cf920b0

View File

@@ -36,5 +36,17 @@ SSTATE_SKIP_CREATION_task-image-complete = "0"
SSTATE_SKIP_CREATION_task-image-qa = "0"
do_image_complete[vardepsexclude] += "rm_work_rootfs"
IMAGE_POSTPROCESS_COMMAND = ""
inherit nopackages
# XXX
# Temporarily override this function from sstate.bbclass
# until a better solution is found.
# XXX
python sstate_report_unihash() {
report_unihash = getattr(bb.parse.siggen, 'report_unihash', None)
if report_unihash:
ss = sstate_state_fromvars(d)
if ss['task'] == 'image_complete':
os.environ['PSEUDO_DISABLED'] = '1'
report_unihash(os.getcwd(), ss['task'], d)
}