net: airoha: pcs: improve/fix building rules

pcs-airoha-common.o should not build unconditionally,
also make building rules looks better.

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
This commit is contained in:
Mikhail Kshevetskiy 2026-02-11 21:22:22 +03:00 committed by Jerome Forissier
parent d4dd6eb29b
commit 5b6b5d6f0b

View 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