From 6e0da4f753ed6b5d26395001a6194b4fdea70177 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Tue, 18 Jan 2005 03:28:08 +0000 Subject: [PATCH] Fix building for non-i386 platforms. Submitted by: Coleman Kane --- sys/modules/ath_hal/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile index ac45d354dce3..1507d139b94a 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