* Building linux headers in an non-linux environment
@ 2012-11-03 0:37 Richard H Lee
0 siblings, 0 replies; only message in thread
From: Richard H Lee @ 2012-11-03 0:37 UTC (permalink / raw)
To: kernelnewbies
I'm trying to install linux headers for cygwin using crostool-ng.
ct-ng basically invokes the line:
make -C /home/richard/scratch/x86linux/.build/src/linux-3.5
O=/home/richard/scratch/x86linux/.build/i386-unknown-linux-gnu/build/build-kernel-headers
ARCH=x86
INSTALL_HDR_PATH=/home/richard/x-tools/i386-unknown-linux-gnu/i386-unknown-linux-gnu/sysroot/usr
V=1 headers_install
and it seems to have checked out v3.5 of the linux kernel.
The problem is that making the headers seems to require an existing set
of headers already installed. The required headers seem to be in the
include/ and arch/[target]/ directories.
What is the "correct" way to get the Makefile to use the source tree as
the source for the linux headers?
In the top-level Makefile, I can see the following variable
LINUXINCLUDE := -I$(srctree)/arch/$(hdr-arch)/include \
-Iarch/$(hdr-arch)/include/generated -Iinclude \
$(if $(KBUILD_SRC), -I$(srctree)/include) \
-include $(srctree)/include/linux/kconfig.h
but I'm not sure how to get this variable picked up. And I don't exactly
know what to do with KBUILD_SRC.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-03 0:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-03 0:37 Building linux headers in an non-linux environment Richard H Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).