mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 18:49:41 +00:00

With CONFIG_LIQUIDIO=m and CONFIG_LIQUIDIO_VF=y (or vice versa),
$(common-objs) are linked to a module and also to vmlinux even though
the expected CFLAGS are different between builtins and modules.
This is the same situation as fixed by commit 637a642f5c
("zstd:
Fixing mixed module-builtin objects").
Introduce the new module, liquidio-core, to provide the common functions
to liquidio and liquidio-vf.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
27 lines
582 B
Makefile
27 lines
582 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Cavium Liquidio ethernet device driver
|
|
#
|
|
|
|
obj-$(CONFIG_LIQUIDIO_CORE) += liquidio-core.o
|
|
liquidio-core-y := \
|
|
lio_ethtool.o \
|
|
lio_core.o \
|
|
request_manager.o \
|
|
response_manager.o \
|
|
octeon_device.o \
|
|
cn66xx_device.o \
|
|
cn68xx_device.o \
|
|
cn23xx_pf_device.o \
|
|
cn23xx_vf_device.o \
|
|
octeon_mailbox.o \
|
|
octeon_mem_ops.o \
|
|
octeon_droq.o \
|
|
octeon_nic.o
|
|
|
|
obj-$(CONFIG_LIQUIDIO) += liquidio.o
|
|
liquidio-y := lio_main.o octeon_console.o lio_vf_rep.o
|
|
|
|
obj-$(CONFIG_LIQUIDIO_VF) += liquidio_vf.o
|
|
liquidio_vf-y := lio_vf_main.o
|