[U-Boot] [PATCH] fdt: Implement weak arch_fixup_fdt()

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Thu Jan 25 15:32:34 UTC 2018



On 24.01.2018 18:47, Alexey Brodkin wrote:
> Only ARM and in some configs MIPS really implement arch_fixup_fdt().
> Others just use the same boilerplate which is not good by itself,
> but what's worse if we try to build with disabled CONFIG_CMD_BOOTM
> and enabled CONFIG_OF_LIBFDT we'll hit an unknown symbol which was
> apparently implemented in arch/xxx/lib/bootm.c.
> 
> Now with weak arch_fixup_fdt() right in image-fdt.c where it is
> used we get both items highlighted above fixed.
> 
> Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
> Cc: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: York Sun <york.sun at nxp.com>
> Cc: Stefan Roese <sr at denx.de>
> ---
>  arch/arc/lib/bootm.c        | 5 -----
>  arch/microblaze/lib/bootm.c | 5 -----
>  arch/mips/lib/bootm.c       | 6 ++----
>  arch/nds32/lib/bootm.c      | 6 ------
>  arch/powerpc/lib/bootm.c    | 5 -----
>  arch/sandbox/lib/bootm.c    | 5 -----
>  arch/x86/lib/bootm.c        | 5 -----
>  common/image-fdt.c          | 5 +++++
>  8 files changed, 7 insertions(+), 35 deletions(-)
> 
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

-- 
- Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180125/4ffac924/attachment.sig>


More information about the U-Boot mailing list