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] |
I made some modifications to crosstool 0.28-rc2 to compile kernel 2.4 and 2.6.5 (2.6.4 doesn't work) for the ppc 970. The patch makes the script call "make defconfig" if the .config does not exits. This solves the problem with the ... linux/autoconf.h: No such file or directory problem. Alternatively you can add ppc64 the list of architectures that need a kernel .config. Thanks for crosstool. It helps a lot. Rafael Ávila de Espíndola
--- crosstool-0.28-rc2_orig/crosstool.sh 2004-03-25 21:14:44.000000000 -0300 +++ crosstool-0.28-rc2/crosstool.sh 2004-04-01 18:37:22.000000000 -0300 @@ -62,6 +62,7 @@ ia64*) ARCH=ia64 ;; mips*) ARCH=mips ;; m68k*) ARCH=m68k ;; + powerpc64*) ARCH=ppc64 ;; powerpc*) ARCH=ppc ;; ppc*) abort "Target $TARGET incompatible with binutils and gcc regression tests; use target powerpc-* instead";; s390*) ARCH=s390 ;; @@ -145,8 +146,15 @@ if test -f "$KERNELCONFIG" ; then cp $KERNELCONFIG .config fi + if test -f .config; then yes "" | make ARCH=$ARCH oldconfig +else + make ARCH=$ARCH mrproper + case "$LINUX_DIR" in + *2.6.*) make ARCH=$ARCH defconfig ;; + *) yes "" | make ARCH=$ARCH config ;; + esac fi # check for kernel version 2.6.* @@ -263,6 +271,10 @@ make $PARALLELMFLAGS all-gcc install-gcc +cd ${PREFIX}/lib/gcc/$TARGET/3.4.0/ +ln -s libgcc.a libgcc_eh.a +cd - + cd .. test -x ${PREFIX}/bin/${TARGET}-gcc || abort Build failed during gcc-core @@ -295,7 +307,7 @@ ${GLIBC_EXTRA_CONFIG} \ --without-tls --without-__thread --enable-kernel=2.4.3 \ --without-cvs --disable-profile --disable-debug --without-gd \ - --enable-add-ons --with-headers=$HEADERDIR + --enable-add-ons=linuxthreads --with-headers=$HEADERDIR fi # If this fails with an error like this:
------ 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] |