diff options
author | sam <sam@FreeBSD.org> | 2007-06-29 19:52:31 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-06-29 19:52:31 +0000 |
commit | 9e5fd9e9ffd77638128ad48583a2cfa707b5d2f6 (patch) | |
tree | ed37550af8e35c3f690aa410ab39a91252d0c4a4 /sys/modules | |
parent | 51f099c2d225c2ecb1313150513100fdb9d302ca (diff) | |
download | FreeBSD-src-9e5fd9e9ffd77638128ad48583a2cfa707b5d2f6.zip FreeBSD-src-9e5fd9e9ffd77638128ad48583a2cfa707b5d2f6.tar.gz |
import opt_ah.h for newer hal's that optionally include 11n support
Approved by: re (kensmith)
MFC after: 2 weeks
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/ath_rate_amrr/Makefile | 16 | ||||
-rw-r--r-- | sys/modules/ath_rate_onoe/Makefile | 16 |
2 files changed, 30 insertions, 2 deletions
diff --git a/sys/modules/ath_rate_amrr/Makefile b/sys/modules/ath_rate_amrr/Makefile index 41b78c8..5523815 100644 --- a/sys/modules/ath_rate_amrr/Makefile +++ b/sys/modules/ath_rate_amrr/Makefile @@ -40,9 +40,23 @@ KMOD= ath_rate SRCS= amrr.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> diff --git a/sys/modules/ath_rate_onoe/Makefile b/sys/modules/ath_rate_onoe/Makefile index bec7967..c111e26 100644 --- a/sys/modules/ath_rate_onoe/Makefile +++ b/sys/modules/ath_rate_onoe/Makefile @@ -40,9 +40,23 @@ KMOD= ath_rate SRCS= onoe.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> |