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>
Showing
- arch/arm/include/asm/bootm.h 52 additions, 2 deletionsarch/arm/include/asm/bootm.h
- arch/arm/include/asm/u-boot-arm.h 0 additions, 2 deletionsarch/arm/include/asm/u-boot-arm.h
- arch/arm/lib/bootm.c 20 additions, 64 deletionsarch/arm/lib/bootm.c
- common/cmd_bootm.c 1 addition, 1 deletioncommon/cmd_bootm.c
Please register or sign in to comment