2021-10-12 19:17:25 +02:00
|
|
|
ifneq ($(KERNELRELEASE),)
|
2019-07-17 18:13:51 -07:00
|
|
|
|
|
|
|
# object files to build
|
|
|
|
obj-m += mqnic.o
|
2021-02-01 20:10:48 -08:00
|
|
|
mqnic-y += mqnic_main.o
|
2021-12-29 22:31:46 -08:00
|
|
|
mqnic-y += mqnic_reg_block.o
|
2021-12-12 13:34:33 -08:00
|
|
|
mqnic-y += mqnic_irq.o
|
2021-02-01 20:10:48 -08:00
|
|
|
mqnic-y += mqnic_dev.o
|
2021-12-12 17:28:43 -08:00
|
|
|
mqnic-y += mqnic_if.o
|
2022-05-04 09:03:37 -07:00
|
|
|
mqnic-y += mqnic_port.o
|
2021-02-01 20:10:48 -08:00
|
|
|
mqnic-y += mqnic_netdev.o
|
2022-03-28 17:23:27 -07:00
|
|
|
mqnic-y += mqnic_sched_block.o
|
2021-12-29 22:31:46 -08:00
|
|
|
mqnic-y += mqnic_scheduler.o
|
2021-02-01 20:10:48 -08:00
|
|
|
mqnic-y += mqnic_ptp.o
|
|
|
|
mqnic-y += mqnic_i2c.o
|
|
|
|
mqnic-y += mqnic_board.o
|
2022-11-23 17:49:14 -08:00
|
|
|
mqnic-y += mqnic_clk_info.o
|
2022-11-23 17:49:38 -08:00
|
|
|
mqnic-y += mqnic_stats.o
|
2021-02-01 20:10:48 -08:00
|
|
|
mqnic-y += mqnic_tx.o
|
|
|
|
mqnic-y += mqnic_rx.o
|
|
|
|
mqnic-y += mqnic_cq.o
|
|
|
|
mqnic-y += mqnic_eq.o
|
|
|
|
mqnic-y += mqnic_ethtool.o
|
2019-07-17 18:13:51 -07:00
|
|
|
|
2021-10-12 19:17:25 +02:00
|
|
|
else
|
|
|
|
|
|
|
|
ifneq ($(KERNEL_SRC),)
|
|
|
|
# alternatively to variable KDIR accept variable KERNEL_SRC as used in
|
|
|
|
# PetaLinux/Yocto for example
|
|
|
|
KDIR ?= $(KERNEL_SRC)
|
|
|
|
endif
|
|
|
|
|
|
|
|
KDIR ?= /lib/modules/$(shell uname -r)/build
|
|
|
|
|
2022-04-18 22:55:07 -07:00
|
|
|
all: modules
|
2021-10-12 19:17:25 +02:00
|
|
|
|
|
|
|
help modules modules_install clean:
|
|
|
|
$(MAKE) -C $(KDIR) M=$(shell pwd) $@
|
2019-07-17 18:13:51 -07:00
|
|
|
|
2021-10-12 19:17:25 +02:00
|
|
|
install: modules_install
|
2019-07-17 18:13:51 -07:00
|
|
|
|
2021-10-12 19:17:25 +02:00
|
|
|
endif
|