This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Q: Preparing kernel header


On Wed, Oct 01, 2003 at 09:46:16AM -0700, Paul Medlon wrote:
> About preapring toolchain, may I know why we need to
> "make ARCH=xxx CROSS_COMPILE=yyy" first when we
> prepare kernel headers? As it is just header files
> that we need, why we can't simply download the kernel
> and copy its /include/{asm-xxx, asm-generic}? (This
> seems to give me problems.)

ARCH is needed in oder that the Makefile knows which asm-xxx subdir it
has to link to asm.
Of couse this can be done by hand (or by 'make symlinks' IIRC)

> Sorry for asking because I thought "make" doesn't
> change the *.h source files (newbie's thought).

There are no files changed, the version.h and autoconf.h is generated.
These files are needed by the later by the toolchain. The version.h can
be generated with:
make include/linux/version.h
and autoconf.h just needs to be there, so 
touch include/linux/autoconf.h
is sufficent.

This is for 2.4.xx kernels the 2.6 series may be different....
These things make the 2.4 kernel during 'make dep', under 2.6 it's
called 'make prepare'

Of couse with ARCH and stuff set.

hth - Marc

-- 
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]