summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChester A. Unal2026-02-24 13:39:36 +0000
committerDaniel Golle2026-05-07 22:23:19 +0000
commit906a8d7f70d6908dbc5fbc429e5f5fcf3efb92d6 (patch)
tree746cf921118601c3c925415d376d0fd511a65912
parent9e7421174c384a526f562c15c3fa2115f8c1e8bc (diff)
downloadopenwrt-906a8d7f70d6908dbc5fbc429e5f5fcf3efb92d6.tar.gz
ath79: mikrotik: compile SWCONFIG and AR8216_PHY as modules
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> (cherry picked from commit 9091c9f8cbd9da4fe47477f45668c6a11b24c16d)
-rw-r--r--target/linux/ath79/mikrotik/config-default2
-rw-r--r--target/linux/ath79/mikrotik/target.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ath79/mikrotik/config-default b/target/linux/ath79/mikrotik/config-default
index 991ab7a3ac..d975536bbf 100644
--- a/target/linux/ath79/mikrotik/config-default
+++ b/target/linux/ath79/mikrotik/config-default
@@ -1,3 +1,4 @@
+# CONFIG_AR8216_PHY is not set
CONFIG_CRC16=y
CONFIG_CRYPTO_DEFLATE=y
CONFIG_CRYPTO_HASH_INFO=y
@@ -40,6 +41,7 @@ CONFIG_PHYLINK=y
CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_SGL_ALLOC=y
CONFIG_SPI_RB4XX=y
+# CONFIG_SWCONFIG is not set
CONFIG_UBIFS_FS=y
CONFIG_WATCHDOG_CORE=y
CONFIG_XXHASH=y
diff --git a/target/linux/ath79/mikrotik/target.mk b/target/linux/ath79/mikrotik/target.mk
index a3c876d7a7..ddc375976c 100644
--- a/target/linux/ath79/mikrotik/target.mk
+++ b/target/linux/ath79/mikrotik/target.mk
@@ -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