summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-09-18 16:49:15 +0000
committersam <sam@FreeBSD.org>2006-09-18 16:49:15 +0000
commit549b4f07f6e6061bc4be78514856c8674a535fe1 (patch)
treeab29e5d484329e2eabf03f2f8612080360547c98 /sys/modules
parent3839b5384ddf1f9b95604f79429c842af6ee2a54 (diff)
downloadFreeBSD-src-549b4f07f6e6061bc4be78514856c8674a535fe1.zip
FreeBSD-src-549b4f07f6e6061bc4be78514856c8674a535fe1.tar.gz
o move ath hal os glue code from the hal to the driver: this code was
part of the hal distribution early on when the hal was built for each os but it's been portable for a long time so move the os-specific code out (and off the vendor branch) o correct the copyright on ah_osdep.?; it was mistakenly given a restricted license and not a dual-bsd/gpl license o remove the module api definition as it was never used o fixup include paths for move of ah_osdep.h MFC after: 2 weeks
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/ath/Makefile2
-rw-r--r--sys/modules/ath_hal/Makefile16
-rw-r--r--sys/modules/ath_rate_onoe/Makefile2
-rw-r--r--sys/modules/ath_rate_sample/Makefile2
4 files changed, 8 insertions, 14 deletions
diff --git a/sys/modules/ath/Makefile b/sys/modules/ath/Makefile
index 9b6f3da..fdc0150 100644
--- a/sys/modules/ath/Makefile
+++ b/sys/modules/ath/Makefile
@@ -43,7 +43,7 @@ SRCS= if_ath.c if_ath_pci.c
SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h
HAL= ${.CURDIR}/../../contrib/dev/ath
-CFLAGS+= -I. -I${HAL}/freebsd -I${HAL}
+CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
opt_ath.h:
echo > $@
diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile
index 7324171..42837fc 100644
--- a/sys/modules/ath_hal/Makefile
+++ b/sys/modules/ath_hal/Makefile
@@ -44,18 +44,17 @@
# maintenance and isolate the bits that are not (currently) distributed
# in source form.
#
-HAL= ${.CURDIR}/../../contrib/dev/ath
+HAL?= ${.CURDIR}/../../contrib/dev/ath
-.PATH: ${HAL}/freebsd
+.PATH: ${.CURDIR}/../../dev/ath
KMOD= ath_hal
SRCS= ah_osdep.c
-SRCS+= bus_if.h device_if.h pci_if.h ah_if.h opt_ah.h
+SRCS+= bus_if.h device_if.h pci_if.h opt_ah.h
OBJS= hal.o
-MFILES= kern/bus_if.m kern/device_if.m dev/pci/pci_if.m \
- contrib/dev/ath/freebsd/ah_if.m
+MFILES= kern/bus_if.m kern/device_if.m dev/pci/pci_if.m
-CFLAGS+= -I. -I${HAL}/freebsd -I${HAL}
+CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
# patch for hal naming difference
.if ${MACHINE_ARCH} == "amd64"
@@ -68,14 +67,9 @@ ATH_MODULE_ARCH=powerpc-be
ATH_MODULE_ARCH=${MACHINE_ARCH}
.endif
-.if defined(HAL_SRC)
-.include "${HAL}/freebsd/Makefile.inc"
-.else
-
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>
diff --git a/sys/modules/ath_rate_onoe/Makefile b/sys/modules/ath_rate_onoe/Makefile
index b7a6732..bec7967 100644
--- a/sys/modules/ath_rate_onoe/Makefile
+++ b/sys/modules/ath_rate_onoe/Makefile
@@ -43,6 +43,6 @@ SRCS= onoe.c
SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h
HAL= ${.CURDIR}/../../contrib/dev/ath
-CFLAGS+= -I. -I${HAL}/freebsd -I${HAL}
+CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
.include <bsd.kmod.mk>
diff --git a/sys/modules/ath_rate_sample/Makefile b/sys/modules/ath_rate_sample/Makefile
index 51c3130..e7b8812 100644
--- a/sys/modules/ath_rate_sample/Makefile
+++ b/sys/modules/ath_rate_sample/Makefile
@@ -43,6 +43,6 @@ SRCS= sample.c
SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h
HAL= ${.CURDIR}/../../contrib/dev/ath
-CFLAGS+= -I. -I${HAL}/freebsd -I${HAL}
+CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${HAL}
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud