specfile amends for kmod and kernel-srpm-macros
- Install the module in
extra
instead ofupdates
.depmod
definesupdates
as the highest priority search directory. There is no reason to use it in this case. - Amend the
BuildRequires:
populated with%kernel_module_package_buildreqs
that hardcodedkernel-devel
. When building against the automotive kernel (or other flavors for that matter), the kernel and headers might be a different package (e.g,kernel-automotive*
). Use the dist-tag to substitute the mainline kernel with the automotive one.
Signed-off-by: Eric Chanudet echanude@redhat.com