This is the mail archive of the crossgcc@sourceware.org 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] |
Hi Yann, All, I attached a patch to add powerpc support in crosstool-ng. Could you please make a short review because it my first patch. Thanks, Daniel Yann E. MORIN schrieb: > Hello Daniel, > All, > > On Thursday 15 May 2008 19:56:30 Dittmann, Daniel wrote: >> crosstool-ng is a great tool, I like it. Thanks for it. > > :-) > >> The powerpc arch is currently not supported. >> Is there any reason for it? > > For two simple reasons: > 1) I don't have personal interest in PPC, it not being one of my targets, > and thus I can't test by myself (although qemu might come handy); > 2) noone with PPC interest has contributed code so far (or I missed it). > > If you want, you can try to add PPC support. It's fairly easy to add a new > architecture: please see the file "docs/overview.txt", chapter "Internals", > section "Architecture-specific". Then look at what other targets do in arch/ > and adapt to the PPC case. > > If you manage to have it working, then please share your experiment with us! > > Regards, > Yann E. MORIN. >
diff -Naur crosstool-ng-1.0.0.orig/arch/powerpc/config.in crosstool-ng-1.0.0/arch/powerpc/config.in --- crosstool-ng-1.0.0.orig/arch/powerpc/config.in 1970-01-01 01:00:00.000000000 +0100 +++ crosstool-ng-1.0.0/arch/powerpc/config.in 2008-04-14 10:15:54.000000000 +0200 @@ -0,0 +1 @@ +# powerpc specific configuration file diff -Naur crosstool-ng-1.0.0.orig/arch/powerpc/functions crosstool-ng-1.0.0/arch/powerpc/functions --- crosstool-ng-1.0.0.orig/arch/powerpc/functions 1970-01-01 01:00:00.000000000 +0100 +++ crosstool-ng-1.0.0/arch/powerpc/functions 2008-03-28 15:45:51.000000000 +0100 @@ -0,0 +1,9 @@ +# Compute powerpc-specific values + +CT_DoArchValues () { + # The architecture part of the tuple: + CT_TARGET_ARCH="${CT_ARCH}" + + # The kernel ARCH: + CT_KERNEL_ARCH=powerpc +} diff -Naur crosstool-ng-1.0.0.orig/config/target.in crosstool-ng-1.0.0/config/target.in --- crosstool-ng-1.0.0.orig/config/target.in 2008-01-16 23:06:15.000000000 +0100 +++ crosstool-ng-1.0.0/config/target.in 2008-03-27 11:12:46.000000000 +0100 @@ -9,6 +9,7 @@ default "arm" if ARCH_ARM default "ia64" if ARCH_IA64 default "mips" if ARCH_MIPS + default "powerpc" if ARCH_PPC default "sh" if ARCH_SH default "x86" if ARCH_x86 default "x86_64" if ARCH_x86_64 @@ -30,6 +31,10 @@ depends on EXPERIMENTAL select ARCH_SUPPORTS_BOTH_ENDIAN +config ARCH_PPC + bool + prompt "powerpc" + config ARCH_SH bool prompt "sh (EXPERIMENTAL)" @@ -92,6 +97,9 @@ if ARCH_MIPS source config/arch/mips/config.in endif +if ARCH_PPC +source config/arch/powerpc/config.in +endif if ARCH_SH source config/arch/sh/config.in endif
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |