1# Common information shared by all submodule builds. 2 3COMMONDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76 4DEVDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76/${MT76_DRIVER_NAME} 5 6KMOD?= if_${MT76_DRIVER_NAME} 7 8# Bus attachment for the core part and that each driver can check 9# what the common code supports. 10MT76_PCI= 1 11MT76_SDIO= 0 12MT76_USB= 0 13 14# General options for common code so drivers can check. 15MT76_ACPI?= 0 16MT76_CONFIG_PM?= 0 17MT76_DEBUGFS?= 0 18MT76_SOC_WED?= 0 19 20# Other 21SRCS+= ${LINUXKPI_GENSRCS} 22SRCS+= opt_wlan.h opt_inet6.h opt_inet.h 23 24# This is true for all architectures we build for. 25CFLAGS+= -DCONFIG_ARCH_DMA_ADDR_T_64BIT 26 27.if defined(MT76_CONFIG_PM) && ${MT76_CONFIG_PM} > 0 28CFLAGS+= -DCONFIG_PM 29.endif 30 31.if defined(MT76_DEBUGFS) && ${MT76_DEBUGFS} > 0 32CFLAGS+= -DCONFIG_MAC80211_DEBUGFS 33.endif 34 35.if defined(MT76_SOC_WED) && ${MT76_SOC_WED} > 0 36CFLAGS+= -DCONFIG_NET_MEDIATEK_SOC_WED 37.endif 38 39CFLAGS+= -I${COMMONDIR} 40.if ${MT76_DRIVER_NAME} != "mt76_core" 41CFLAGS+= -I${DEVDIR} 42.endif 43CFLAGS+= ${LINUXKPI_INCLUDES} 44# Helpful after fresh imports. 45#CFLAGS+= -ferror-limit=0 46 47CFLAGS+= -DKBUILD_MODNAME='"${MT76_DRIVER_NAME}"' 48CFLAGS+= -DLINUXKPI_VERSION=61900 49 50