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: linux/autoconf.h problem


Hi Dan,

I ran into this problem building a powerpc cross compiler.

Ok, I see the problem with the arm architecture, it is difficult to know what the right thing to so is to satisfy all cases,

Best regards,

Steve

Dan Kegel wrote:
Steve Papacharalambous wrote:

I've just run into the linux/autoconf.h problem, and fixed it using the patch suggested by Rafael Ávila de Espíndola to crosstool.sh

[snip]

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

[/snip]

This patch takes care of cases where there isn't a kernel config file provided in the crosstool archive, so I wondered whether this patch will make it into the next release of crosstool?


The arm folks feel violently that 'make defconfig' is a misfeature;
there are so many variants of arm that there is no one default,
is the argument IIRC.  So I'm not sure the patch is right,
nor do I know what the right thing to do is.

Which architecture did you run into this on?
- Dan




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