[U-Boot] [PATCH v2 09/23] ARM: boot0 hook: remove macro, include whole header file

Simon Glass sjg at chromium.org
Mon Dec 5 07:25:48 CET 2016


On 4 December 2016 at 18:52, Andre Przywara <andre.przywara at arm.com> wrote:
> For prepending some board specific header area to U-Boot images we
> were so far including a header file with a macro definition containing
> the actual header specification.
> This works fine if there are just a few statements and if there is only
> one alternative.
> However adding more complex code quickly gets messy with this approach,
> so let's just drop that intermediate macro and let the #include actually
> insert the code directly.
> This converts the callers and the callees, but doesn't change anything
> at this point.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
> ---
>  arch/arm/cpu/armv8/start.S                 | 1 -
>  arch/arm/include/asm/arch-bcm235xx/boot0.h | 8 +-------
>  arch/arm/include/asm/arch-bcm281xx/boot0.h | 8 +-------
>  arch/arm/include/asm/arch-sunxi/boot0.h    | 8 +-------
>  arch/arm/lib/vectors.S                     | 1 -
>  5 files changed, 3 insertions(+), 23 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list