[opensuse-kernel] scripts to generate spec files from templates
Hi, to make it easier to build custom kernel versions and flavors, I'm working on the kernel packaging scripts to make work standalone. Also, Jeff has been doing quite some cleanup of the spec templates lately. The current state is here: http://download.opensuse.org/repositories/home:/michal-m:/kernel:/mkspec/ope... (or at http://ftp.suse.com/pub/projects/kernel/kotd/master-mkspec/ but the KOTD gets published only once a day). This is how it currently works $ rpm2cpio kernel-source-*.src.rpm | cpio -i $ chmod +x mkspec arch-symbols compute-PATCHVERSION.sh # will be fixed # (re)generate all spec files: $ ./mkspec # add new flavor $ tar xf config.tar.bz2 $ cp config/i386/default config/i386/myconfig # ...tweak myconfig... $ tar cjf config.tar.bz2 config $ echo '+i386 i386/myconfig' >>config.conf $ ./mkspec $ osc build ... kernel-myconfig.spec ... and so on. Please keep in mind that this is rather new and not tested much, it might not work for you, it might change in the future based on feedback (hint, hint!), etc. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
Michal Marek napsal(a):
Hi,
to make it easier to build custom kernel versions and flavors, I'm working on the kernel packaging scripts to make work standalone. Also, Jeff has been doing quite some cleanup of the spec templates lately. The current state is here: http://download.opensuse.org/repositories/home:/michal-m:/kernel:/mkspec/ope... (or at http://ftp.suse.com/pub/projects/kernel/kotd/master-mkspec/ but the KOTD gets published only once a day). This is how it currently works
$ rpm2cpio kernel-source-*.src.rpm | cpio -i $ chmod +x mkspec arch-symbols compute-PATCHVERSION.sh # will be fixed
# (re)generate all spec files: $ ./mkspec
# add new flavor $ tar xf config.tar.bz2 $ cp config/i386/default config/i386/myconfig # ...tweak myconfig... $ tar cjf config.tar.bz2 config $ echo '+i386 i386/myconfig' >>config.conf $ ./mkspec $ osc build ... kernel-myconfig.spec ...
This is now merged into the master branch and will appear in Factory with the next submission. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (1)
-
Michal Marek