1 2# Common information shared by all submodule builds. 3 4COMMONDIR= ${SRCTOP}/sys/contrib/dev/mediatek/mt76 5 6.PATH: ${COMMONDIR} 7 8WITH_CONFIG_PM= 0 9WITH_DEBUGFS= 0 10 11# Other 12SRCS+= ${LINUXKPI_GENSRCS} 13SRCS+= opt_wlan.h opt_inet6.h opt_inet.h 14 15# Helpful after fresh imports. 16#CFLAGS+= -ferror-limit=0 17 18.if defined(WITH_CONFIG_PM) && ${WITH_CONFIG_PM} > 0 19CFLAGS+= -DCONFIG_PM=${WITH_CONFIG_PM} 20.endif 21 22.if defined(WITH_DEBUGFS) && ${WITH_DEBUGFS} > 0 23CFLAGS+= -DCONFIG_MAC80211_DEBUGFS=${WITH_DEBUGFS} 24.endif 25 26CFLAGS+= -I${COMMONDIR} 27CFLAGS+= ${LINUXKPI_INCLUDES} 28 29# end 30