diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2007-01-28 04:36:05 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2007-01-28 04:36:05 +0000 |
| commit | bc14459ba88cf28c7b7473c3a92bea9114a6244b (patch) | |
| tree | c2cd46f389c8669b6d6830d6c5615421ab215767 | |
| parent | 5430d30e44ced93962e3f590a43eb4614b369752 (diff) | |
Notes
| -rw-r--r-- | sys/modules/ath_rate_sample/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/modules/ath_rate_sample/Makefile b/sys/modules/ath_rate_sample/Makefile index e7b8812a4ca5..fc91e2b8562e 100644 --- a/sys/modules/ath_rate_sample/Makefile +++ b/sys/modules/ath_rate_sample/Makefile @@ -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> |
