Kernel subpackages may contain a "-" (e.g. -kernel-mainline-modem); replace it with an underscore to make sure that we find the kernel-specific variables in deviceinfo.