diff options
author | sam <sam@FreeBSD.org> | 2005-01-18 03:28:08 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-01-18 03:28:08 +0000 |
commit | d3c8b51a57acddc43e12ca5b061405ba5bee3247 (patch) | |
tree | 812ce4019dcefc56933b6278859be4e7d3ddc495 /sys/modules/ath_hal/Makefile | |
parent | 2f3725fd68f9439e756d16b14d74b972b48a5d70 (diff) | |
download | FreeBSD-src-d3c8b51a57acddc43e12ca5b061405ba5bee3247.zip FreeBSD-src-d3c8b51a57acddc43e12ca5b061405ba5bee3247.tar.gz |
Fix building for non-i386 platforms.
Submitted by: Coleman Kane
Diffstat (limited to 'sys/modules/ath_hal/Makefile')
-rw-r--r-- | sys/modules/ath_hal/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile index ac45d35..1507d13 100644 --- a/sys/modules/ath_hal/Makefile +++ b/sys/modules/ath_hal/Makefile @@ -57,14 +57,17 @@ MFILES= kern/bus_if.m kern/device_if.m dev/pci/pci_if.m \ CFLAGS+= -I. -I${HAL}/freebsd -I${HAL} +# patch for hal naming difference +ATH_MODULE_ARCH=${MACHINE_ARCH:S/amd64/x86_64/} + .if defined(HAL_SRC) .include "${HAL}/freebsd/Makefile.inc" .else -hal.o: ${HAL}/public/i386-elf.hal.o.uu - uudecode -p < ${HAL}/public/i386-elf.hal.o.uu > ${.TARGET} -opt_ah.h: ${HAL}/public/i386-elf.opt_ah.h - cp ${HAL}/public/i386-elf.opt_ah.h ${.TARGET} +hal.o: ${HAL}/public/${ATH_MODULE_ARCH}-elf.hal.o.uu + uudecode -p < ${HAL}/public/${ATH_MODULE_ARCH}-elf.hal.o.uu > ${.TARGET} +opt_ah.h: ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h + cp ${HAL}/public/${ATH_MODULE_ARCH}-elf.opt_ah.h ${.TARGET} .endif .include <bsd.kmod.mk> |