1# $NetBSD: Makefile,v 1.7 2023/06/03 21:30:23 lukem Exp $ 2 3.include "../Makefile.inc" 4 5.PATH: ${S}/external/isc/atheros_hal/dist 6.PATH: ${S}/external/isc/atheros_hal/dist/ar5210 7.PATH: ${S}/external/isc/atheros_hal/dist/ar5211 8.PATH: ${S}/external/isc/atheros_hal/dist/ar5212 9.PATH: ${S}/external/isc/atheros_hal/dist/ar5312 10.PATH: ${S}/external/isc/atheros_hal/dist/ar5312 11.PATH: ${S}/external/isc/atheros_hal/dist/ar5416 12.PATH: ${S}/external/isc/atheros_hal/ic 13 14KMOD= ath_hal 15 16SRCS= ah.c \ 17 ah_eeprom_v1.c \ 18 ah_eeprom_v3.c \ 19 ah_eeprom_v14.c \ 20 ah_eeprom_v4k.c \ 21 ah_regdomain.c 22SRCS+= ah_osdep.c 23SRCS+= ar5210_attach.c \ 24 ar5210_beacon.c \ 25 ar5210_interrupts.c \ 26 ar5210_keycache.c \ 27 ar5210_misc.c \ 28 ar5210_phy.c \ 29 ar5210_power.c \ 30 ar5210_recv.c \ 31 ar5210_reset.c \ 32 ar5210_xmit.c 33SRCS+= ar5211_attach.c \ 34 ar5211_beacon.c \ 35 ar5211_interrupts.c \ 36 ar5211_keycache.c \ 37 ar5211_misc.c \ 38 ar5211_phy.c \ 39 ar5211_power.c \ 40 ar5211_recv.c \ 41 ar5211_reset.c \ 42 ar5211_xmit.c 43SRCS+= ar2316.c \ 44 ar2317.c \ 45 ar2413.c \ 46 ar2425.c \ 47 ar5111.c \ 48 ar5112.c \ 49 ar5413.c 50SRCS+= ar5212_ani.c \ 51 ar5212_attach.c \ 52 ar5212_beacon.c \ 53 ar5212_eeprom.c \ 54 ar5212_gpio.c \ 55 ar5212_interrupts.c \ 56 ar5212_keycache.c \ 57 ar5212_misc.c \ 58 ar5212_phy.c \ 59 ar5212_power.c \ 60 ar5212_recv.c \ 61 ar5212_reset.c \ 62 ar5212_rfgain.c \ 63 ar5212_xmit.c 64SRCS+= ar5312_attach.c \ 65 ar5312_eeprom.c \ 66 ar5312_gpio.c \ 67 ar5312_interrupts.c \ 68 ar5312_misc.c \ 69 ar5312_power.c \ 70 ar5312_reset.c \ 71 ar5315_gpio.c 72SRCS+= ar2133.c \ 73 ar5416_ani.c \ 74 ar5416_attach.c \ 75 ar5416_beacon.c \ 76 ar5416_cal.c \ 77 ar5416_cal_adcdc.c \ 78 ar5416_cal_adcgain.c \ 79 ar5416_cal_iq.c \ 80 ar5416_eeprom.c \ 81 ar5416_gpio.c \ 82 ar5416_interrupts.c \ 83 ar5416_keycache.c \ 84 ar5416_misc.c \ 85 ar5416_phy.c \ 86 ar5416_power.c \ 87 ar5416_recv.c \ 88 ar5416_reset.c \ 89 ar5416_xmit.c \ 90 ar9160_attach.c \ 91 ar9280.c \ 92 ar9280_attach.c \ 93 ar9285.c \ 94 ar9285_attach.c \ 95 ar9285_reset.c 96 97.include "Makefile.inc" 98 99COPTS.ar5212_xmit.c+= ${CC_WNO_IMPLICIT_FALLTHROUGH} 100COPTS.ar5416_xmit.c+= ${CC_WNO_IMPLICIT_FALLTHROUGH} 101 102.include <bsd.kmodule.mk> 103KMODSCRIPT= ${S}/modules/ath_hal/ath_hal.ldscript 104