aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2005-01-18 03:28:08 +0000
committerSam Leffler <sam@FreeBSD.org>2005-01-18 03:28:08 +0000
commit6e0da4f753ed6b5d26395001a6194b4fdea70177 (patch)
tree812ce4019dcefc56933b6278859be4e7d3ddc495 /sys/modules
parent40eee9fe09a19c4497276a423a2ea0a3e8ac3abb (diff)
downloadsrc-6e0da4f753ed6b5d26395001a6194b4fdea70177.tar.gz
src-6e0da4f753ed6b5d26395001a6194b4fdea70177.zip
Fix building for non-i386 platforms.
Submitted by: Coleman Kane
Notes
Notes: svn path=/head/; revision=140399
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/ath_hal/Makefile11
1 files 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 <bsd.kmod.mk>