* Add Intel Core 2 machine support (prescott and nocona)
@ 2007-08-20 20:39 Leon Woestenberg
2007-08-20 21:10 ` Khem Raj
0 siblings, 1 reply; 6+ messages in thread
From: Leon Woestenberg @ 2007-08-20 20:39 UTC (permalink / raw)
To: Openembedded-devel
Hello,
I would like to add support for Intel's Core 2 processors, in both 32
and 64 bit mode.
I am wondering what namespace to use for the PACKAGE ARCHs?
Given all the options[*], I think "x86-prescott" and "x86_64-nocona"
are suitable:
x86_64-prescott= x86_32-core = x86_32-core2
x86_64-nocona = x86_64-core2
The naming is a bit to long to suite my taste, maybe prescott and
nocona are enough?
I would like some input on this before I commit anything and pollute
the namespace.
Regards,
--
Leon
[*]
http://gentoo-wiki.com/Safe_Cflags#Intel_Core_2_Duo.2FQuad_.2F_Xeon_51xx.2F53xx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add Intel Core 2 machine support (prescott and nocona)
2007-08-20 20:39 Add Intel Core 2 machine support (prescott and nocona) Leon Woestenberg
@ 2007-08-20 21:10 ` Khem Raj
2007-08-20 21:52 ` Leon Woestenberg
0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2007-08-20 21:10 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Leon Woestenberg wrote:
> Hello,
>
> I would like to add support for Intel's Core 2 processors, in both 32
> and 64 bit mode.
>
> I am wondering what namespace to use for the PACKAGE ARCHs?
>
> Given all the options[*], I think "x86-prescott" and "x86_64-nocona"
> are suitable:
>
> x86_64-prescott= x86_32-core = x86_32-core2
> x86_64-nocona = x86_64-core2
>
> The naming is a bit to long to suite my taste, maybe prescott and
> nocona are enough?
>
> I would like some input on this before I commit anything and pollute
> the namespace.
>
> Regards,
I would suggest just add conf/machine/core2.conf and another
conf/machine/tune-core2.inc file to have the special gcc flags. I would
not add it as a separate arch but stick with x86. To me it sounds more
confusing to have x86 and core separated out into two different basic
arches.
Just my 2 cents.
- -Khem
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGygM3HnJKy6V6em4RAnk4AJ0Xw4JlBqos/8xA60x59GkAbOYvhwCffGm+
AMhMc3UVpCmd1qTCmlVT570=
=ES0x
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add Intel Core 2 machine support (prescott and nocona)
2007-08-20 21:10 ` Khem Raj
@ 2007-08-20 21:52 ` Leon Woestenberg
2007-08-21 8:04 ` Richard Purdie
0 siblings, 1 reply; 6+ messages in thread
From: Leon Woestenberg @ 2007-08-20 21:52 UTC (permalink / raw)
To: openembedded-devel
Hello Khem,
thanks for the feedback.
On 8/20/07, Khem Raj <raj.khem@gmail.com> wrote:
> I would suggest just add conf/machine/core2.conf and another
> conf/machine/tune-core2.inc file to have the special gcc flags. I would
> not add it as a separate arch but stick with x86. To me it sounds more
> confusing to have x86 and core separated out into two different basic
> arches.
>
My current proposal is:
conf/machine/x86_32-prescott.conf
conf/machine/include/x86_32-prescott.conf
-arch=prescott
TARGET_ARCH=i686
conf/machine/x86_64-nocona.conf
conf/machine/include/x86_64-nocona.conf
-arch=nocona
TARGET_ARCH=x86_64
starting with GCC 4.3:
conf/machine/x86_64-core2.conf
conf/machine/include/x86_64-core2.conf
-arch=core2
TARGET_ARCH=x86_64
The remaining issue is that the TARGET_ARCH suggests that the
resulting packages run on any i686 or x86_64 which is not necessarely
true due to the instruction set being used.
Although we could create more generic machines, my direct interest is
in (live) media encoding and some packages will use SSE3 and SSSE3.
Regards,
Leon.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add Intel Core 2 machine support (prescott and nocona)
2007-08-20 21:52 ` Leon Woestenberg
@ 2007-08-21 8:04 ` Richard Purdie
2007-08-22 17:59 ` Leon Woestenberg
0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2007-08-21 8:04 UTC (permalink / raw)
To: openembedded-devel
On Mon, 2007-08-20 at 23:52 +0200, Leon Woestenberg wrote:
> My current proposal is:
>
> conf/machine/x86_32-prescott.conf
> conf/machine/include/x86_32-prescott.conf
> -arch=prescott
> TARGET_ARCH=i686
>
> conf/machine/x86_64-nocona.conf
> conf/machine/include/x86_64-nocona.conf
> -arch=nocona
> TARGET_ARCH=x86_64
>
> starting with GCC 4.3:
> conf/machine/x86_64-core2.conf
> conf/machine/include/x86_64-core2.conf
> -arch=core2
> TARGET_ARCH=x86_64
Please don't use '_' in the names. It may work but it has the potential
to mess up bitbake's override handling and would be better avoided. I
know people have had issues with "x86_64" already due to this.
> The remaining issue is that the TARGET_ARCH suggests that the
> resulting packages run on any i686 or x86_64 which is not necessarely
> true due to the instruction set being used.
>
> Although we could create more generic machines, my direct interest is
> in (live) media encoding and some packages will use SSE3 and SSSE3.
When using optimised output like that you really do need to use a
different TARGET_ARCH since as you say, the packages will not run on
standard i686/x86_64...
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add Intel Core 2 machine support (prescott and nocona)
2007-08-21 8:04 ` Richard Purdie
@ 2007-08-22 17:59 ` Leon Woestenberg
2007-08-22 18:03 ` Leon Woestenberg
0 siblings, 1 reply; 6+ messages in thread
From: Leon Woestenberg @ 2007-08-22 17:59 UTC (permalink / raw)
To: openembedded-devel
Hello Richard,
thanks for your feedback!
On 8/21/07, Richard Purdie <rpurdie@rpsys.net> wrote:
> On Mon, 2007-08-20 at 23:52 +0200, Leon Woestenberg wrote:
> > My current proposal is:
> >
> > ...
> > conf/machine/x86_64-nocona.conf
> > conf/machine/include/x86_64-nocona.conf
> > -arch=nocona
> > TARGET_ARCH=x86_64
> >
> > starting with GCC 4.3:
> > conf/machine/x86_64-core2.conf
> > conf/machine/include/x86_64-core2.conf
> > -arch=core2
> > TARGET_ARCH=x86_64
>
> Please don't use '_' in the names. It may work but it has the potential
> to mess up bitbake's override handling and would be better avoided. I
> know people have had issues with "x86_64" already due to this.
>
What are the constraints TARGET_ARCH should meet?
Does it have anything to do with the GNU machine tuple?
Doesn't TARGET_ARCH propogated into several package's configure/Makefile's etc?
For example:
linux-libc-headers:
do_configure () {
case ${TARGET_ARCH} in
alpha*) ARCH=alpha ;;
arm*) ARCH=arm ;;
cris*) ARCH=cris ;;
hppa*) ARCH=parisc ;;
i*86*) ARCH=i386 ;;
ia64*) ARCH=ia64 ;;
mips*) ARCH=mips ;;
m68k*) ARCH=m68k ;;
powerpc*) ARCH=ppc ;;
s390*) ARCH=s390 ;;
sh*) ARCH=sh ;;
sparc64*) ARCH=sparc64 ;;
sparc*) ARCH=sparc ;;
x86_64*) ARCH=x86_64 ;;
esac
if test ! -e include/asm-$ARCH; then
oefatal unable to create asm symlink in kernel headers
fi
> When using optimised output like that you really do need to use a
> different TARGET_ARCH since as you say, the packages will not run on
> standard i686/x86_64...
>
That's why I suggested "x86_64-nocona".
I could only think of using "amd64" instead of "x86_64" but most
distributions are favouring the last one over the first one recently.
Regards,
Leon.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Add Intel Core 2 machine support (prescott and nocona)
2007-08-22 17:59 ` Leon Woestenberg
@ 2007-08-22 18:03 ` Leon Woestenberg
0 siblings, 0 replies; 6+ messages in thread
From: Leon Woestenberg @ 2007-08-22 18:03 UTC (permalink / raw)
To: openembedded-devel
Hello Richard,
On 8/22/07, Leon Woestenberg <leon.woestenberg@gmail.com> wrote:
> > When using optimised output like that you really do need to use a
> > different TARGET_ARCH since as you say, the packages will not run on
> > standard i686/x86_64...
> >
> That's why I suggested "x86_64-nocona".
>
Whoops, I didn't actually suggest x86_64-nocona as TARGET_ARCH.
BTW, I don't understand how the *value* of a variable may not contain
underscores.
Do I misunderstand when I think bitbake overrides apply to variable names only?
Regards,
Leon
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-08-22 18:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-20 20:39 Add Intel Core 2 machine support (prescott and nocona) Leon Woestenberg
2007-08-20 21:10 ` Khem Raj
2007-08-20 21:52 ` Leon Woestenberg
2007-08-21 8:04 ` Richard Purdie
2007-08-22 17:59 ` Leon Woestenberg
2007-08-22 18:03 ` Leon Woestenberg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.