| Message ID | 20251226073545.11152-1-mark.yang@lge.com |
|---|---|
| State | New |
| Headers | show |
| Series | package.py: warn if target is not a valid ELF file in dwarfsrcfiles | expand |
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index baaa0cba02..56b9bcd546 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py @@ -782,8 +782,12 @@ def source_info(file, d, fatal=True): if retval != 0 and retval != 255: msg = "dwarfsrcfiles failed with exit code %s (cmd was %s)%s" % (retval, cmd, ":\n%s" % output if output else "") if fatal: - bb.fatal(msg) - bb.note(msg) + if "not a valid ELF file" in output: + bb.warn(msg) + else: + bb.fatal(msg) + else: + bb.note(msg) debugsources = parse_debugsources_from_dwarfsrcfiles_output(output)