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


On Mon, 19 Apr 2004, Daniel Kegel wrote:

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

The first approach mentioned, 'yes "" | make config', should work,
however. I'm doing it all the time. Well actually I'm calling

  yes "" | PAGER="cat -" make -C linux oldconfig

to anwer all questions 'Y' and to suppress blockings by 'more', as in
some rare cases oldconfig may decide to display the Configure.help
text.

Just touching autoconf.h gains, nothing, of course.

Regards,
Marius

-- 
Marius Groeger <mgroeger@sysgo.com>           Project Manager
SYSGO AG                      Embedded and Real-Time Software
Voice: +49 6136 9948 0                  FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.imerva.com


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