diff --git a/classes/tsmeta.bbclass b/classes/tsmeta.bbclass index 91621ab..2f7fdf4 100644 --- a/classes/tsmeta.bbclass +++ b/classes/tsmeta.bbclass @@ -237,9 +237,17 @@ def tsmeta_get_pn(d): def _get_cve_product(d): + def _has_native(d): + return ('native' in + oe.utils.squashspaces( + d.getVar('BBCLASSEXTEND') or '' + ).split(' ') + ) + cve_p = d.getVar('CVE_PRODUCT') if bb.data.inherits_class('uboot-config', d): - cve_p = 'u-boot' + if not _has_native(d): + cve_p = 'u-boot' if not cve_p: cve_p = d.getVar('PN') return cve_p