mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
kernel-yocto: inhibit BSP description warnings for custom linux-yocto kernels
We don't require that a yocto custom kernel + defconfig have a full BSP description (but of course it would be better if they did). Since this isn't a requirement, we shouldn't alarm users by generating a BSP description warning. To implement this, we add a bsp audit level flag (like the one that exists for kconfig audits), and only set it to activate in the versioned linux-yocto recipes. [YOCTO: #7370] (From OE-Core rev: d2fb7fff291b83700d487be093223c1533d915ce) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
dd1d4e55c6
commit
e02016e73b
@@ -265,6 +265,7 @@ python do_kernel_configcheck() {
|
||||
ret, result = oe.utils.getstatusoutput("%s%s" % (pathprefix, cmd))
|
||||
|
||||
config_check_visibility = int(d.getVar( "KCONF_AUDIT_LEVEL", True ) or 0)
|
||||
bsp_check_visibility = int(d.getVar( "KCONF_BSP_AUDIT_LEVEL", True ) or 0)
|
||||
|
||||
# if config check visibility is non-zero, report dropped configuration values
|
||||
mismatch_file = "${S}/" + kmeta + "/" + "mismatch.cfg"
|
||||
@@ -283,13 +284,13 @@ python do_kernel_configcheck() {
|
||||
bb.warn( "[kernel config]: BSP specified non-hw configuration:\n\n%s" % results)
|
||||
|
||||
bsp_desc = "${S}/" + kmeta + "/" + "top_tgt"
|
||||
if os.path.exists(bsp_desc):
|
||||
if os.path.exists(bsp_desc) and bsp_check_visibility > 1:
|
||||
with open (bsp_desc, "r") as myfile:
|
||||
bsp_tgt = myfile.read()
|
||||
m = re.match("^(.*)scratch.obj(.*)$", bsp_tgt)
|
||||
if not m is None:
|
||||
bb.warn( "[kernel]: An auto generated BSP description was used, this normally indicates a misconfiguration.\n" +
|
||||
"Check that your machine (%s) has an associated kernel description." % "${MACHINE}" )
|
||||
bsp_tgt = myfile.read()
|
||||
m = re.match("^(.*)scratch.obj(.*)$", bsp_tgt)
|
||||
if not m is None:
|
||||
bb.warn( "[kernel]: An auto generated BSP description was used, this normally indicates a misconfiguration.\n" +
|
||||
"Check that your machine (%s) has an associated kernel description." % "${MACHINE}" )
|
||||
}
|
||||
|
||||
# Ensure that the branches (BSP and meta) are on the locations specified by
|
||||
|
||||
Reference in New Issue
Block a user