Gentoo Archives: gentoo-kernel

From: Sam Ravnborg <sam@××××××××.org>
To: gentoo-kernel@l.g.o
Subject: Re: [gentoo-kernel] linux-mod / linux-info changes
Date: Sat, 04 Dec 2004 22:51:19
Message-Id: 20041204225128.GA23171@mars.ravnborg.org
In Reply to: [gentoo-kernel] linux-mod / linux-info changes by Daniel Drake
On Sat, Dec 04, 2004 at 11:54:28PM +0000, Daniel Drake wrote:
> + einfo "This package requires Linux sources." > + if [ "${KERNEL_DIR}" == "/usr/src/linux" ] ; then > + einfo "Please make sure that ${KERNEL_DIR} points at your running kernel, " > + einfo "(or the kernel you wish to build against)." > + einfo "Alternatively, set the KERNEL_DIR environment variable to the kernel sources location" > + else > + einfo "Please ensure that the KERNEL_DIR environment variable points at full Linux sources of the kernel you wish to compile against." > + fi > + die "Cannot locate Linux sources at ${KERNEL_DIR}"
Why not use /lib/modules/`uname -r`/source - it works for 2.6 at least. It could be your first try - second /usr/src/linux/... Sam -- gentoo-kernel@g.o mailing list

Replies

Subject Author
Re: [gentoo-kernel] linux-mod / linux-info changes John Mylchreest <johnm@g.o>