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
This commit is contained in:
parent
bc14459ba8
commit
9c05116297
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166299
@ -40,7 +40,7 @@
|
||||
|
||||
KMOD= if_ath
|
||||
SRCS= if_ath.c if_ath_pci.c
|
||||
SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h
|
||||
SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h
|
||||
|
||||
HAL= ${.CURDIR}/../../contrib/dev/ath
|
||||
CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
|
||||
@ -48,4 +48,18 @@ CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
|
||||
opt_ath.h:
|
||||
echo > $@
|
||||
|
||||
# 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