mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
for newer hal's we need opt_ah.h as it specifies how the hal has been
configured and that in turn controls the descriptor layout; the rate control module has no business peeking inside the descriptor but until we can change the api so the driver records the tx rates and passes them deal with it
This commit is contained in:
parent
5430d30e44
commit
bc14459ba8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166298
@ -40,9 +40,23 @@
|
||||
|
||||
KMOD= ath_rate
|
||||
SRCS= sample.c
|
||||
SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h
|
||||
SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ah.h
|
||||
|
||||
HAL= ${.CURDIR}/../../contrib/dev/ath
|
||||
CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
|
||||
|
||||
# patch for hal naming difference
|
||||
.if ${MACHINE_ARCH} == "amd64"
|
||||
ATH_MODULE_ARCH=x86_64
|
||||
.elif ${MACHINE_ARCH} == "sparc64"
|
||||
ATH_MODULE_ARCH=sparc64-be
|
||||
.elif ${MACHINE_ARCH} == "powerpc"
|
||||
ATH_MODULE_ARCH=powerpc-be
|
||||
.else
|
||||
ATH_MODULE_ARCH=${MACHINE_ARCH}
|
||||
.endif
|
||||
|
||||
opt_ah.h: ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h
|
||||
cp ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h ${.TARGET}
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user