From: Michal Simek Date: Tue, 24 Nov 2015 12:30:21 +0000 (+0100) Subject: microblaze: Do not compile CMD_GPIO when driver is missing X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8cb39921557946538c34a5baf44217a8af92a25;p=thirdparty%2Fu-boot.git microblaze: Do not compile CMD_GPIO when driver is missing Do not compile CMD_GPIO when GPIO driver is not enabled. It is causing compilation error. Signed-off-by: Michal Simek --- diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h index e16965c56c8..0121c584765 100644 --- a/include/configs/microblaze-generic.h +++ b/include/configs/microblaze-generic.h @@ -247,7 +247,9 @@ #define CONFIG_CMD_ASKENV #define CONFIG_CMD_IRQ #define CONFIG_CMD_MFSL -#define CONFIG_CMD_GPIO +#ifdef CONFIG_XILINX_GPIO +# define CONFIG_CMD_GPIO +#endif #if defined(CONFIG_DCACHE) || defined(CONFIG_ICACHE) # define CONFIG_CMD_CACHE