soc: imx: gpc: build gpc only if hardware has gpc
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.
Signed-off-by Marc Ohlf <[email protected]>
--- drivers/soc/imx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/imx/Makefile +1 -1
@@ -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
Am Donnerstag, den 11.05.2017, 18:12 +0200 schrieb Marc Ohlf:
Quoted 4 lines
Add
CONFIG_HAVE_IMX_GPCto goal definition of gpc.o, to avoid building it for hardware that does not need it.Signed-off-by Marc Ohlf <[email protected]>
Reviewed-by Lucas Stach <[email protected]>
Quoted 12 lines
--- drivers/soc/imx/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/soc/imx/Makefile +1
-1@@ -1,2 +1,2 @@ -obj-y += gpc.o +obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o