Check if the variable GO_IMPORT is assigned with a value. If not generate an error. Fixes [YOCTO #15763]
CC: Yoann Congal <[email protected]> CC: Randy MacLeod <[email protected]> CC: Alexander Kanavin <[email protected]> Signed-off-by: Christos Gavros <[email protected]> --- meta/classes-global/sanity.bbclass | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass index 1bae998f74..01e48b4347 100644 --- a/meta/classes-global/sanity.bbclass +++ b/meta/classes-global/sanity.bbclass @@ -1010,6 +1010,10 @@ def check_sanity_everybuild(status, d): if '/dash' not in real_sh and '/bash' not in real_sh: status.addresult("Error, /bin/sh links to %s, must be dash or bash\n" % real_sh) + # Check if a value is assigned to GO_IMPORT variable + if not d.getVar('GO_IMPORT'): + status.addresult("GO_IMPORT variable is not assigned with a value") + def check_sanity(sanity_data): class SanityStatus(object): def __init__(self): -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#211920): https://lists.openembedded.org/g/openembedded-core/message/211920 Mute This Topic: https://lists.openembedded.org/mt/111381998/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
