diff mbox series

yocto-check-layer: show the distro used

Message ID 20250908141505.20114-1-jose.quaresma@foundries.io
State New
Headers show
Series yocto-check-layer: show the distro used | expand

Commit Message

Jose Quaresma Sept. 8, 2025, 2:15 p.m. UTC
From: Jose Quaresma <jose.quaresma@oss.qualcomm.com>

It is good to know which distribution is being used, because it is not the same
whether we are using the poky or openembedded-core+bitbake repository.

The default distribution of bitbake is the nodistro while the other is poky.
The nodistro and poky produce different results when used to check the compatibility
of a layer so it is important to inform about the distro in use.

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
---
 scripts/yocto-check-layer | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer
index 67cc71950f..8c8b4dbcad 100755
--- a/scripts/yocto-check-layer
+++ b/scripts/yocto-check-layer
@@ -35,6 +35,7 @@  logger = scriptutils.logger_create(PROGNAME, stream=sys.stdout)
 def test_layer(td, layer, test_software_layer_signatures):
     from checklayer.context import CheckLayerTestContext
     logger.info("Starting to analyze: %s" % layer['name'])
+    logger.info('Distro: %s' % td['bbvars']["DISTRO"])
     logger.info("----------------------------------------------------------------------")
 
     tc = CheckLayerTestContext(td=td, logger=logger, layer=layer, test_software_layer_signatures=test_software_layer_signatures)