Re: How do I use the linux-headers with the linux-source?



Stephen Cormier ha scritto:
On Thursday 18 May 2006 16:59, Marco wrote:
#locate autoconf.h
/usr/include/asm-i486/autoconf.h
/usr/include/asm-x86_64/autoconf.h
/usr/include/linux/autoconf.h

Any idea?

Have you configured/compiled the source tree yet?

$ locate autoconf.h
/usr/include/asm-i386/autoconf.h
/usr/include/asm-x86_64/autoconf.h
/usr/include/linux/autoconf.h
/usr/src/linux-2.6.16/include/linux/autoconf.h

The above is from my compiled and installed kernel tree whereas if I move it to a backup and untar a new tree the file does not exist.

$ ls /usr/src/linux-2.6.16/include/linux/autoconf.h
ls: /usr/src/linux-2.6.16/include/linux/autoconf.h: No such file or directory

$ ls /usr/src/linux-2.6.16.orig/include/linux/autoconf.h
/usr/src/linux-2.6.16.orig/include/linux/autoconf.h

Stephen
Hi,
I made some tests last night and I think i've found the problem.
here is the procedure I followed to compile the kernel:
#apt-get install linux-source-2.6.15
# tar -jxf /usr/src/linux-source-2.6.15.tar.bz2
# cd /usr/src/linux-source-2.6.15/
# make-kpkg clean
# make menuconfig
# make oldconfig
# make-kpkg --revision 'name.version' kernel_image modules_image
and after
# MAKE-KPKG CLEAN :-)

As you can see, I think the problem is the final "make kpkg clean" command, isn't it?
What should I type to clean up the code after the kernel is compiled, without deleting "the useful bits"?

Thanks a lot!
Marco


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Problem with compiling kernel
    ... and got to the stage where it said to run this: "fakeroot make-kpkg clean" ... Run the command as "sudo fakeroot make-kpkg clean"? ... The list ethicist is going to get me for this but I always compile my kernels logged in as root. ... Processor type and features -> Preemption Model (Preemptible Kernel (Low-Latency Desktop)) ...
    (Debian-User)
  • Re: adding modules to kernel
    ... I only want to compile a module which I forgot in xconfig? ... Please note that you must run a make-kpkg clean after configuring the ... if it doesn't exist, but doesn't touch if exists), so the final kernel ...
    (Debian-User)
  • Re: Distributions
    ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be ... and slower than if you compile those packages, ... can have that stability with virtually any distro. ...
    (Debian-User)
  • Re: Distributions
    ... Ubuntu is based on Debian, ... | general there are a lot of packages for people to use. ... kernel, have to run on a multitude of different systems, they tend to be larger ... and slower than if you compile those packages, ...
    (Debian-User)
  • Problems with custom kernel fbsd 6.2
    ... My kernel for freebsd 6.2 is not compiling but only with my custom config. ... I was able to compile it with the GENERIC kernel included, but my modified one will not compile. ... # Power management support ...
    (freebsd-questions)