# HG changeset patch # Parent f9b8e69652e2d22ab0d1073c7985368736044bf5 Quick hack to export config(8) options. diff -r f9b8e69652e2 sys/modules/ath/Makefile --- a/sys/modules/ath/Makefile +++ b/sys/modules/ath/Makefile @@ -34,6 +34,8 @@ ATH_RATE?= sample # tx rate control alg .PATH: ${.CURDIR}/../../dev/ath .PATH: ${.CURDIR}/../../dev/ath/ath_hal +.sinclude ".depend" + KMOD= if_ath SRCS= if_ath.c if_ath_alq.c if_ath_debug.c if_ath_keycache.c if_ath_sysctl.c SRCS+= if_ath_tx.c if_ath_tx_ht.c if_ath_led.c if_ath_rx.c if_ath_tdma.c @@ -43,14 +45,22 @@ SRCS+= if_ath_btcoex.c if_ath_lna_div.c SRCS+= ah_osdep.c ah.c ah_regdomain.c ah_eeprom_v3.c SRCS+= device_if.h bus_if.h pci_if.h opt_inet.h opt_ath.h opt_ah.h opt_wlan.h +opt_ath.h: + echo "#define DEV_ATH_HAL 1" > opt_ath.h + +_EXTRADEPEND: opt_ath.h + sed -e "s/^#define.//;s/ /=/" < opt_ath.h >> .depend + # # AR5210 support; these are first generation 11a-only devices. # +.if defined(DEV_ATH_HAL) || defined(DEV_ATH_AR5210) .PATH: ${.CURDIR}/../../dev/ath/ath_hal/ar5210 SRCS+= ah_eeprom_v1.c \ ar5210_attach.c ar5210_beacon.c ar5210_interrupts.c \ ar5210_keycache.c ar5210_misc.c ar5210_phy.c ar5210_power.c \ ar5210_recv.c ar5210_reset.c ar5210_xmit.c +.endif # # AR5211 support; these are second generation 11b/g/a devices