diff options
author | sam <sam@FreeBSD.org> | 2007-01-28 04:38:35 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-01-28 04:38:35 +0000 |
commit | 7112c0ba6639878cd002b2eefaeb6d6d5dacd395 (patch) | |
tree | 91cede17b3c65357f710b36a391a62026e0202aa | |
parent | 663b4cdc59b01f1c606a29b9d0b2afabbef2481b (diff) | |
download | FreeBSD-src-7112c0ba6639878cd002b2eefaeb6d6d5dacd395.zip FreeBSD-src-7112c0ba6639878cd002b2eefaeb6d6d5dacd395.tar.gz |
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
-rw-r--r-- | sys/modules/ath/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/modules/ath/Makefile b/sys/modules/ath/Makefile index fdc0150..678e6a5 100644 --- a/sys/modules/ath/Makefile +++ b/sys/modules/ath/Makefile @@ -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> |