[PATCH 08/19] net: airoha: pcs: improve/fix building rules
Mikhail Kshevetskiy
mikhail.kshevetskiy at iopsys.eu
Thu Dec 4 05:14:22 CET 2025
pcs-airoha-common.o should not build unconditionally,
also make building rules looks better.
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at iopsys.eu>
---
drivers/net/airoha/Makefile | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/airoha/Makefile b/drivers/net/airoha/Makefile
index 27f2969434c..81fd26cf813 100644
--- a/drivers/net/airoha/Makefile
+++ b/drivers/net/airoha/Makefile
@@ -1,6 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
-obj-y += pcs-airoha-common.o
-ifdef CONFIG_PCS_AIROHA_AN7581
-obj-y += pcs-an7581.o
-endif
+obj-$(CONFIG_PCS_AIROHA) += pcs-airoha-common.o
+obj-$(CONFIG_PCS_AIROHA_AN7581) += pcs-an7581.o
--
2.51.0
More information about the U-Boot
mailing list