linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] soc: imx: gpc: build gpc only if hardware has gpc
@ 2017-05-11 16:12 Marc Ohlf
  2017-05-12 11:53 ` Lucas Stach
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Ohlf @ 2017-05-11 16:12 UTC (permalink / raw)
  To: Shawn Guo, Sascha Hauer, Lucas Stach, Fabio Estevam,
	linux-arm-kernel, linux-kernel

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

Signed-off-by: Marc Ohlf <ohlf@mkt-sys.de>
---
 drivers/soc/imx/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/soc/imx/Makefile b/drivers/soc/imx/Makefile
index 5b6e396..aab41a5c 100644
--- a/drivers/soc/imx/Makefile
+++ b/drivers/soc/imx/Makefile
@@ -1,2 +1,2 @@
-obj-y += gpc.o
+obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
 obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] soc: imx: gpc: build gpc only if hardware has gpc
  2017-05-11 16:12 [PATCH] soc: imx: gpc: build gpc only if hardware has gpc Marc Ohlf
@ 2017-05-12 11:53 ` Lucas Stach
  0 siblings, 0 replies; 2+ messages in thread
From: Lucas Stach @ 2017-05-12 11:53 UTC (permalink / raw)
  To: Marc Ohlf
  Cc: Shawn Guo, Sascha Hauer, Fabio Estevam, linux-arm-kernel, linux-kernel

Am Donnerstag, den 11.05.2017, 18:12 +0200 schrieb Marc Ohlf:
> Add CONFIG_HAVE_IMX_GPC to goal definition of gpc.o,
> to avoid building it for hardware that does not need it.
> 
> Signed-off-by: Marc Ohlf <ohlf@mkt-sys.de>

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-12 11:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11 16:12 [PATCH] soc: imx: gpc: build gpc only if hardware has gpc Marc Ohlf
2017-05-12 11:53 ` Lucas Stach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).