Import common ISC-licensed athk parts assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. The only modification should be for FreeBSD module handling in main.c. Add the module build framework unconnected to the build for now. These files will be shared by ath1?k drivers. MFC after: 2 months
38 lines
711 B
Makefile
38 lines
711 B
Makefile
# $FreeBSD$
|
|
|
|
DEVDIR= ${SRCTOP}/sys/contrib/dev/athk
|
|
|
|
.PATH: ${DEVDIR}
|
|
|
|
KMOD= athk_common
|
|
|
|
WITH_ATH_DEBUG= 1
|
|
WITH_ATH_TRACEPOINTS= 0
|
|
|
|
SRCS= main.c
|
|
SRCS+= dfs_pattern_detector.c dfs_pri_detector.c
|
|
SRCS+= hw.c key.c regd.c
|
|
|
|
.if defined(WITH_ATH_DEBUG) && ${WITH_ATH_DEBUG} > 0
|
|
SRCS+= debug.c
|
|
CFLAGS+= -DCONFIG_ATH_DEBUG
|
|
.endif
|
|
|
|
.if defined(WITH_ATH_TRACEPOINTS) && ${WITH_ATH_TRACEPOINTS} > 0
|
|
SRCS+= trace.c
|
|
CFLAGS+= -DCONFIG_ATH_TRACEPOINTS
|
|
.endif
|
|
|
|
# Other
|
|
SRCS+= ${LINUXKPI_GENSRCS}
|
|
SRCS+= opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
|
|
|
|
CFLAGS+= -DKBUILD_MODNAME='"athk_common"'
|
|
|
|
CFLAGS+= -I${DEVDIR}
|
|
CFLAGS+= ${LINUXKPI_INCLUDES}
|
|
# Helpful after fresh imports.
|
|
#CFLAGS+= -ferror-limit=0
|
|
|
|
.include <bsd.kmod.mk>
|