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