]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool/oeqa: Ensure added layers set LAYERSERIES_COMPAT
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Apr 2018 10:32:03 +0000 (11:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Apr 2018 10:43:36 +0000 (11:43 +0100)
Now that we see warnings if LAYERSERIES_COMPAT is unset, the auto generated
code from devtool/oeqa needs to set this to avoid warnings which break
various tests.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/commands.py
scripts/devtool

index cad0bea0be98ca1130412f202052e04e6e67c780..0d9cf23fe42131df0c62c2f17ddac1831a738037 100644 (file)
@@ -285,7 +285,7 @@ def create_temp_layer(templayerdir, templayername, priority=999, recipepathspec=
         f.write('BBFILE_PATTERN_%s = "^${LAYERDIR}/"\n' % templayername)
         f.write('BBFILE_PRIORITY_%s = "%d"\n' % (templayername, priority))
         f.write('BBFILE_PATTERN_IGNORE_EMPTY_%s = "1"\n' % templayername)
-
+        f.write('LAYERSERIES_COMPAT_%s = "${LAYERSERIES_COMPAT_core}"\n' % templayername)
 
 @contextlib.contextmanager
 def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None, qemuparams=None, overrides={}, discard_writes=True):
index b4bfbb8329cd92210aafe937f11a00afd4a0e62b..d681a1929a25b08ecd48348124f8df3ec56cd897 100755 (executable)
@@ -165,6 +165,7 @@ def _create_workspace(workspacedir, config, basepath):
             f.write('BBFILE_PATTERN_workspacelayer = "^$' + '{LAYERDIR}/"\n')
             f.write('BBFILE_PATTERN_IGNORE_EMPTY_workspacelayer = "1"\n')
             f.write('BBFILE_PRIORITY_workspacelayer = "99"\n')
+            f.write('LAYERSERIES_COMPAT_workspacelayer = "${LAYERSERIES_COMPAT_core}"\n')
         # Add a README file
         with open(os.path.join(workspacedir, 'README'), 'w') as f:
             f.write('This layer was created by the OpenEmbedded devtool utility in order to\n')