bdinfo: m68k: Move m68k-specific info into its own file
authorSimon Glass <sjg@chromium.org>
Sun, 10 May 2020 20:16:58 +0000 (14:16 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 25 Jun 2020 17:24:12 +0000 (13:24 -0400)
commit1a520d949b00a0468746a5d4f14920f54c8f6766
tree112827e8e596aa76dbe013396290e6adbd773bed
parent79d074d30196811478eb7242121f97cac405b6aa
bdinfo: m68k: Move m68k-specific info into its own file

We don't really want to have m68k-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@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Tested-by: Angelo Dureghello <angelo.dureghello@timesys.com>
arch/m68k/lib/Makefile
arch/m68k/lib/bdinfo.c [new file with mode: 0644]
cmd/bdinfo.c