mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
bitbake-layers/create: add LAYERSERIES_COMPAT
Derive the value for template layer.conf from core layer and add dependendency on it too. Fixes [YOCTO #12767] (From OE-Core rev: 461c305078c40fca8b5382e393e3e8513d4abfa4) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4699d29ac2
commit
ffeb85ab80
|
@ -43,8 +43,11 @@ class CreatePlugin(LayerPlugin):
|
|||
license_dst = os.path.join(layerdir, copying)
|
||||
shutil.copy(license_src, license_dst)
|
||||
|
||||
# Get the compat value for core layer.
|
||||
compat = self.tinfoil.config_data.getVar('LAYERSERIES_COMPAT_core') or ""
|
||||
|
||||
# Create the layer.conf from templates/layer.conf
|
||||
layerconf_template = read_template('layer.conf') % (args.layerdir, args.layerdir, args.layerdir, args.priority)
|
||||
layerconf_template = read_template('layer.conf') % (args.layerdir, args.layerdir, args.layerdir, args.priority, args.layerdir, args.layerdir, compat)
|
||||
layerconf = os.path.join(conf, 'layer.conf')
|
||||
with open(layerconf, 'w') as fd:
|
||||
fd.write(layerconf_template)
|
||||
|
|
|
@ -8,3 +8,6 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
|||
BBFILE_COLLECTIONS += "%s"
|
||||
BBFILE_PATTERN_%s = "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_%s = "%s"
|
||||
|
||||
LAYERDEPENDS_%s = "core"
|
||||
LAYERSERIES_COMPAT_%s = "%s"
|
||||
|
|
Loading…
Reference in New Issue
Block a user