summaryrefslogtreecommitdiffstats
path: root/meta/lib/bblayers/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/bblayers/create.py')
-rw-r--r--meta/lib/bblayers/create.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/bblayers/create.py b/meta/lib/bblayers/create.py
index c1923166fd..e06949c92b 100644
--- a/meta/lib/bblayers/create.py
+++ b/meta/lib/bblayers/create.py
@@ -43,8 +43,11 @@ class CreatePlugin(LayerPlugin):
43 license_dst = os.path.join(layerdir, copying) 43 license_dst = os.path.join(layerdir, copying)
44 shutil.copy(license_src, license_dst) 44 shutil.copy(license_src, license_dst)
45 45
46 # Get the compat value for core layer.
47 compat = self.tinfoil.config_data.getVar('LAYERSERIES_COMPAT_core') or ""
48
46 # Create the layer.conf from templates/layer.conf 49 # Create the layer.conf from templates/layer.conf
47 layerconf_template = read_template('layer.conf') % (args.layerdir, args.layerdir, args.layerdir, args.priority) 50 layerconf_template = read_template('layer.conf') % (args.layerdir, args.layerdir, args.layerdir, args.priority, args.layerdir, args.layerdir, compat)
48 layerconf = os.path.join(conf, 'layer.conf') 51 layerconf = os.path.join(conf, 'layer.conf')
49 with open(layerconf, 'w') as fd: 52 with open(layerconf, 'w') as fd:
50 fd.write(layerconf_template) 53 fd.write(layerconf_template)