diff --git a/Makefile b/Makefile index c190dc59c81f50260deced1b89a9a108e6b1bd8c..274f15818800e7481679920545671a77f81a41b5 100644 --- a/Makefile +++ b/Makefile @@ -35,11 +35,12 @@ $(GLUON_SITEDIR)/site.mk: include $(GLUON_SITEDIR)/site.mk +GLUON_WLAN_MESH ?= 11s GLUON_RELEASE ?= $(error GLUON_RELEASE not set. GLUON_RELEASE can be set in site.mk or on the command line) -export GLUON_RELEASE GLUON_ATH10K_MESH GLUON_REGION GLUON_DEBUG +export GLUON_RELEASE GLUON_WLAN_MESH GLUON_REGION GLUON_DEBUG show-release: @echo '$(GLUON_RELEASE)' diff --git a/docs/index.rst b/docs/index.rst index d9aea8891ea5fc3bed1da48f2a7358cfa442b78e..be715325c82cf12025cc4e383bec0543b761b634 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -210,7 +210,7 @@ ar71xx-generic - My Net N750 .. [#ath10k] - Device uses the ath10k WLAN driver; no image is built unless GLUON_ATH10K_MESH + Device uses the ath10k WLAN driver; images are built for 11s by default unless GLUON_WLAN_MESH is set as described in :ref:`getting-started-make-variables` ar71xx-nand diff --git a/docs/user/getting_started.rst b/docs/user/getting_started.rst index 7a97feab7e3b7f587b90b2dfb81d082e67416eb0..fa408f2deb7c79d66eb8eb91ee6d1f0775c6477a 100644 --- a/docs/user/getting_started.rst +++ b/docs/user/getting_started.rst @@ -155,13 +155,14 @@ usually be set on the command line or in ``site.mk``. Common variables ................ -GLUON_ATH10K_MESH - While Gluon does support some hardware with ath10k-based 5GHz WLAN, these WLAN adapters don't work - well for meshing at the moment, so building images for these models is disabled by default. In addition, - ath10k can't support IBSS and 11s meshing in the same image due to WLAN firmware restrictions. - - Setting GLUON_ATH10K_MESH to ``11s`` or ``ibss`` will enable generation of images for ath10k devices - and install the firmware for the corresponding WLAN mode. +GLUON_WLAN_MESH + While Gluon does support some hardware with ath10k-based 5GHz WLAN. ath10k can't support IBSS and 11s + meshing in the same image due to WLAN firmware restrictions. + + Setting GLUON_MESH_MESH to ``11s`` or ``ibss`` will enable generation of images for ath10k devices + and install the firmware for the corresponding WLAN mode. Specifically setting to ``11s`` will also + enable the generation of images for targets that are able to run only AP+11s but not AP+IBSS, like + ralink or mediatek. Defaults to ``11s``. GLUON_BRANCH Sets the default branch of the autoupdater. If unset, the autoupdater is disabled diff --git a/targets/ar71xx-generic b/targets/ar71xx-generic index 95564ca4138af99bf56469a0e5da7bfb049acb8b..e11e9f030cbfbd383fa25e60d2bf3f1de6606a8e 100644 --- a/targets/ar71xx-generic +++ b/targets/ar71xx-generic @@ -1,10 +1,10 @@ ATH10K_PACKAGES= ATH10K_PACKAGES_QCA9887= -if [ "$GLUON_ATH10K_MESH" = '11s' ]; then +if [ "$GLUON_WLAN_MESH" = '11s' ]; then ATH10K_PACKAGES='-kmod-ath10k kmod-ath10k-ct' fi -if [ "$GLUON_ATH10K_MESH" = 'ibss' ]; then +if [ "$GLUON_WLAN_MESH" = 'ibss' ]; then ATH10K_PACKAGES='-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca988x ath10k-firmware-qca988x-ct' ATH10K_PACKAGES_QCA9887='-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca9887 ath10k-firmware-qca9887-ct' fi diff --git a/targets/ipq806x b/targets/ipq806x index c9438302bbb2e67c7b1996ac6cce04d6a049ccdc..f4c0fc98c851b81e4c2246188530d16c7c74719d 100644 --- a/targets/ipq806x +++ b/targets/ipq806x @@ -1,9 +1,9 @@ ATH10K_PACKAGES= -if [ "$GLUON_ATH10K_MESH" = '11s' ]; then +if [ "$GLUON_WLAN_MESH" = '11s' ]; then ATH10K_PACKAGES='-kmod-ath10k kmod-ath10k-ct' fi -if [ "$GLUON_ATH10K_MESH" = 'ibss' ]; then +if [ "$GLUON_WLAN_MESH" = 'ibss' ]; then ATH10K_PACKAGES='-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca99x0 ath10k-firmware-qca99x0-ct' fi diff --git a/targets/targets.mk b/targets/targets.mk index 8ee42147b16e1e3f3b4eb49d185fa4d66b4cc993..cefd616a181e6264d68437e0b10c1ace813a6757 100644 --- a/targets/targets.mk +++ b/targets/targets.mk @@ -1,3 +1,5 @@ +GLUON_WLAN_MESH_11s := $(filter 11s,$(GLUON_WLAN_MESH)) + $(eval $(call GluonTarget,ar71xx,generic)) $(eval $(call GluonTarget,ar71xx,tiny,generic)) $(eval $(call GluonTarget,ar71xx,nand)) @@ -9,13 +11,16 @@ $(eval $(call GluonTarget,x86,generic)) $(eval $(call GluonTarget,x86,geode)) $(eval $(call GluonTarget,x86,64)) +ifneq ($(GLUON_WLAN_MESH_11s)$(BROKEN),) +$(eval $(call GluonTarget,ramips,mt7620)) +$(eval $(call GluonTarget,ramips,mt7628)) +$(eval $(call GluonTarget,ramips,rt305x)) +endif + ifneq ($(BROKEN),) $(eval $(call GluonTarget,ar71xx,mikrotik)) # BROKEN: no sysupgrade support $(eval $(call GluonTarget,brcm2708,bcm2710)) # BROKEN: Untested $(eval $(call GluonTarget,ipq806x)) # BROKEN: Untested $(eval $(call GluonTarget,mvebu)) # BROKEN: No AP+IBSS or 11s support -$(eval $(call GluonTarget,ramips,mt7620)) # BROKEN: No AP+IBSS support -$(eval $(call GluonTarget,ramips,mt7628)) # BROKEN: No AP+IBSS support -$(eval $(call GluonTarget,ramips,rt305x)) # BROKEN: No AP+IBSS support $(eval $(call GluonTarget,sunxi)) # BROKEN: Untested endif