summaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_ext.bbclass
diff options
context:
space:
mode:
authorRandy Witt <randy.e.witt@linux.intel.com>2016-04-07 16:34:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-09 23:00:43 +0100
commit07204257441406a773320c59c21a4775d3640aa8 (patch)
tree07552b62541df793904e3aa09e31a00a574e0dd2 /meta/classes/populate_sdk_ext.bbclass
parent64cca7ebc9f8fa7de3dc7da7f901f3eb9c9adbca (diff)
downloadpoky-07204257441406a773320c59c21a4775d3640aa8.tar.gz
devtool: Create unlocked-sigs.inc containing items in the workspace
When a recipe is added to the workspace, the signatures for the tasks will change. This means that bitbake must be told to allow the signatures to be different if they are in locked-sigs.inc. This is done by creating an unlocked-sigs.inc file which contains all the recipes in the workspace each time devtool reads the workspace. So not only will necessary things get added, previously added items will be removed by virtue of them no longer being in the workspace. This also makes sure that the extensible sdk picks up unlocked-sigs.inc as part of the configuration. [YOCTO #9195] (From OE-Core rev: 6b2b5ffdcb8bf885a1c756ea132e9d2c55e13dcd) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r--meta/classes/populate_sdk_ext.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index d1977a760a..87518d1767 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -140,6 +140,10 @@ python copy_buildsystem () {
140 with open(os.path.join(baseoutpath, 'conf', 'devtool.conf'), 'w') as f: 140 with open(os.path.join(baseoutpath, 'conf', 'devtool.conf'), 'w') as f:
141 config.write(f) 141 config.write(f)
142 142
143 unlockedsigs = os.path.join(baseoutpath, 'conf', 'unlocked-sigs.inc')
144 with open(unlockedsigs, 'w') as f:
145 pass
146
143 # Create a layer for new recipes / appends 147 # Create a layer for new recipes / appends
144 bbpath = d.getVar('BBPATH', True) 148 bbpath = d.getVar('BBPATH', True)
145 bb.process.run(['devtool', '--bbpath', bbpath, '--basepath', baseoutpath, 'create-workspace', '--create-only', os.path.join(baseoutpath, 'workspace')]) 149 bb.process.run(['devtool', '--bbpath', bbpath, '--basepath', baseoutpath, 'create-workspace', '--create-only', os.path.join(baseoutpath, 'workspace')])
@@ -238,6 +242,7 @@ python copy_buildsystem () {
238 f.write(line.strip() + '\n') 242 f.write(line.strip() + '\n')
239 243
240 f.write('require conf/locked-sigs.inc\n') 244 f.write('require conf/locked-sigs.inc\n')
245 f.write('require conf/unlocked-sigs.inc\n')
241 246
242 if os.path.exists(builddir + '/conf/auto.conf'): 247 if os.path.exists(builddir + '/conf/auto.conf'):
243 if derivative: 248 if derivative: