bus: mhi: Update Makefile to used Kconfig flags
authorCarl Vanderlip <quic_carlv@quicinc.com>
Wed, 7 Dec 2022 19:26:13 +0000 (11:26 -0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 27 Jan 2023 07:00:53 +0000 (12:30 +0530)
Makefile was always suggesting to build subdirectories regardless of
Kconfig. Use the Kconfig flags as intended.

Signed-off-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://lore.kernel.org/r/20221207192613.2098614-1-quic_carlv@quicinc.com
[mani: fixed the subject prefix]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/Makefile

index 4698133..354204b 100644 (file)
@@ -1,5 +1,5 @@
 # Host MHI stack
-obj-y += host/
+obj-$(CONFIG_MHI_BUS) += host/
 
 # Endpoint MHI stack
-obj-y += ep/
+obj-$(CONFIG_MHI_BUS_EP) += ep/