From 1f0ce3259ec7dd1f912abe187abb85ea5d0b414c Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 3 Jan 2018 08:57:50 -0500 Subject: freescale: Ensure common commands are not included in SPL binary Both the "qixis_reset" and esbc_validate" commands can only be used in full U-Boot so do not build them in SPL. As part of this rework the qixis code to declare things as static and make use of __weak for function aliases. Cc; York Sun Signed-off-by: Tom Rini Reviewed-by: York Sun --- board/freescale/common/cmd_esbc_validate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/freescale/common/cmd_esbc_validate.c') diff --git a/board/freescale/common/cmd_esbc_validate.c b/board/freescale/common/cmd_esbc_validate.c index b3e5f019b8..f45e2249fb 100644 --- a/board/freescale/common/cmd_esbc_validate.c +++ b/board/freescale/common/cmd_esbc_validate.c @@ -23,6 +23,7 @@ loop: return 0; } +#ifndef CONFIG_SPL_BUILD static int do_esbc_validate(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { @@ -82,3 +83,4 @@ U_BOOT_CMD( "Put the core in spin loop (Secure Boot Only)", "" ); +#endif -- cgit v1.2.3