From 80ed5ee82d263368323831f40c554315c95b26db Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 5 Jun 2022 13:23:30 +0100 Subject: populate_sdk_ext: Fix second bb_unihashes reference A previous fix for zero length bb_unihashes.dat files wasn't complete as there is a second copy of the unihashes file made. Change this second call site to match the first to fully fix the zero length file issue. (From OE-Core rev: 962bd78af1acc86b3d900dce9081ed310616e0fa) Signed-off-by: Richard Purdie --- meta/classes/populate_sdk_ext.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'meta/classes/populate_sdk_ext.bbclass') diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 3ddbb46eda..d58b2ba5d0 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass @@ -491,10 +491,10 @@ python copy_buildsystem () { else: tasklistfn = None - if os.path.exists(builddir + '/cache/bb_unihashes.dat'): - bb.parse.siggen.save_unitaskhashes() - bb.utils.mkdirhier(os.path.join(baseoutpath, 'cache')) - shutil.copyfile(builddir + '/cache/bb_unihashes.dat', baseoutpath + '/cache/bb_unihashes.dat') + + cachedir = os.path.join(baseoutpath, 'cache') + bb.utils.mkdirhier(cachedir) + bb.parse.siggen.copy_unitaskhashes(cachedir) # Add packagedata if enabled if d.getVar('SDK_INCLUDE_PKGDATA') == '1': -- cgit v1.2.3-54-g00ecf