Originally Posted by
leigh123linux
ok I found that there's a "release" switch to rpmbuild, supposedly one should be able to do "rpmbuild -bb --with release some.spec" but I don't know if the switch has any effect since it's not documented in man rpmbuild.
---------- Post added at 08:13 PM ---------- Previous post was at 04:25 PM ----------
I built the spec with:
Code:
rpmbuild -bb --with release --without debug --without debuginfo kernel.spec
But as it seems from the config file that ends up packaged with the rpm (That is later placed in /boot/), that it's still a debug build. grep "CONFIG_DEBUG" config-3.3.0-0.rc5.git3.1.fc17.x86_64:
Code:
CONFIG_DEBUG_DEVRES=y
CONFIG_DEBUG_FS=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SHIRQ=y
CONFIG_DEBUG_BUGVERBOSE=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_DEBUG_LIST=y
CONFIG_DEBUG_STACKOVERFLOW=y
CONFIG_DEBUG_RODATA=y
CONFIG_DEBUG_RODATA_TEST=y
CONFIG_DEBUG_SET_MODULE_RONX=y
CONFIG_DEBUG_NX_TEST=m
CONFIG_DEBUG_BOOT_PARAMS=y
---------- Post added at 08:22 PM ---------- Previous post was at 08:13 PM ----------
Nevermind, it seems to be a release build this time.
Steps to build a really fast "release" kernel:
Code:
$ yumdownloader --source kernel
$ rpm -ivh kernel*rpm
$ cd $HOME/rpmbuild/SPECS
$ rpmbuild -bb --with release --without debug --without debuginfo kernel.spec
$ cd $HOME/rpmbuild/RPMS/*
$ sudo rpm -Uvh --force *.rpm