mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 08:23:24 +02:00
arm: Refactor bootm to reduce #ifdefs
With fewer #ifdefs the code is more readable and more of the code is compiled for all boards. Add defines in the header file to control what features are enabled, and then use if() instead of #ifdef. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -276,7 +276,7 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]
|
||||
#if defined(CONFIG_FIT)
|
||||
} else if (images.fit_uname_os) {
|
||||
ret = fit_image_get_entry(images.fit_hdr_os,
|
||||
images.fit_noffset_os, &images.ep);
|
||||
images.fit_noffset_os, &images.ep);
|
||||
if (ret) {
|
||||
puts("Can't get entry point property!\n");
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user