[PATCH 31/36] bdinfo: ppc: Move PPC-specific info into its own file

Bin Meng bmeng.cn at gmail.com
Wed May 6 10:10:17 CEST 2020


On Tue, May 5, 2020 at 7:19 AM Simon Glass <sjg at chromium.org> wrote:
>
> We don't really want to have PPC-specific code in a generic file. Create
> a new arch-specific function to hold it, and move it into that.
>
> Make the function weak so that any arch can implement it.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  arch/powerpc/lib/Makefile |  2 ++
>  arch/powerpc/lib/bdinfo.c | 41 +++++++++++++++++++++++++++++++++++++++
>  cmd/bdinfo.c              | 27 --------------------------
>  3 files changed, 43 insertions(+), 27 deletions(-)
>  create mode 100644 arch/powerpc/lib/bdinfo.c
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list