aboutsummaryrefslogtreecommitdiff
path: root/board/freescale/common/cmd_esbc_validate.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-01-03 08:57:50 -0500
committerYork Sun <york.sun@nxp.com>2018-01-17 10:30:45 -0800
commit1f0ce3259ec7dd1f912abe187abb85ea5d0b414c (patch)
tree20f38eb85a12c500d884d83c7cab975931d10251 /board/freescale/common/cmd_esbc_validate.c
parent68ae7772aff3f6e96a805e0ae411a1c42460865e (diff)
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 <york.sun@nxp.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/common/cmd_esbc_validate.c')
-rw-r--r--board/freescale/common/cmd_esbc_validate.c2
1 files changed, 2 insertions, 0 deletions
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