Skip to contentSkip to conversation

soc: imx: gpc: build gpc only if hardware has gpc

PATCH In review Marc Ohlf 2 participants 2 messages May 11, 2017 – May 12, 2017 Arm i.MX and Layerscape

lore
Share & tools
lore

Marc Ohlf

author
#0 lore raw

PATCH 1/1 soc: imx: gpc: build gpc only if hardware has gpc

Add CONFIG_HAVE_IMX_GPC to goal definition of gpc.o, to avoid building it for hardware that does not need it.

---
 drivers/soc/imx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/imx/Makefile +1 -1
index 5b6e396..aab41a5c 100644
@@ -1,2 +1,2 @@
-obj-y += gpc.o
+obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
 obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw

Am Donnerstag, den 11.05.2017, 18:12 +0200 schrieb Marc Ohlf:

Quoted 4 lines

Add CONFIG_HAVE_IMX_GPC to goal definition of gpc.o, to avoid building it for hardware that does not need it.

Quoted 12 lines
---
 drivers/soc/imx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/imx/Makefile +1 -1
index 5b6e396..aab41a5c 100644
@@ -1,2 +1,2 @@
-obj-y += gpc.o
+obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
 obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o