mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
iwlwifi/rtw89: improve module Makefile dependency on ACPI
In order to compile iwlwifi(4) and rtw89(4) on RISC-V [1] make the currently manually tracked ACPI support option automatic based on DEV_ACPI. rtw89(4) is missing proper CONFIG_ACPI checks in the driver (or the mandatory dependency on ACPI) even upstream it seems. We just added that check to the modules/Makefile until this is fixed. [1] https://mail-archive.freebsd.org/cgi/getmsg.cgi?fetch=5947+0+archive/2026/freebsd-wireless/20260112.freebsd-wireless Sponosred by: The FreeBSD Foundation MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D54694
This commit is contained in:
parent
4162a419a4
commit
f5a77dc8f8
2 changed files with 16 additions and 4 deletions
|
|
@ -4,7 +4,9 @@ DEVIWLWIFIDIR= ${SRCTOP}/sys/contrib/dev/iwlwifi
|
|||
|
||||
WITH_CONFIG_PM= 0
|
||||
WITH_DEBUGFS= 0
|
||||
.if ${KERN_OPTS:MDEV_ACPI}
|
||||
WITH_CONFIG_ACPI= 1
|
||||
.endif
|
||||
|
||||
KMOD= if_iwlwifi
|
||||
|
||||
|
|
@ -60,10 +62,11 @@ CFLAGS+= -DCONFIG_PM_SLEEP
|
|||
.endif
|
||||
|
||||
.if defined(WITH_CONFIG_ACPI) && ${WITH_CONFIG_ACPI} > 0
|
||||
SRCS+= fw/acpi.c
|
||||
SRCS.DEV_ACPI+= fw/acpi.c
|
||||
CFLAGS+= -DCONFIG_ACPI
|
||||
CFLAGS+= -DLINUXKPI_WANT_LINUX_ACPI
|
||||
.endif
|
||||
# This needs to always stay on for the LinuxKPI header file.
|
||||
CFLAGS+= -DLINUXKPI_WANT_LINUX_ACPI
|
||||
|
||||
# Other
|
||||
SRCS+= ${LINUXKPI_GENSRCS}
|
||||
|
|
|
|||
|
|
@ -4,13 +4,16 @@ DEVRTW89DIR= ${SRCTOP}/sys/contrib/dev/rtw89
|
|||
|
||||
WITH_CONFIG_PM= 0
|
||||
WITH_DEBUGFS= 0
|
||||
.if ${KERN_OPTS:MDEV_ACPI}
|
||||
WITH_CONFIG_ACPI= 1
|
||||
.endif
|
||||
|
||||
KMOD= if_rtw89
|
||||
|
||||
SRCS= core.c
|
||||
SRCS+= pci.c pci_be.c
|
||||
SRCS+= chan.c mac80211.c mac.c mac_be.c phy.c phy_be.c fw.c
|
||||
SRCS+= acpi.c cam.c efuse.c efuse_be.c regd.c sar.c coex.c ps.c ser.c
|
||||
SRCS+= cam.c efuse.c efuse_be.c regd.c sar.c coex.c ps.c ser.c
|
||||
SRCS+= util.c
|
||||
SRCS+= rtw8852a.c rtw8852a_rfk.c rtw8852a_rfk_table.c rtw8852a_table.c
|
||||
SRCS+= rtw8852ae.c
|
||||
|
|
@ -26,6 +29,13 @@ SRCS+= rtw8852bte.c
|
|||
SRCS+= rtw8922a.c rtw8922a_rfk.c
|
||||
SRCS+= rtw8922ae.c
|
||||
|
||||
.if defined(WITH_CONFIG_ACPI) && ${WITH_CONFIG_ACPI} > 0
|
||||
SRCS.DEV_ACPI+= acpi.c
|
||||
CFLAGS+= -DCONFIG_ACPI
|
||||
.endif
|
||||
# This needs to always stay on for the LinuxKPI header file.
|
||||
CFLAGS+= -DLINUXKPI_WANT_LINUX_ACPI
|
||||
|
||||
# USB parts
|
||||
#SRCS+= rtw8851bu.c rtw8852bu.c
|
||||
#SRCS+= usb.c
|
||||
|
|
@ -44,7 +54,6 @@ SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
|
|||
|
||||
CFLAGS+= -DKBUILD_MODNAME='"rtw89"'
|
||||
CFLAGS+= -DLINUXKPI_VERSION=61700
|
||||
CFLAGS+= -DLINUXKPI_WANT_LINUX_ACPI
|
||||
|
||||
CFLAGS+= -I${DEVRTW89DIR}
|
||||
CFLAGS+= ${LINUXKPI_INCLUDES}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue