[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building a custom kernel-WAS: Re: USB disk shows up late at boot

Paul Cartwright put forth on 12/24/2009 12:04 PM:
> On Tue December 22 2009, Celejar wrote:
>> Exactly.  And you can turn off all the sound card and video drivers
>> except the one(s) you actually need, and the same for networking hw,
>> etc.
> so I was reading this:
> http://www.wowway.com/~zlinuxman/Kernel.htm
> which is about the same..
> I ran these commands:
> # make menuconfig
> # make-kpkg clean
> # make-kpkg --initrd kernel_image
> (snipping all the long lines...)
> and ended up with this:
> /usr/bin/make    ARCH=i386 \
> 			     -C Documentation/lguest
> make[1]: Entering directory 
> `/home/pbc/Documents/software/linux-'
> cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE    
> lguest.c   -o lguest
> lguest.c:21:25: error: sys/eventfd.h: No such file or directory
> lguest.c: In function ‘create_thread’:
> lguest.c:1021: warning: implicit declaration of function ‘eventfd’
> make[1]: *** [lguest] Error 1
> make[1]: Leaving directory 
> `/home/pbc/Documents/software/linux-'
> make: *** [debian/stamp/build/kernel] Error 2


If you don't actually plan on running this kernel/machine as a hypervisor/host
for guest operating systems, then in make menuconfig unselect any kernel options
relating to doing so.  When compiling one's first custom kernel one should start
with _ONLY_ the functionality one needs.  Then build things up from there as you
need more abilities from you kernel. ;)


Reply to: