diff options
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes/kernel-yocto.bbclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index c8d1e95df3..8db489964e 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -265,6 +265,7 @@ python do_kernel_configcheck() { | |||
265 | ret, result = oe.utils.getstatusoutput("%s%s" % (pathprefix, cmd)) | 265 | ret, result = oe.utils.getstatusoutput("%s%s" % (pathprefix, cmd)) |
266 | 266 | ||
267 | config_check_visibility = int(d.getVar( "KCONF_AUDIT_LEVEL", True ) or 0) | 267 | config_check_visibility = int(d.getVar( "KCONF_AUDIT_LEVEL", True ) or 0) |
268 | bsp_check_visibility = int(d.getVar( "KCONF_BSP_AUDIT_LEVEL", True ) or 0) | ||
268 | 269 | ||
269 | # if config check visibility is non-zero, report dropped configuration values | 270 | # if config check visibility is non-zero, report dropped configuration values |
270 | mismatch_file = "${S}/" + kmeta + "/" + "mismatch.cfg" | 271 | mismatch_file = "${S}/" + kmeta + "/" + "mismatch.cfg" |
@@ -283,13 +284,13 @@ python do_kernel_configcheck() { | |||
283 | bb.warn( "[kernel config]: BSP specified non-hw configuration:\n\n%s" % results) | 284 | bb.warn( "[kernel config]: BSP specified non-hw configuration:\n\n%s" % results) |
284 | 285 | ||
285 | bsp_desc = "${S}/" + kmeta + "/" + "top_tgt" | 286 | bsp_desc = "${S}/" + kmeta + "/" + "top_tgt" |
286 | if os.path.exists(bsp_desc): | 287 | if os.path.exists(bsp_desc) and bsp_check_visibility > 1: |
287 | with open (bsp_desc, "r") as myfile: | 288 | with open (bsp_desc, "r") as myfile: |
288 | bsp_tgt = myfile.read() | 289 | bsp_tgt = myfile.read() |
289 | m = re.match("^(.*)scratch.obj(.*)$", bsp_tgt) | 290 | m = re.match("^(.*)scratch.obj(.*)$", bsp_tgt) |
290 | if not m is None: | 291 | if not m is None: |
291 | bb.warn( "[kernel]: An auto generated BSP description was used, this normally indicates a misconfiguration.\n" + | 292 | bb.warn( "[kernel]: An auto generated BSP description was used, this normally indicates a misconfiguration.\n" + |
292 | "Check that your machine (%s) has an associated kernel description." % "${MACHINE}" ) | 293 | "Check that your machine (%s) has an associated kernel description." % "${MACHINE}" ) |
293 | } | 294 | } |
294 | 295 | ||
295 | # Ensure that the branches (BSP and meta) are on the locations specified by | 296 | # Ensure that the branches (BSP and meta) are on the locations specified by |