From bfee47ebbc3beff41af69d34cf403da021421cb3 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 11 Oct 2021 08:10:29 +0200 Subject: [PATCH] libcmds: Write more bblayers.conf boilerplate settings Irrespective of build system (OE / Yocto / Isar), they all have BBPATH = "${TOPDIR}" BBFILES ?= "" in their bblayers_conf_header fragments. This could be dropped if kas wrote those standard assignments already. So let's do that, weakly so that those could still be overwritten via bblayers_conf_header. Signed-off-by: Jan Kiszka --- docs/format-changelog.rst | 2 ++ kas/libcmds.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/format-changelog.rst b/docs/format-changelog.rst index 934bc85..d1f3b90 100644 --- a/docs/format-changelog.rst +++ b/docs/format-changelog.rst @@ -103,6 +103,8 @@ Changed behavior - String item ``includes`` are now using repo-relative paths. File-relative is still supported by issues a deprecation warning. +- bblayers.conf is generated with ``BBPATH`` and ``BBFILES`` preset to common + defaults. Those can still be overwritten via ``bblayers_conf_headers``. Added ~~~~~ diff --git a/kas/libcmds.py b/kas/libcmds.py index 0912204..35668fc 100644 --- a/kas/libcmds.py +++ b/kas/libcmds.py @@ -256,6 +256,8 @@ class WriteBBConfig(Command): sorted(layer for repo in ctx.config.get_repos() for layer in repo.layers))) fds.write('"\n') + fds.write('BBPATH ?= "${TOPDIR}"\n') + fds.write('BBFILES ??= ""\n') def _write_local_conf(ctx): filename = ctx.build_dir + '/conf/local.conf'