]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel/modules: set CONFIG_UML_SOUND for UML if kmod-sound-core is selected
authorChristian Lamparter <chunkeey@gmail.com>
Wed, 3 Jun 2026 20:07:04 +0000 (22:07 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 1 Aug 2026 15:27:20 +0000 (17:27 +0200)
This was changed in upstream linux kernel with:

|commit db4bfcba7bb8 um: Fix hostaudio build errors
|Author: Randy Dunlap <rdunlap@infradead.org>
|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 <chunkeey@gmail.com>
package/kernel/linux/modules/sound.mk

index 43f1fd059a937dde49b21d7ee3a1dca0a24109cd..c5b15a7369243f5382e97413a6249109e2e0c2fd 100644 (file)
@@ -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