From: Tom Rini Date: Wed, 3 Jan 2018 14:16:29 +0000 (-0500) Subject: imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL X-Git-Tag: v2018.03-rc1~176^2~32 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bf52330a507901af2a5581bec99c6da01388a335;p=oweals%2Fu-boot.git imx: ventana: Rework CONFIG_CMD_GSC code to not be included in SPL The command can only be used from full U-Boot, so do not build it into SPL. Cc: Stefano Babic Cc: Fabio Estevam Cc: Tim Harvey Signed-off-by: Tom Rini Acked-by: Tim Harvey Reviewed-by: Fabio Estevam --- diff --git a/board/gateworks/gw_ventana/gsc.c b/board/gateworks/gw_ventana/gsc.c index 68b1ddb532..f2a01b84de 100644 --- a/board/gateworks/gw_ventana/gsc.c +++ b/board/gateworks/gw_ventana/gsc.c @@ -172,7 +172,7 @@ int gsc_boot_wd_disable(void) return 1; } -#ifdef CONFIG_CMD_GSC +#if defined(CONFIG_CMD_GSC) && !defined(CONFIG_SPL_BUILD) static int do_gsc_sleep(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) {