confused on kernel....
this may sound stupid..(im runnin on 5 hours of sleep and have been working on this for nearly 12 hours....bare with me folks:) ) I'm on the kernel compile...the book says :
cd /usr/src/linux &&
make mrproper &&
make menuconfig &&
make dep &&
make bzImage &&
make modules &&
make modules_install &&
cp arch/i386/boot/bzImage /boot/lfskernel &&
cp System.map /boot
what i'm lookin at is the very first line...cd/usr/src/linux &&
right now i have the source tree in /usr/src/ch6/lfs-packages-3.3/linux <--- is that supposed to be in /usr/src/linux or is the first line assuming that all source trees were in /usr/src from the start?? Point being...if i cd /usr/src/.../......./linux && then make mrproper and continue on down the list, will everything be ok?? I'm getting closer and closer to testing my modem driver on this kernel since i figured how to use menuconfig, plus im not tryin to mess up my new toy :) [3.5-4 hours on glibc compile:( ]
thanks again for being there...
I guess the book is assuming you install it in /usr/src/linux. That's where most people put it in anyways. But it doesn't really matter where you put it. If you change the first line to cd to the directory where you unpacked the kernel sources then all the rest will run fine.
Just from watching all the lines that scroll by at kernel compile time, it seems that everything is run relative to the current working directory. So, you could have your source in /home/myuser/files/kernel/2.4.18/newkernel/wow/linux and it should still work.
Just to confirm what others have said already: it doesn't matter where you unpack the kernel. Chapter 2 of the book assumes /usr/src is used to unpack source trees, but that's just one way of doing it. I personally only use /usr/src for temporary stuff like compile jobs (in /usr/src/builds) and downloaded tarballs in /usr/src. My kernels, for example, live in /usr (/usr/linux-2.4.18 /usr/linux-2.5.8 etc)
|All times are GMT -5. The time now is 08:37 PM.|