(In reply to Takashi Iwai from comment #3) > The current way to list up all modules explicitly, and I guess it's hard to > process the list at the build time. Maybe this needs two step processes: > one to prepare the module list from modinfo of modules included in the > target kernel, then repackage from the list. I made a sr which does this: %define crypto_modules \ %(rpm -ql %{kernel_package_name} | grep -E 'kernel/crypto/|kernel/arch/.*/crypto/' | xargs basename -a | cut -d. -f1) I don't really like that it's fragile (rpm ignores errors), but other than that it's definitely better than mentioning everything explicitly IMO. What do you think?