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: crosstools should create linux/autoconf.h


Martin Schaffner wrote:
running "make defconfig" or "yes "" | make config" when there isn't a .config also works.

Yes this works also, but I think configuring the kernel just to have a (meaningless) autoconf.h is not necessary. I suggest the following patch:


--- crosstool-0.28-rc4/crosstool.sh.bak Sat Apr 17 17:25:10 2004
+++ crosstool-0.28-rc4/crosstool.sh     Sat Apr 17 23:26:16 2004
@@ -156,6 +156,7 @@
 esac

 mkdir -p $HEADERDIR
+touch include/linux/autoconf.h
 cp -r include/linux $HEADERDIR
 cp -r include/asm-${ARCH} $HEADERDIR/asm
 cp -r include/asm-generic $HEADERDIR/asm-generic

None of these approaches will work for all architectures, I fear. Some actually require autoconf.h to set things like PAGESIZE.

------
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]