2015-01-17 11:36:39 -05:00
|
|
|
# $FreeBSD$
|
2017-03-04 05:10:17 -05:00
|
|
|
.PATH: ${SRCTOP}/sys/compat/linuxkpi/common/src
|
2015-01-17 11:36:39 -05:00
|
|
|
|
2015-10-22 05:50:45 -04:00
|
|
|
KMOD= linuxkpi
|
2017-06-26 17:14:33 -04:00
|
|
|
SRCS= linux_compat.c \
|
2017-02-21 07:43:02 -05:00
|
|
|
linux_current.c \
|
2021-01-28 11:32:43 -05:00
|
|
|
linux_devres.c \
|
2020-10-02 14:28:00 -04:00
|
|
|
linux_dmi.c \
|
2021-03-05 06:44:06 -05:00
|
|
|
linux_domain.c \
|
2021-01-28 11:05:32 -05:00
|
|
|
linux_firmware.c \
|
2021-07-31 09:32:52 -04:00
|
|
|
linux_fpu.c \
|
2017-06-26 12:28:46 -04:00
|
|
|
linux_hrtimer.c \
|
2017-06-26 17:14:33 -04:00
|
|
|
linux_idr.c \
|
2021-09-29 16:12:36 -04:00
|
|
|
linux_interrupt.c \
|
2021-11-04 05:42:37 -04:00
|
|
|
linux_i2c.c \
|
|
|
|
|
linux_i2cbb.c \
|
2017-06-26 17:14:33 -04:00
|
|
|
linux_kmod.c \
|
2017-02-21 07:43:02 -05:00
|
|
|
linux_kthread.c \
|
2017-03-09 13:33:40 -05:00
|
|
|
linux_lock.c \
|
2021-12-26 13:29:29 -05:00
|
|
|
linux_netdev.c \
|
2017-02-22 14:39:54 -05:00
|
|
|
linux_page.c \
|
2015-01-17 11:36:39 -05:00
|
|
|
linux_pci.c \
|
|
|
|
|
linux_radix.c \
|
2017-02-21 13:04:21 -05:00
|
|
|
linux_rcu.c \
|
2017-06-09 15:41:12 -04:00
|
|
|
linux_schedule.c \
|
2022-09-20 13:41:10 -04:00
|
|
|
linux_seq_file.c \
|
2020-02-21 04:28:45 -05:00
|
|
|
linux_shmemfs.c \
|
2020-12-22 13:15:01 -05:00
|
|
|
linux_shrinker.c \
|
2022-09-20 13:41:10 -04:00
|
|
|
linux_simple_attr.c \
|
2021-12-26 13:26:26 -05:00
|
|
|
linux_skbuff.c \
|
2017-03-08 06:09:27 -05:00
|
|
|
linux_slab.c \
|
2017-02-21 08:23:53 -05:00
|
|
|
linux_tasklet.c \
|
2017-03-07 07:09:14 -05:00
|
|
|
linux_usb.c \
|
2020-08-27 06:28:12 -04:00
|
|
|
linux_work.c \
|
|
|
|
|
linux_xarray.c
|
2015-01-17 11:36:39 -05:00
|
|
|
|
2020-11-09 08:20:14 -05:00
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
|
|
|
|
|
${MACHINE_CPUARCH} == "i386"
|
2021-07-31 09:32:52 -04:00
|
|
|
SRCS+= opt_acpi.h acpi_if.h linux_acpi.c
|
2020-11-09 08:20:14 -05:00
|
|
|
.endif
|
|
|
|
|
|
2021-05-01 12:01:22 -04:00
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
|
|
|
SRCS+= opt_apic.h
|
|
|
|
|
.endif
|
|
|
|
|
|
2022-03-10 16:31:23 -05:00
|
|
|
SRCS+= opt_ddb.h
|
2020-03-20 17:06:58 -04:00
|
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
2015-01-17 11:36:39 -05:00
|
|
|
|
2022-09-23 17:18:45 -04:00
|
|
|
CFLAGS+= ${LINUXKPI_INCLUDES}
|
2017-03-04 05:10:17 -05:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
|
2015-01-17 11:36:39 -05:00
|
|
|
|
2021-11-07 03:42:24 -05:00
|
|
|
EXPORT_SYMS= YES
|
|
|
|
|
|
2015-01-17 11:36:39 -05:00
|
|
|
.include <bsd.kmod.mk>
|