]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: airoha: pcs: improve/fix building rules
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Wed, 11 Feb 2026 18:22:22 +0000 (21:22 +0300)
committerJerome Forissier <jerome.forissier@arm.com>
Thu, 12 Mar 2026 11:49:35 +0000 (12:49 +0100)
pcs-airoha-common.o should not build unconditionally,
also make building rules looks better.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
drivers/net/airoha/Makefile

index 27f2969434ce42b1749ae1c749396dec76ec313d..81fd26cf813122d795dc0084806e4303734faf49 100644 (file)
@@ -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