From: Christian Lamparter Date: Wed, 3 Jun 2026 20:07:04 +0000 (+0200) Subject: kernel/modules: set CONFIG_UML_SOUND for UML if kmod-sound-core is selected X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e9b52f7571270769ab2e9919c01df170c267569;p=thirdparty%2Fopenwrt.git kernel/modules: set CONFIG_UML_SOUND for UML if kmod-sound-core is selected This was changed in upstream linux kernel with: |commit db4bfcba7bb8 um: Fix hostaudio build errors |Author: Randy Dunlap |Date: Tue Aug 1 22:15:00 2023 -0700 | | um: Fix hostaudio build errors | | Use "select" to ensure that the required kconfig symbols are set | as expected. | Drop HOSTAUDIO since it is now equivalent to UML_SOUND. | | Set CONFIG_SOUND=m in ARCH=um defconfig files to maintain the | status quo of the default configs. | | Allow SOUND with UML regardless of HAS_IOMEM. Otherwise there is a | kconfig warning for unmet dependencies. (This was not an issue when | SOUND was defined in arch/um/drivers/Kconfig. I have done 50 randconfig | builds and didn't find any issues.) | [...] The reason why this was not spotted is because of IOMEM. We would need to have a device that requires IOMEM first and the obvious choice would be VFIO_PCI. But none of the pci features are set for the UML target. Signed-off-by: Christian Lamparter --- diff --git a/package/kernel/linux/modules/sound.mk b/package/kernel/linux/modules/sound.mk index 43f1fd059a9..c5b15a73692 100644 --- a/package/kernel/linux/modules/sound.mk +++ b/package/kernel/linux/modules/sound.mk @@ -64,6 +64,7 @@ define KernelPackage/sound-core endef define KernelPackage/sound-core/uml + KCONFIG:=CONFIG_UML_SOUND FILES:= \ $(LINUX_DIR)/sound/soundcore.ko \ $(LINUX_DIR)/arch/um/drivers/hostaudio.ko