]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: mikrotik: compile SWCONFIG and AR8216_PHY as modules
authorChester A. Unal <chester.a.unal@arinc9.com>
Tue, 24 Feb 2026 13:39:36 +0000 (15:39 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 23 Apr 2026 13:10:39 +0000 (14:10 +0100)
Unset the SWCONFIG symbol and AR8216_PHY which selects SWCONFIG. Add
kmod-switch-ar8xxx, which enables AR8216_PHY, to DEFAULT_PACKAGES for the
subtarget. With this, swconfig driver will be now compiled as a module, as
kmod-switch-ar8xxx selects kmod-swconfig.

Refresh the config-default file for ath79/mikrotik while at it.

This change makes it possible to disable the swconfig driver for MikroTik
RouterBOARD 960PGS (hEX PoE/PowerBox Pro).

Signed-off-by: Chester A. Unal <chester.a.unal@arinc9.com>
target/linux/ath79/mikrotik/config-default
target/linux/ath79/mikrotik/target.mk

index 8ba467c92a9bd9c7c5a758db4003afb783efcf8f..f0e094c3cc332a150fdc3c67179a602095c253f3 100644 (file)
@@ -1,3 +1,4 @@
+# CONFIG_AR8216_PHY is not set
 CONFIG_CRC16=y
 CONFIG_CRYPTO_DEFLATE=y
 CONFIG_CRYPTO_HASH_INFO=y
@@ -38,6 +39,7 @@ CONFIG_NET_DSA=y
 CONFIG_PHYLINK=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_SPI_RB4XX=y
+# CONFIG_SWCONFIG is not set
 CONFIG_UBIFS_FS=y
 CONFIG_WATCHDOG_CORE=y
 CONFIG_XXHASH=y
index a3c876d7a79e234531dbf78836f0ad824642c39a..ddc375976c3ae89b7bb6a847b03321eddfc73b59 100644 (file)
@@ -3,7 +3,7 @@ FEATURES += minor nand
 KERNELNAME := vmlinux vmlinuz
 IMAGES_DIR := ../../..
 
-DEFAULT_PACKAGES += wpad-basic-mbedtls yafut
+DEFAULT_PACKAGES += wpad-basic-mbedtls yafut kmod-switch-ar8xxx
 
 define Target/Description
        Build firmware images for MikroTik devices based on Qualcomm Atheros