On Sun, Dec 30, 2012 at 08:58:57PM +0100, phi gcc wrote:
Hi All,
This is a re-post from a post I did on opensuse@opensuse.org, as it may be more appropriate here.
New to opensuse, I try to build the newly installed machine with its current kernel version. I'd like to build the kernel from the source we got with the regular distro, I will do git extraction and build later. For now I need to build the kernel rpms (i.e kernel + debuginfo for kernel/modules). So far I can't build the standard kernel. Again I am new to this and my build process may be flawed, then any help would be appreciated.
Here is the trail of events.
1) fresh 12.2 install CY44$ /usr/bin/lsb-release -a LSB Version: n/a Distributor ID: SUSE LINUX Description: openSUSE 12.2 (x86_64) Release: 12.2 Codename: Mantis
2) Download 2 metapackages patterns-openSUSE-dev-basis patterns-openSUSE-devel-kernel
3) Downloaded kernel source thought may be they was there after the initial install.
4) make source suitable for non root compile. CY44$ cd /usr/src/linux CY44$ sudo chown -R phi .
5) Clone initial config and patch CONFIG_LOCAL_VERSION CY44$ make cloneconfig CY44$ vi .config # set CONFIG_LOCALVERSION="-2.16-phi"
6) Kernel build CY44$ make
7) Build RPM CY44$ make rpm-pkg
I don't think this command, or 'make rpm' really works properly. Just do a 'make install' at this point and then you will be able to run the kernel you just built. If you want to build a kernel package, then you need to rebuild the kernel-source package in the way that the build service does, which is by running rpm, not by building by hand like you are doing here. Hope this helps, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org