linux - Can I have a generic spec file for multiple kernel version while creating rpm -


i trying build rpm includes kernel module. when create on centos used %(uname -r) copy .ko in module directory uname -r expands "3.10.0-327.el7.x86_64"

now if want install same ko on other system same kernel version using rpm, creates separate folder i.e.

aka /lib/modules/3.10.0-327.el7.x86_64 on other system

can write generic spec file copy module specific folder. please guide.

unfortunately, there no longer official way kernel modules. %(uname -r) populating @ rpm build time; cannot have variable in %files stanza.

as workaround, i've put module source in reasonable location , build driver in %post. have startup script rebuilds on new kernel, because using %triggerin won't work. uninstall built kernel module on %preun.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -