From 9091c9f8cbd9da4fe47477f45668c6a11b24c16d Mon Sep 17 00:00:00 2001 From: "Chester A. Unal" Date: Tue, 24 Feb 2026 15:39:36 +0200 Subject: [PATCH] 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 --- target/linux/ath79/mikrotik/config-default | 2 ++ target/linux/ath79/mikrotik/target.mk | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/linux/ath79/mikrotik/config-default b/target/linux/ath79/mikrotik/config-default index 8ba467c92a9..f0e094c3cc3 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 @@ -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 diff --git a/target/linux/ath79/mikrotik/target.mk b/target/linux/ath79/mikrotik/target.mk index a3c876d7a79..ddc375976c3 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