commit | 35c84e571f2d22bc8f397a01ce47b031a6a005a9 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Sep 26 08:14:22 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Fri Oct 06 14:38:12 2023 -0400 |
tree | abefe7ce3ce8ce362a6b5761107766e1043a1492 | |
parent | ad67972f39ada101144a14bd5b6a32957a1e3e15 [diff] |
spl: Drop the switch() statement for OS selection This code is pretty ugly, with many #ifdefs There are quite a lot of IH_OS_U_BOOT values so the compiler struggles to create a jump table here. Also, most of the options are normally disabled. Change it to an else...if construct instead. Add an accessor for the spl_image field behind an #ifdef to avoid needing #ifdef in the C code. Signed-off-by: Simon Glass <sjg@chromium.org>