Skip to content
Snippets Groups Projects
Commit c92f9fa8 authored by Robert Drab's avatar Robert Drab
Browse files

gn_base.bbclass: Check GN_TARGET_ARCH_NAME being resolved to empty string


Currently only the case where GN_TARGET_ARCH_NAME variable is undefined was
caught. The variable defined as an empty string would bypass the check.

Signed-off-by: default avatarRobert Drab <robert.drab@huawei.com>
parent c3ddae4f
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ def gn_target_arch_name(d):
"""Returns a GN architecture name corresponding to the target machine's
architecture."""
name = d.getVar("GN_TARGET_ARCH_NAME")
if name is None:
if not name:
bb.fatal('Unsupported target architecture. A valid override for the '
'GN_TARGET_ARCH_NAME variable could not be found.')
return name
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment