Hi Team,
I had a couple questions with regards to compiling kernels from source,
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.35.4.tar.bz2
Using the following guide, as a reference -
OpenSUSE 11.2 - How to compile a Kernel for Newbies - Linux Tweaking - http://linuxtweaking.blogspot.com
After extracting the tar safely to the destination /usr/src/linux I had the following the directory /usr/src/linux/linux-2.6.35.4/ wondering should I have extracted the files so that all sub folders listed below fall under /usr/src/linux instead of having
/usr/src/linux/linux-2.6.35.4/ be the parent directory?
drwxr-xr-x 23 root root 4096 2010-08-26 16:47 ./
drwxr-xr-x 3 root root 4096 2010-08-27 12:45 …/
drwxr-xr-x 25 root root 4096 2010-08-26 16:47 arch/
drwxr-xr-x 2 root root 4096 2010-08-26 16:47 block/
-rw-r–r-- 1 root root 18693 2010-08-26 16:47 COPYING
-rw-r–r-- 1 root root 94031 2010-08-26 16:47 CREDITS
drwxr-xr-x 3 root root 4096 2010-08-26 16:47 crypto/
drwxr-xr-x 85 root root 12288 2010-08-26 16:47 Documentation/
drwxr-xr-x 89 root root 4096 2010-08-26 16:47 drivers/
drwxr-xr-x 36 root root 4096 2010-08-26 16:47 firmware/
drwxr-xr-x 72 root root 4096 2010-08-26 16:47 fs/
-rw-r–r-- 1 root root 936 2010-08-26 16:47 .gitignore
drwxr-xr-x 20 root root 4096 2010-08-26 16:47 include/
drwxr-xr-x 2 root root 4096 2010-08-26 16:47 init/
drwxr-xr-x 2 root root 4096 2010-08-26 16:47 ipc/
-rw-r–r-- 1 root root 2440 2010-08-26 16:47 Kbuild
drwxr-xr-x 8 root root 4096 2010-08-26 16:47 kernel/
drwxr-xr-x 6 root root 4096 2010-08-26 16:47 lib/
-rw-r–r-- 1 root root 4021 2010-08-26 16:47 .mailmap
-rw-r–r-- 1 root root 174535 2010-08-26 16:47 MAINTAINERS
-rw-r–r-- 1 root root 51256 2010-08-26 16:47 Makefile
drwxr-xr-x 2 root root 4096 2010-08-26 16:47 mm/
drwxr-xr-x 50 root root 4096 2010-08-26 16:47 net/
-rw-r–r-- 1 root root 17459 2010-08-26 16:47 README
-rw-r–r-- 1 root root 3371 2010-08-26 16:47 REPORTING-BUGS
drwxr-xr-x 7 root root 4096 2010-08-26 16:47 samples/
drwxr-xr-x 12 root root 4096 2010-08-26 16:47 scripts/
drwxr-xr-x 7 root root 4096 2010-08-26 16:47 security/
drwxr-xr-x 21 root root 4096 2010-08-26 16:47 sound/
drwxr-xr-x 4 root root 4096 2010-08-26 16:47 tools/
drwxr-xr-x 2 root root 4096 2010-08-26 16:47 usr/
drwxr-xr-x 3 root root 4096 2010-08-26 16:47 virt/
Of course with all this being said and done while in root, prior to making the makeconfig file.
Should I’ve made a sybmolic link to the source ln -s /usr/src/linux/linux-2.6.35.4/ linux
Then I had issue with the make cloneconfig? the was concern without making the symbolic link to the directory I received the following message -
/usr/src/linux/linux-2.6.35.4 # make cloneconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
make[1]: *** No rule to make target `cloneconfig’. Stop.
make: *** [cloneconfig] Error 2
Which brings to the next message in the tutorial it asked to check off under yast->software management-> view by patterns-> The Linux Kernel Development>
However by doing so, the only package required is patterns-openSUSE-devel_kernel wondering should I need the following packages, in addition -
cscope - Interactive Tool for Browsing C Source Code
diffstat - Utility That Provides Statistics Based on the Output of diff
git-core - Core git tools
gitk - Git revision tree visualiser
indent - Indent Formats C Source Code
kernel-syms - Kernel Symbol Versions (modversions)
patchutils - A Collection of Tools for Manipulating Patch Files
quilt - A Tool for Working with Many Patches
And Under Base Development Packages-
build - A Script to Build SUSE Linux RPMs
Please keep in mind GCC is already installed, and sources files should come from /usr/src/linux or should I need the source from my current
kernel-default-.6.31.12-0.2
Any support regarding this matter would be great?