Adding new kernel module yields empty package?

Hi all,

I've been trying to add the CS5530 (CONFIG_SND_CS5530) kernel module to my build, so I can enable sound output on my machine.

I tried adding it as a selection in menuconfig, by adding

define KernelPackage/sound-cs5530
  TITLE:=CS5530 Audio Controller
  DEPENDS:=@TARGET_x86_geode +kmod-ac97
  KCONFIG:=CONFIG_SND_CS5530
  FILES:=$(LINUX_DIR)/sound/pci/snd-cs5530.ko
  AUTOLOAD:=$(call AutoLoad,36,snd-cs5530)
  $(call AddDepends/sound)
endef

define KernelPackage/sound-cs5530/description
 Support for the integrated AC97 sound device on motherboards
 with AMD CS5530 chipsets.
endef

$(eval $(call KernelPackage,sound-cs5530))

to target/linux/x86/modules.mk

This seems to work, the kernel module shows up in menuconfig, and I can select it.
But when I compile with "make V=s", I get the message:

Package kmod-sound-cs5530 is missing dependencies for the following libraries:
snd-sb-common.ko
snd-sb16-dsp.ko

So it seems it depends on the Soundblaster 16 kernel module.

I then tried to add the Soundblaster 16 to menuconfig by adding:

define KernelPackage/sound-soundblaster16
  TITLE:=Sound Blaster 16 (PnP)
  DEPENDS:=@TARGET_x86_geode
  KCONFIG:=CONFIG_SND_SB16
  FILES:=$(LINUX_DIR)/sound/isa/sb/snd-sb-common.ko
  AUTOLOAD:=$(call AutoLoad,31,snd-sb16)
  $(call AddDepends/sound)
endef

define KernelPackage/sound-soundblaster16/description
 Sound Blaster 16 kmod.
endef

$(eval $(call KernelPackage,sound-soundblaster16))

When I build openwrt with the CS5530 module and the Soundblaster16 module, I get the same error as above (missing dependencies).

When I try to build openwrt with only the Soundblaster module, it succeeds, but Soundblaster package is empty (usr/lib/opkg/info/kmod-sound-soundblaster16.list is empty)

Does anyone have any idea why my Soundblaster16 package is empty?
Or if there's a better way to implement the 2 kernel modules I need?

Thanks!

Make sure you make clean before you rebuild. You changed the kernel config, it needs to start over.

1 Like

Thanks for your reply

I tried

make clean && make

and I still dont have any files in the soundblaster package.

I even tried a new git clone, and adding only my new kernel modules, to no luck.

Sorry for reviving and old post but I am in a similar situation. Did you have any luck with this?

I am trying to add a kernel package for mux-gpio module and I used package/kernel/linux/modules/spi.mk as my template. For some reason that works and mine does not.

When I initiate 'make target/linux/compile' I can see that the following exist in the kernel .config but after a while they are wiped out.

CONFIG_MULTIPLEXER=y
CONFIG_MUX_GPIO=m

scripts/diffconfig.sh

CONFIG_TARGET_ath79=y
CONFIG_TARGET_ath79_generic=y
CONFIG_TARGET_ath79_generic_DEVICE_tplink_tl-wr1043nd-v1=y
CONFIG_PACKAGE_kmod-lib-crc-itu-t=m
CONFIG_PACKAGE_kmod-lib-crc7=m
CONFIG_PACKAGE_kmod-mmc=m
CONFIG_PACKAGE_kmod-mmc-spi=m
CONFIG_PACKAGE_kmod-mux-gpio=m

Can anyone give a hint what's missing here? Here's my package makefile for reference.