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]>
Reviewed-by: Lucas Stach <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
This commit is contained in:
Marc Ohlf 2017-05-11 18:12:19 +02:00 • committed by Shawn Guo
commit c465a32fdd

View file

@ -1,2 +1,2 @@
obj-y += gpc.o
obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
obj-$(CONFIG_IMX7_PM_DOMAINS) += gpcv2.o