So I got myself the book "Linux Kernel in a Nutshell" found
here as a free pdf download.
Just starting out so I haven't gotten far but have already ran into a snag.
After downloading the source.tar.gz, extracting it, the first thing I am supposed to do is...
make defconfig (in order to make a default config file.)
This fails with....
make defconfig
Makefile:463: /home/ken/Software/TESTING/kernel/2.6.37/linux-2.6.37/arch/i586/Makefile: No such file or directory
make: *** No rule to make target `/home/ken/Software/TESTING/kernel/2.6.37/linux-2.6.37/arch/i586/Makefile'. Stop.
It's failing because there is no file i586 in the arch directory, but there is a file x86, which (just to see what would happen) I copied and renamed i586.
Now make defconfig now works sort of...but I get this error.
make defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
*** Default configuration is based on 'i586_defconfig'
***
*** Can't find default configuration "arch/i586/configs/i586_defconfig"!
***
make[1]: *** [defconfig] Error 1
make: *** [defconfig] Error 2
So what the hell. I find a file called arch/i586/configs/i386_defconfig and rename it i586_defconfig. Just so the make defconfig script can find what it's looking for. Figure if it's not the right thing I'll find out when I rn make defconfig again.
So now I run it again..
make defconfig
*** Default configuration is based on 'i586_defconfig'
#
# configuration written to .config
#
and it works! What the hell!
So my question is this. What is really the right way to do this. Seems a kernel build on Vector wants to be in the i586 architecture but doing what I did can't be the answer. Can it? What are the real steps to get make deconfig to work on Vector??
edit: Found this...
make ARCH=x86 defconfig
But Vector is built on a i586 architecture, so that still doesn't feel like the Vector way?