[meta-xilinx] [RFC PATCH 2/2] u-boot: microblaze: Do not compile CMD_GPIO when driver is missing
Michal Simek
monstr at monstr.eu
Tue Nov 24 01:51:29 PST 2015
Do not compile CMD_GPIO when GPIO driver is not enabled.
It is causing compilation error.
Signed-off-by: Michal Simek <monstr at monstr.eu>
---
recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc | 1 +
...Do-not-compile-CMD_GPIO-if-GPIO-is-disabl.patch | 32 ++++++++++++++++++++++
2 files changed, 33 insertions(+)
create mode 100644 recipes-bsp/u-boot/u-boot-xlnx/microblaze-Do-not-compile-CMD_GPIO-if-GPIO-is-disabl.patch
diff --git a/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc b/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc
index 8ee028ededb5..f73fd6ddc65c 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc
+++ b/recipes-bsp/u-boot/u-boot-xlnx-2015.01.inc
@@ -7,6 +7,7 @@ SRC_URI += " \
file://zynq-Add-Zynq-PicoZed-board-support.patch \
file://microblaze-Fix-EMAC-Lite-initialization.patch \
file://microblaze-generic_defconfig-Disable-configs.patch \
+ file://microblaze-Do-not-compile-CMD_GPIO-if-GPIO-is-disabl.patch \
"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c"
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/microblaze-Do-not-compile-CMD_GPIO-if-GPIO-is-disabl.patch b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-Do-not-compile-CMD_GPIO-if-GPIO-is-disabl.patch
new file mode 100644
index 000000000000..154b51808ee1
--- /dev/null
+++ b/recipes-bsp/u-boot/u-boot-xlnx/microblaze-Do-not-compile-CMD_GPIO-if-GPIO-is-disabl.patch
@@ -0,0 +1,32 @@
+From bd242edb9b61a148077e916433d606867088af24 Mon Sep 17 00:00:00 2001
+Message-Id: <bd242edb9b61a148077e916433d606867088af24.1448358211.git.monstr at monstr.eu>
+From: Michal Simek <monstr at monstr.eu>
+Date: Tue, 24 Nov 2015 10:42:46 +0100
+Subject: [PATCH] microblaze: Do not compile CMD_GPIO if GPIO is disabled
+
+Do not enable GPIO commands when GPIO driver is disabled.
+It is causing compilation error.
+
+Signed-off-by: Michal Simek <monstr at monstr.eu>
+---
+ include/configs/microblaze-generic.h | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
+index e16965c56c89..0121c584765d 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
+--
+1.9.1
+
--
1.9.1
More information about the meta-xilinx
mailing list