diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-04-25 21:30:39 -0700 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-07-12 02:25:08 +0200 |
| commit | 1160c2208fab4eaf4a32d738f83474c32c3a6944 (patch) | |
| tree | 9e6bcf835f569e73c6f43b6b9daf80f4b9e8b4f4 /tools/perf/scripts/python/bin/task-analyzer-record | |
| parent | d059966c0c7d24c9a8b8e577432209d53a9ebfe0 (diff) | |
firmware_loader: builtin: fail build on empty firmware
If an empty firmware file is supplied via CONFIG_EXTRA_FIRMWARE, the
build currently succeeds but creates an empty section. While the
firmware loader will not return such sections it is better to avoid
adding them in the first place.
Add a compile-time size check to the filechk_fwbin macro to abort the
build early if a 0-size firmware is encountered.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/20260426043041.649202-2-dmitry.torokhov@gmail.com
[ Use 'exit 1' to properly fail the build. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions
