Well, if I look at the build directions for the gcc 4.2.1 toolchain on the snapgear website they essentially have the same steps but are using " --with-headers=linux-2.6.x/include" instead or 2.4.x. I'm just wondering if I need to make the same modification for the 3.4.4 build steps, or if that was just something specific to gcc 4.2.1).
-JB On Wed, Jun 3, 2009 at 2:54 PM, Lennart Sorensen <[email protected]> wrote: > On Wed, Jun 03, 2009 at 02:19:01PM -0400, Jeff Bacon wrote: >> I'm trying to rebuild the gcc 3.4.4 toolchain following the >> directions from the snapgear website. I had one quick question about >> the steps. Many of the steps include the statement >> "--with-headers=linux-2.4.x/include" >> >> For example - >> >> 3. gcc-3.4.4 >> >> tar xvzf gcc-3.4.4.tar.gz >> cd gcc-3.4.4 >> >> cp $(ATTACHED t-linux file) gcc/config/arm/ >> vi gcc/config/arm/linux-elf.h >> -- remove line that defines LIBGCC_SPEC >> >> mkdir arm-linux >> cd arm-linux >> ../configure --target=arm-linux --disable-shared --disable-threads \ >> --prefix=/usr/local --with-headers=linux-2.4.x/include \ >> --with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c >> make >> make install >> >> >> >> For our distro we're ONLY building the 2.6.x kernel, and in fact we >> prune out the 2.4.x directory entirely. Should I be replacing all >> instances of "--with-headers=linux-2.4.x/include" with >> "--with-headers=linux-2.6.x/include" or does this statement make no >> difference in the end? > > With newer 2.6.x kernels you can't actually use the kernel sources for > your includes, but instead must do a headers_install from the kernel to > another directory to get working headers. > > So perhaps a simple replacement might not work. > > -- > Len Sorensen > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
