All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cooker: Only warn on potentially incompatible layer
@ 2021-09-03 14:28 Damian Wrobel
  2021-09-03 17:07 ` [bitbake-devel] " Richard Purdie
  2021-09-08  9:56 ` Enrico Scholz
  0 siblings, 2 replies; 18+ messages in thread
From: Damian Wrobel @ 2021-09-03 14:28 UTC (permalink / raw)
  To: bitbake-devel

It frequently happens that the 3rd party layer is, in practise,
fully compatible with the older version of yocto. So, instead of
false positively reporting an error, it seems to be more
appropriately to just emit the warning.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
---
 lib/bb/cookerdata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index 1c1e008c..ed678616 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -397,7 +397,7 @@ class CookerDataBuilder(object):
                     bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c)
                 compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split())
                 if compat and not (compat & layerseries):
-                    bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)"
+                    bb.warn("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)"
                               % (c, " ".join(layerseries), " ".join(compat)))
                 elif not compat and not data.getVar("BB_WORKERCONTEXT"):
                     bb.warn("Layer %s should set LAYERSERIES_COMPAT_%s in its conf/layer.conf file to list the core layer names it is compatible with." % (c, c))
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-09-08 13:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 14:28 [PATCH] cooker: Only warn on potentially incompatible layer Damian Wrobel
2021-09-03 17:07 ` [bitbake-devel] " Richard Purdie
2021-09-03 17:53   ` Damian Wrobel
2021-09-04  7:54     ` [bitbake-devel] " Richard Purdie
2021-09-05  8:40       ` Peter Kjellerstedt
2021-09-07  8:54       ` Damian Wrobel
2021-09-07 11:40         ` [bitbake-devel] " Richard Purdie
2021-09-07 13:50           ` Damian Wrobel
2021-09-07 13:57             ` Martin Jansa
2021-09-07 14:06             ` Alexander Kanavin
2021-09-07 15:35               ` Damian Wrobel
2021-09-07 15:49                 ` [bitbake-devel] " Alexander Kanavin
2021-09-07 16:38                   ` Damian Wrobel
2021-09-07 19:17                     ` [bitbake-devel] " Richard Purdie
2021-09-07 20:18                       ` Alexander Kanavin
2021-09-08  9:56 ` Enrico Scholz
2021-09-08 12:36   ` Peter Kjellerstedt
2021-09-08 13:35   ` Damian Wrobel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.