sane-toolchain-eglibc.inc: Set TARGET_OS = linux-gnuspe for e500
PATCH 1/1 sane-toolchain-eglibc.inc: Set TARGET_OS = linux-gnuspe for e500
Target triplet powerpc-*-linux-gnuspe is chosen for machines with SPE which is e500 cores.
--- conf/distro/include/sane-toolchain-eglibc.inc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
conf/distro/include/sane-toolchain-eglibc.inc +2 -0
@@ -5,6 +5,8 @@ TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" +TARGET_OS = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" + FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
Signature · 1 line
1.6.3.3
Quoted 2 lines · Khem Raj
Target triplet powerpc-*-linux-gnuspe is chosen for machines with SPE which is e500 cores.
Two things. First, doesn't that override the previous TARGET_OS? Or did I miss some magic in there to use the previous result? Second, can we trigger this on something other than the machine list? This will get larger, not smaller. BASE_PACKAGE_ARCH perhaps? Or would that not be allowed?
Signature · 1 line
Tom Rini
Quoted 7 lines · Tom Rini
Quoted 2 lines · Khem Raj
Target triplet powerpc-*-linux-gnuspe is chosen for machines with SPE which is e500 cores.
Two things. First, doesn't that override the previous
TARGET_OS? Or did I miss some magic in there to use the previous result?
hmm yes it wil if it is linux-gnueabi then the second assignment will reset it to linux
Discard it. I think we need something better
Second, can
Quoted 3 lines
we trigger this on something other than the machine list? This will get larger, not smaller. BASE_PACKAGE_ARCH perhaps? Or would that not be allowed?
yeah sounds a better idea let me look into it a bit.
Quoted 9 lines
--
Tom Rini_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 6 lines · Khem Raj
Quoted 5 lines · Tom Rini
Quoted 2 lines · Khem Raj
Target triplet powerpc-*-linux-gnuspe is chosen for machines with SPE which is e500 cores.
Quoted 7 lines
Quoted 2 lines
Two things. First, doesn't that override the previous
TARGET_OS? Or did I miss some magic in there to use the previous result?hmm yes it wil if it is linux-gnueabi then the second assignment will reset it to linux
Discard it. I think we need something better
We can override only for powerpc second time around. So changing it to
TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}"
will that be ok ?
Thanks
-Khem
Quoted 7 lines · Khem Raj
We can override only for powerpc second time around. So changing it to
TARGET_OS_powerpc= "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] andbb.data.getVar('MACHINE',d)in ['calamari', 'tqm8540']]}"will that be ok ?
That's better, but it still doesn't seem terribly elegant. I also remain slightly unconvinced that the eglibc-specific file is, conceptually, the right place for this logic. I would propose:
a) write a single, generic function to generate an appropriate TARGET_OS suffix based on the distro properties, something along the approximate lines of:
if target_os == "linux":
# compute and apply appropriate suffix
linux_suffix = ""
if bb.data.getVar("LIBC", d, 1) == "uclibc":
linux_suffix += "uclibc"
if bb.data.getVar("TARGET_ARCH", d, 1) in [ 'arm', 'armeb' ] and
arm_abi == "eabi":
linux_suffix += "gnueabi"
# does this really need to mention both ppc and powerpc; can't we just
pick one?
if bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and
bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540'] and "spe" in
distro_features:
linux_suffix += "gnuspe"
if linux_suffix != "":
target_os = "%s-%s" % (target_os, linux_suffix)(the above is obviously incomplete but I imagine you get the idea)
b) absent an obviously more appropriate place, put it in the top level sane-toolchain.inc
That way at least we only have this stuff in one place, rather than the current proliferation of duplicated logic (see the eabi selector for example).
p.
Quoted 7 lines · Phil Blundell
Quoted 1 line · Khem Raj
We can override only for powerpc second time around. So changing it
to
Quoted 4 lines
TARGET_OS_powerpc= "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] andbb.data.getVar('MACHINE',d)in ['calamari',
Quoted 7 lines
'tqm8540']]}"
Quoted 2 lines
will that be ok ?
That's better, but it still doesn't seem terribly elegant. I also remain slightly unconvinced that the eglibc-specific file is, conceptually, the right place for this logic.
Actually, there is still a bigger problem with this change: it will cause the ABI to change in a semi-random way depending on the selected MACHINE and this will screw up people who are trying to do multimachine builds.
For example, if I set MACHINE=calamari and then bitbake micro-image, it will select linux-gnuspe and I will presumably get the SPE ABI. But then, if I set MACHINE=efika, say, and build another package in the same tree, it'll now select regular linux and the ABI will change, although this won't be reflected in the naming of the output packages: they'll all just be named "powerpc". Worse, if eglibc itself happens to be version-bumped while I am building for efika, my C library will be quietly recompiled with a different ABI and, presumably, lose in a fairly serious way.
p.
Quoted 21 lines · Phil Blundell
Quoted 7 lines · Phil Blundell
Quoted 1 line · Khem Raj
We can override only for powerpc second time around. So changing it
to
Quoted 4 lines
TARGET_OS_powerpc= "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] andbb.data.getVar('MACHINE',d)in ['calamari',Quoted 7 lines
'tqm8540']]}"
Quoted 2 lines
will that be ok ?
That's better, but it still doesn't seem terribly elegant. I also remain slightly unconvinced that the eglibc-specific file is, conceptually, the right place for this logic.
Actually, there is still a bigger problem with this change: it will cause the ABI to change in a semi-random way depending on the selected MACHINE and this will screw up people who are trying to do multimachine builds.
Quoted 9 lines
For example, if I set MACHINE=calamari and then bitbake micro-image, it will select linux-gnuspe and I will presumably get the SPE ABI. But then, if I set MACHINE=efika, say, and build another package in the same tree, it'll now select regular linux and the ABI will change, although this won't be reflected in the naming of the output packages: they'll all just be named "powerpc". Worse, if eglibc itself happens to be version-bumped while I am building for efika, my C library will be quietly recompiled with a different ABI and, presumably, lose in a fairly serious way.
based upon your idea in last email. Here is something I put together seems to work. It will need testing ofcourse
What do you think about this one ?
Thanks
-Khem
conf/distro/include/sane-toolchain-eglibc.inc +0 -4
@@ -3,10 +3,6 @@ # eglibc: # [23:00] oxo: glibc (any version) on sparc does not like (repeat me) "-Os" -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - -TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" - FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
conf/distro/include/sane-toolchain-glibc.inc +0 -2
@@ -2,8 +2,6 @@ # glibc: -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info # perl has some problems, see http://bugs.openembedded.net/show_bug.cgi?id=1616
conf/distro/include/sane-toolchain-uclibc.inc +0 -3
@@ -15,9 +15,6 @@ USE_NLS_glib-2.0 = "yes" USE_NLS_glib-2.0-native = "yes" USE_NLS_gcc-cross = "no" -TARGET_OS_UC = "linux${@['-uclibc','-uclibcgnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" -TARGET_OS = "${@['${TARGET_OS_UC}', 'uclinux-uclibc'][bb.data.getVar('TARGET_ARCH',d) in ['bfin']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
conf/distro/include/sane-toolchain.inc +33 -1
@@ -137,6 +137,38 @@ ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0" #qemu has taken a dislike to armeb as well ENABLE_BINARY_LOCALE_GENERATION_armeb = "0" +python detect_arm_abi () { + if bb.data.getVar("TARGET_ARCH", d, 1) in [ 'arm', 'armeb' ]: + if bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']: + return "oabi" + return "eabi" + else + return "" +} + +python compute_os_portion_of_target_triplet () { + + if bb.data.getVar('TARGET_ARCH',d,1) in ['bfin']: + os_suffix = "uclinux" + else + os_suffix = "linux" + + arm_abi = detect_arm_abi(d) + if bb.data.getVar("LIBC", d, 1) == "uclibc": + libc_suffix = "uclibc" + else + libc_suffix = "gnu" + + if arm_abi == "eabi": + abi_suffix = "eabi" + if bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and + bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540'] and + bb.data.getVar('DISTRO_FEATURES',d) in ['spe']: + abi_suffix = "spe" + target_os = "%s-%s%s" % (os_suffix, libc_suffix, abi_suffix) + return target_os +} # This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH} -ARM_ABI ?= "${@['','oabi'][bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" +ARM_ABI ?= "${@detect_arm_abi(d,1)}" +TARGET_OS ?= "${@compute_os_portion_of_target_triplet (d, 1)}" include conf/distro/include/sane-toolchain-${ARM_ABI}.inc
Quoted 4 lines · Khem Raj
based upon your idea in last email. Here is something I put together seems to work. It will need testing ofcourse
What do you think about this one ?
Thanks for the update. This looks like generally the right idea, except that I still feel it is undesirable for an innocuous-looking change of MACHINE to result in far-reaching abi consequences. So we need to figure out a way to deal with that.
A few other specific comments about the patch:
Quoted 1 line
+python
detect_arm_abi() {
This doesn't really need to be an OE function. You can declare it directly as Python:
def detect_arm_abi():
conf/distro/include/sane-toolchain.inc ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0" · line 146
Quoted 6 lines
conf/distro/include/sane-toolchain.inc +6
-0+ if bb.data.getVar("TARGET_ARCH", d, 1) in [ 'arm', 'armeb' ]: + if bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']: + return "oabi" + return "eabi" + else + return ""
Notwithstanding the thing about MACHINE that I mentioned above, this logic doesn't really look like it can be correct. There are only two valid ARM ABIs: eabi and oabi, and I would have thought this function should always pick one or the other. In other words, I don't think that returning "" should be a valid result.
conf/distro/include/sane-toolchain.inc ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0" · line 154
Quoted 4 lines
conf/distro/include/sane-toolchain.inc +4
-0+ if bb.data.getVar('TARGET_ARCH',d,1) in ['bfin']: + os_suffix = "uclinux" + else + os_suffix = "linux"
I'm not terribly convinced that this is desirable; TARGET_OS itself has always been a primary user configuration variable and I'm not entirely comfortable with making it be an auto-guessed thing. I'm also not very keen on doing anything to cement the perception that OE is, somehow, only for Linux targets. But I guess I am open to persuasion on this one.
p.
Quoted 10 lines · Phil Blundell
Quoted 4 lines · Khem Raj
based upon your idea in last email. Here is something I put together seems to work. It will need testing ofcourse
What do you think about this one ?
Thanks for the update. This looks like generally the right idea, except that I still feel it is undesirable for an innocuous-looking change of MACHINE to result in far-reaching abi consequences. So we need to figure out a way to deal with that.
I think some machines are incapable of dealing with EABI requirements. thats why this dependency of machines and sometimes machines also dictate ABI like e500 pushes you to use gnuspe. So I think ABI is tied to machine in some ways.
Quoted 4 lines
A few other specific comments about the patch:
Quoted 1 line
+python
detect_arm_abi() {
yeah the follow up patch was more accurate than this one there I have made it as you suggest below.
Quoted 13 lines
This doesn't really need to be an OE function. You can declare it directly as Python:
def
detect_arm_abi():conf/distro/include/sane-toolchain.inc ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0" · line 146
Quoted 6 lines
conf/distro/include/sane-toolchain.inc +6
-0+ if bb.data.getVar("TARGET_ARCH", d, 1) in [ 'arm', 'armeb' ]: + if bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']: + return "oabi" + return "eabi" + else + return ""
Quoted 5 lines
Notwithstanding the thing about MACHINE that I mentioned above, this logic doesn't really look like it can be correct. There are only two valid ARM ABIs: eabi and oabi, and I would have thought this function should always pick one or the other. In other words, I don't think that returning "" should be a valid result.
actually it returns oabi or eabi if architecture is arm otherwise it returns empty string
Quoted 6 lines
conf/distro/include/sane-toolchain.inc ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0" · line 154
Quoted 5 lines
conf/distro/include/sane-toolchain.inc +4
-0+ if bb.data.getVar('TARGET_ARCH',d,1) in ['bfin']: + os_suffix = "uclinux" + else + os_suffix = "linux"
Quoted 6 lines
I'm not terribly convinced that this is desirable;
TARGET_OSitself has always been a primary user configuration variable and I'm not entirely comfortable with making it be an auto-guessed thing. I'm also not very keen on doing anything to cement the perception that OE is, somehow, only for Linux targets. But I guess I am open to persuasion on this one.
A lot of toolchain configuration depend upon TARGET_OS one can easily get is wrong. So IMO its better to synthesize it correctly.
For second point, I think we can accomodate non linux os_suffixes but it will add to complexity for no good reason as of now. The function is easily extendable when the need comes.
I think using arm-linux-gnu (OABI) arm-linux-gnueabi (EABI) would be more logical at present we use arm-linux for OABI that said using linux-gnu on other arches is also nice thing to do.
Similarily for uclibc/EABI we use arm-linux-uclibcgnueabi probably using arm-linux-uclibceabi(EABI) and arm-linux-uclibc(OABI) would be cleaner.
If this seems acceptable I can roll this change as well.
Quoted 9 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 12 lines · Khem Raj
Quoted 10 lines · Phil Blundell
Quoted 4 lines · Khem Raj
based upon your idea in last email. Here is something I put together seems to work. It will need testing ofcourse
What do you think about this one ?
Thanks for the update. This looks like generally the right idea, except that I still feel it is undesirable for an innocuous-looking change of MACHINE to result in far-reaching abi consequences. So we need to figure out a way to deal with that.
Quoted 4 lines
I think some machines are incapable of dealing with EABI requirements. thats why this dependency of machines and sometimes machines also dictate ABI like e500 pushes you to use gnuspe. So I think ABI is tied to machine in some ways.
There are very few, if any, machines in OE that are fundamentally incapable of running EABI code. (There is a larger set of machines where running true EABI code would be awkward and/or slow, but even on those you don't necessarily want to fall back all the way to OABI; a better compromise would be to use a non-interworking EABI variant.) In any case, I think the appropriate response if the user selects an incompatible combination of machine and ABI is to issue a diagnostic, not to silently select a different ABI that you think is more appropriate.
Quoted 2 lines
actually it returns oabi or eabi if architecture is arm otherwise it returns empty string
Ah, so it does. Maybe it would be better to simply not call the function at all on non-arm architectures.
Quoted 2 lines
A lot of toolchain configuration depend upon
TARGET_OSone can easily get is wrong. So IMO its better to synthesize it correctly.
Actually, I'm now beginning to think that this approach is backwards and it would be better to do things the other way around. That is, stick with TARGET_OS as the primary configuration variable that the user sets, and infer everything else (including ${LIBC}) from the value that they have chosen. That seems like it would avoid a lot of these issues with bits of OE second-guessing the user and it would also help to prevent a further proliferation of poorly-documented configuration variables.
Quoted 3 lines
I think using arm-linux-gnu (OABI) arm-linux-gnueabi (EABI) would be more logical at present we use arm-linux for OABI that said using linux-gnu on other arches is also nice thing to do.
Yes, agreed, I think it should ideally be CPU-linux-gnu in general, and CPU-linux-gnuABISUFFIX for particular ABI variants.
Quoted 2 lines
Similarily for uclibc/EABI we use arm-linux-uclibcgnueabi probably using arm-linux-uclibceabi(EABI) and arm-linux-uclibc(OABI) would be cleaner.
I guess that depends on what the GCC/uClibc conventions are. "arm-linux-gnuuclibc" looks a bit ugly but presumably the GNU folks like to keep their name in there somewhere.
p.
Quoted 37 lines · Phil Blundell
Quoted 12 lines · Khem Raj
Quoted 10 lines · Phil Blundell
Quoted 4 lines · Khem Raj
based upon your idea in last email. Here is something I put together seems to work. It will need testing ofcourse
What do you think about this one ?
Thanks for the update. This looks like generally the right idea, except that I still feel it is undesirable for an innocuous-looking change of MACHINE to result in far-reaching abi consequences. So we need to figure out a way to deal with that.
Quoted 4 lines
I think some machines are incapable of dealing with EABI requirements. thats why this dependency of machines and sometimes machines also dictate ABI like e500 pushes you to use gnuspe. So I think ABI is tied to machine in some ways.
There are very few, if any, machines in OE that are fundamentally incapable of running EABI code. (There is a larger set of machines where running true EABI code would be awkward and/or slow, but even on those you don't necessarily want to fall back all the way to OABI; a better compromise would be to use a non-interworking EABI variant.) In any case, I think the appropriate response if the user selects an incompatible combination of machine and ABI is to issue a diagnostic, not to silently select a different ABI that you think is more appropriate.
Quoted 2 lines
actually it returns oabi or eabi if architecture is arm otherwise it returns empty string
Ah, so it does. Maybe it would be better to simply not call the function at all on non-arm architectures.
Quoted 2 lines
A lot of toolchain configuration depend upon
TARGET_OSone can easily get is wrong. So IMO its better to synthesize it correctly.
Quoted 7 lines
Actually, I'm now beginning to think that this approach is backwards and it would be better to do things the other way around. That is, stick with
TARGET_OSas the primary configuration variable that the user sets, and infer everything else (including ${LIBC}) from the value that they have chosen. That seems like it would avoid a lot of these issues with bits of OE second-guessing the user and it would also help to prevent a further proliferation of poorly-documented configuration variables.
hmm yes and these function could be turned into checking functions of some sort if needed. So user can get notified for what sins he has done by selecting a particular TARGET_OS :)
where do you think it should be defined then ?
it definitely needs to know about machine so machine conf seems to be correct and distros are not per arch bases so defining it in distros would not work the way it does now.
I do not like guessing work too but somehow it should not be too much of a pain for a user to set it too.
not many users would know so many details about machine libraries and ABIs and how they impact the target triplets. More than often they will get it wrong.
Saying that user defines MACHINE and LIBC one wants in his DISTRO and computing TARGET_TRIPLET from this does not sound a bad idea to me. may be we can change TARGET_OS to not indicate the last part of target triplet instead it is something like say 'linux' 'freebsd' or 'none' and then we can concatenate them
as we are doing to form the real target triplet.
I think this would enhance the user experience of OE.
Quoted 8 lines
Quoted 4 lines
I think using arm-linux-gnu (OABI) arm-linux-gnueabi (EABI) would be more logical at present we use arm-linux for OABI that said using linux-gnu on other arches is also nice thing to do.
Yes, agreed, I think it should ideally be CPU-linux-gnu in general, and CPU-linux-gnuABISUFFIX for particular ABI variants.
Quoted 6 lines
Quoted 2 lines
Similarily for uclibc/EABI we use arm-linux-uclibcgnueabi probably using arm-linux-uclibceabi(EABI) and arm-linux-uclibc(OABI) would be cleaner.
I guess that depends on what the GCC/uClibc conventions are. "arm-linux-gnuuclibc" looks a bit ugly but presumably the GNU folks like to keep their name in there somewhere.
Generally linux-gnu would mean its linux with GNU libc or eglibc and linux-uclibc means its linux with uclibc. We can omit gnu
many places configure prods for uclibc and eabi so as long as they are there in the last part of target triplet it wil be ok.
Quoted 9 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 63 lines · Khem Raj
Quoted 37 lines · Phil Blundell
Quoted 12 lines · Khem Raj
Quoted 10 lines · Phil Blundell
Quoted 4 lines · Khem Raj
based upon your idea in last email. Here is something I put together seems to work. It will need testing ofcourse
What do you think about this one ?
Thanks for the update. This looks like generally the right idea, except that I still feel it is undesirable for an innocuous-looking change of MACHINE to result in far-reaching abi consequences. So we need to figure out a way to deal with that.
Quoted 4 lines
I think some machines are incapable of dealing with EABI requirements. thats why this dependency of machines and sometimes machines also dictate ABI like e500 pushes you to use gnuspe. So I think ABI is tied to machine in some ways.
There are very few, if any, machines in OE that are fundamentally incapable of running EABI code. (There is a larger set of machines where running true EABI code would be awkward and/or slow, but even on those you don't necessarily want to fall back all the way to OABI; a better compromise would be to use a non-interworking EABI variant.) In any case, I think the appropriate response if the user selects an incompatible combination of machine and ABI is to issue a diagnostic, not to silently select a different ABI that you think is more appropriate.
Quoted 2 lines
actually it returns oabi or eabi if architecture is arm otherwise it returns empty string
Ah, so it does. Maybe it would be better to simply not call the function at all on non-arm architectures.
Quoted 2 lines
A lot of toolchain configuration depend upon
TARGET_OSone can easily get is wrong. So IMO its better to synthesize it correctly.Quoted 7 lines
Actually, I'm now beginning to think that this approach is backwards and it would be better to do things the other way around. That is, stick with
TARGET_OSas the primary configuration variable that the user sets, and infer everything else (including ${LIBC}) from the value that they have chosen. That seems like it would avoid a lot of these issues with bits of OE second-guessing the user and it would also help to prevent a further proliferation of poorly-documented configuration variables.hmm yes and these function could be turned into checking functions of some sort if needed. So user can get notified for what sins he has done by selecting a particular
TARGET_OS:)where do you think it should be defined then ?
it definitely needs to know about machine so machine conf seems to be correct and distros are not per arch bases so defining it in distros would not work the way it does now.I do not like guessing work too but somehow it should not be too much of a pain for a user to set it too.
not many users would know so many details about machine libraries and ABIs and how they impact the target triplets. More than often they will get it wrong.
Quoted 8 lines
Saying that user defines MACHINE and LIBC one wants in his DISTRO and computing TARGET_TRIPLET from this does not sound a bad idea to me. may be we can change
TARGET_OSto not indicate the last part of target triplet instead it is something like say 'linux' 'freebsd' or 'none' and then we can concatenate them
as we are doing to form the real target triplet.I think this would enhance the user experience of OE.
Moreover user can always override it in distro conf or local conf after including sane-toolchain.inc
e.g. he only has a distro where he only cares about one arch and one libc or some such
Quoted 32 lines
Quoted 9 lines
Quoted 5 lines
I think using arm-linux-gnu (OABI) arm-linux-gnueabi (EABI) would be more logical at present we use arm-linux for OABI that said using linux-gnu on other arches is also nice thing to do.
Yes, agreed, I think it should ideally be CPU-linux-gnu in general, and CPU-linux-gnuABISUFFIX for particular ABI variants.
Quoted 6 lines
Quoted 2 lines
Similarily for uclibc/EABI we use arm-linux-uclibcgnueabi probably using arm-linux-uclibceabi(EABI) and arm-linux-uclibc(OABI) would be cleaner.
I guess that depends on what the GCC/uClibc conventions are. "arm-linux-gnuuclibc" looks a bit ugly but presumably the GNU folks like to keep their name in there somewhere.
Generally linux-gnu would mean its linux with GNU libc or eglibc and linux-uclibc means its linux with uclibc. We can omit gnu
many places configure prods for uclibc and eabi so as long as they are there in the last part of target triplet it wil be ok.
Quoted 9 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 9 lines · Khem Raj
Quoted 7 lines · Phil Blundell
Actually, I'm now beginning to think that this approach is backwards and it would be better to do things the other way around. That is, stick with
TARGET_OSas the primary configuration variable that the user sets, and infer everything else (including ${LIBC}) from the value that they have chosen. That seems like it would avoid a lot of these issues with bits of OE second-guessing the user and it would also help to prevent a further proliferation of poorly-documented configuration variables.
Quoted 3 lines
hmm yes and these function could be turned into checking functions of some sort if needed. So user can get notified for what sins he has done by selecting a particular
TARGET_OS:)
That kind of thing, yes.
Quoted 4 lines
where do you think it should be defined then ?
it definitely needs to know about machine so machine conf seems to be correct and distros are not per arch bases so defining it in distros would not work the way it does now.
If "it" means TARGET_OS then I think it probably should be defined by DISTRO.conf just as it is now. DISTROs do need to have some architecture knowledge (and, in fact, I would guess that the vast majority of currently-defined DISTROs are single-architecture-only) so this doesn't seem like it should be a problem.
Quoted 6 lines
I do not like guessing work too but somehow it should not be too much of a pain for a user to set it too.
not many users would know so many details about machine libraries and ABIs and how they impact the target triplets. More than often they will get it wrong.
All that the end user needs to do is set MACHINE and DISTRO and he should be in business; the distro will figure everything else out.
Worrying about target triplets is the job of the distro maintainer, and they ought to know what they're doing for at least the set of architectures that they care about.
Quoted 8 lines
Saying that user defines MACHINE and LIBC one wants in his DISTRO and computing
TARGET_TRIPLETfrom this does not sound a bad idea to me. may be we can changeTARGET_OSto not indicate the last part of target triplet instead it is something like say 'linux' 'freebsd' or 'none' and then we can concatenate them
as we are doing to form the real target triplet.I think this would enhance the user experience of OE.
I'm not sure that changing the meaning of TARGET_OS at this stage is a good idea. If you wanted to add a new include file that folks can use to auto-compute a TARGET_OS value from a (LIBC, ABI) kind of tuple then that wouldn't be an unreasonable thing to do. I still feel that random fluctuations of target abi as a result of changes to MACHINE are probably a toxic idea and something best avoided, unless there is a reliable method of interlocking them with PACKAGE_ARCH in some way.
p.
Quoted 21 lines · Phil Blundell
Quoted 7 lines · Phil Blundell
Quoted 1 line · Khem Raj
We can override only for powerpc second time around. So changing it
to
Quoted 4 lines
TARGET_OS_powerpc= "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] andbb.data.getVar('MACHINE',d)in ['calamari',Quoted 7 lines
'tqm8540']]}"
Quoted 2 lines
will that be ok ?
That's better, but it still doesn't seem terribly elegant. I also remain slightly unconvinced that the eglibc-specific file is, conceptually, the right place for this logic.
Actually, there is still a bigger problem with this change: it will cause the ABI to change in a semi-random way depending on the selected MACHINE and this will screw up people who are trying to do multimachine builds.
Quoted 6 lines
For example, if I set MACHINE=calamari and then bitbake micro-image, it will select linux-gnuspe and I will presumably get the SPE ABI. But then, if I set MACHINE=efika, say, and build another package in the same tree, it'll now select regular linux and the ABI will change, although this won't be reflected in the naming of the output packages: they'll all just be named "powerpc".
The efika ones are named 'ppc603e' fwiw.
regards,
Koen
Quoted 21 lines · Phil Blundell
Quoted 7 lines · Phil Blundell
Quoted 1 line · Khem Raj
We can override only for powerpc second time around. So changing it
to
Quoted 4 lines
TARGET_OS_powerpc= "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] andbb.data.getVar('MACHINE',d)in ['calamari',Quoted 7 lines
'tqm8540']]}"
Quoted 2 lines
will that be ok ?
That's better, but it still doesn't seem terribly elegant. I also remain slightly unconvinced that the eglibc-specific file is, conceptually, the right place for this logic.
Actually, there is still a bigger problem with this change: it will cause the ABI to change in a semi-random way depending on the selected MACHINE and this will screw up people who are trying to do multimachine builds.
Quoted 10 lines
For example, if I set MACHINE=calamari and then bitbake micro-image, it will select linux-gnuspe and I will presumably get the SPE ABI. But then, if I set MACHINE=efika, say, and build another package in the same tree, it'll now select regular linux and the ABI will change, although this won't be reflected in the naming of the output packages: they'll all just be named "powerpc". Worse, if eglibc itself happens to be version-bumped while I am building for efika, my C library will be quietly recompiled with a different ABI and, presumably, lose in a fairly serious way.
attaching the patch that actually will get further than parsing.
Thx
-Khem
Quoted 8 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
conf/distro/include/sane-toolchain-eglibc.inc +0 -4
@@ -3,10 +3,6 @@ # eglibc: # [23:00] oxo: glibc (any version) on sparc does not like (repeat me) "-Os" -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - -TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" - FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
conf/distro/include/sane-toolchain-glibc.inc +0 -2
@@ -2,8 +2,6 @@ # glibc: -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info # perl has some problems, see http://bugs.openembedded.net/show_bug.cgi?id=1616
conf/distro/include/sane-toolchain-uclibc.inc +0 -3
@@ -15,9 +15,6 @@ USE_NLS_glib-2.0 = "yes" USE_NLS_glib-2.0-native = "yes" USE_NLS_gcc-cross = "no" -TARGET_OS_UC = "linux${@['-uclibc','-uclibcgnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" -TARGET_OS = "${@['${TARGET_OS_UC}', 'uclinux-uclibc'][bb.data.getVar('TARGET_ARCH',d) in ['bfin']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
conf/distro/include/sane-toolchain.inc +33 -1
@@ -137,6 +137,38 @@ ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0" #qemu has taken a dislike to armeb as well ENABLE_BINARY_LOCALE_GENERATION_armeb = "0" +def detect_arm_abi (d): + import bb + if bb.data.getVar("TARGET_ARCH", d, 1) in [ 'arm', 'armeb' ]: + if bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']: + return "oabi" + return "eabi" + else: + return "" + +def compute_os_portion_of_target_triplet (d): + import bb + if bb.data.getVar('TARGET_ARCH',d,1) in ['bfin']: + os_suffix = "uclinux" + else: + os_suffix = "linux" + + arm_abi = detect_arm_abi(d) + if bb.data.getVar("LIBC", d, 1) == "uclibc": + libc_suffix = "uclibc" + else: + libc_suffix = "gnu" + + if arm_abi == "eabi": + abi_suffix = "eabi" + if bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and \ + bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540'] and \ + bb.data.getVar('DISTRO_FEATURES',d) in ['spe']: + abi_suffix = "spe" + target_os = "%s-%s%s" % (os_suffix, libc_suffix, abi_suffix) + return target_os + # This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH} -ARM_ABI ?= "${@['','oabi'][bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" +ARM_ABI ?= "${@detect_arm_abi(d)}" +TARGET_OS ?= "${@compute_os_portion_of_target_triplet(d)}" include conf/distro/include/sane-toolchain-${ARM_ABI}.inc
What about using MACHINE_FEATURES (or CPU_FEATURES) for things like eabi/spe?
TARGET_OS = "linux-"
if ARCH in [ppc,powerpc] and MACHINE_FEATURES.find('spe') then
if LIBC=uclibc then
TARGET_OS += "uclibc"
fi
TARGET_OS += "gnuspe"
fi
Same for adding eabi:
TARGET_OS = "linux-"
if ARCH in [arm,armeb] and MACHINE_FEATURES.find('eabi') then
if LIBC=uclibc then
TARGET_OS += "uclibc"
fi
TARGET_OS += "gnueabi"
fi
spe/eabi can be added to MACHINE_FEATURES in conf/machine/include/tune-* files and distros can choose do they support it or not by DISTRO_FEATURES (examples needs to be changed then to use COMBINED_FEATURES variable). This way no one has to change XY files just because he has new board with ppc500v2 core, we do not have to remember about armv4 devices which are not capable of EABI with gcc 4.3.x and older (but if they will support EABI in future we just change tune-strongarm.inc file).
Regards,
Signature · 3 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 1 line · Marcin Juszkiewicz
What about using
MACHINE_FEATURES(orCPU_FEATURES) for things like eabi/spe?
yes that is a very good idea.
Quoted 23 lines
TARGET_OS= "linux-"
if ARCH in [ppc,powerpc] andMACHINE_FEATURES.find('spe')thenif LIBC=uclibc then
TARGET_OS += "uclibc"fi
TARGET_OS+= "gnuspe"
fiSame for adding eabi:
TARGET_OS= "linux-"
if ARCH in [arm,armeb] andMACHINE_FEATURES.find('eabi')thenif LIBC=uclibc then
TARGET_OS += "uclibc"fi
TARGET_OS+= "gnueabi"
fi
Quoted 7 lines
spe/eabi can be added to
MACHINE_FEATURESin conf/machine/include/tune-* files and distros can choose do they support it or not byDISTRO_FEATURES(examples needs to be changed then to useCOMBINED_FEATURESvariable). This way no one has to change XY files just because he has new board with ppc500v2 core, we do not have to remember about armv4 devices which are not capable of EABI with gcc 4.3.x and older (but if they will support EABI in future we just change tune-strongarm.inc file).
seems a nice approach. Let me try to implement something on these lines.
Quoted 13 lines
Regards,
Signature · 10 lines
JID: [email protected] Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
In reply to Marcin JuszkiewiczQuoted 24 lines · Marcin Juszkiewicz
What about using
MACHINE_FEATURES(orCPU_FEATURES) for things like eabi/spe?
TARGET_OS= "linux-"
if ARCH in [ppc,powerpc] andMACHINE_FEATURES.find('spe')thenif LIBC=uclibc then
TARGET_OS += "uclibc"fi
TARGET_OS+= "gnuspe"
fiSame for adding eabi:
TARGET_OS= "linux-"
if ARCH in [arm,armeb] andMACHINE_FEATURES.find('eabi')thenif LIBC=uclibc then
TARGET_OS += "uclibc"fi
TARGET_OS+= "gnueabi"
fi
Quoted 7 lines
spe/eabi can be added to
MACHINE_FEATURESin conf/machine/include/tune-* files and distros can choose do they support it or not byDISTRO_FEATURES(examples needs to be changed then to useCOMBINED_FEATURESvariable). This way no one has to change XY files just because he has new board with ppc500v2 core, we do not have to remember about armv4 devices which are not capable of EABI with gcc 4.3.x and older (but if they will support EABI in future we just change tune-strongarm.inc file).
Attached implementation is based on this suggestion. I have not done wholesale change to distro confs only for micro and minimal.
I tested this patch with
for targ in ls openembedded/conf/machine/*.conf|cut -d '/' -f 4|cut -d '.' -f 1; do echo -n "$targ "; MACHINE=$targ DISTRO=minimal bitbake -e |grep TARGET_OS=\"; done
and all machine confs were giving correct values for TARGET_OS also I repeated same test with DISTRO=minimal-uclibc
Comments ?
Thanks
-Khem
classes/siteinfo.bbclass +20 -0
@@ -22,21 +22,29 @@ def get_siteinfo_list(d): targetinfo = {\ "armeb-linux": "endian-big bit-32 common-linux common-glibc arm-common",\ + "armeb-linux-gnu": "endian-big bit-32 common-linux common-glibc arm-common",\ "armeb-linux-gnueabi": "endian-big bit-32 common-linux common-glibc arm-common armeb-linux",\ "armeb-linux-uclibc": "endian-big bit-32 common-linux common-uclibc arm-common",\ "armeb-linux-uclibcgnueabi": "endian-big bit-32 common-linux common-uclibc arm-common armeb-linux-uclibc",\ + "armeb-linux-uclibceabi": "endian-big bit-32 common-linux common-uclibc arm-common armeb-linux-uclibc",\ "arm-darwin": "endian-little bit-32 common-darwin",\ "arm-darwin9": "endian-little bit-32 common-darwin",\ "arm-linux": "endian-little bit-32 common-linux common-glibc arm-common",\ + "arm-linux-gnu": "endian-little bit-32 common-linux common-glibc arm-common",\ "arm-linux-gnueabi": "endian-little bit-32 common-linux common-glibc arm-common arm-linux",\ "arm-linux-uclibc": "endian-little bit-32 common-linux common-uclibc arm-common",\ "arm-linux-uclibcgnueabi": "endian-little bit-32 common-linux common-uclibc arm-common arm-linux-uclibc",\ + "arm-linux-uclibceabi": "endian-little bit-32 common-linux common-uclibc arm-common arm-linux-uclibc",\ "avr32-linux-uclibc": "endian-big bit-32 common-linux common-uclibc avr32-common",\ "bfin-uclinux-uclibc": "endian-little bit-32 common-uclibc bfin-common",\ "i386-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i386-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i486-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i486-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i586-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i586-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i686-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i686-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i386-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\ "i486-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\ "i586-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\
@@ -50,22 +58,34 @@ def get_siteinfo_list(d): "i586-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "i686-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "ia64-linux": "endian-little bit-64 common-linux common-glibc",\ + "ia64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ "mipsel-linux": "endian-little bit-32 common-linux common-glibc",\ + "mipsel-linux-gnu": "endian-little bit-32 common-linux common-glibc",\ "mipsel-linux-uclibc": "endian-little bit-32 common-linux common-uclibc",\ "mips-linux": "endian-big bit-32 common-linux common-glibc",\ + "mips-linux-gnu": "endian-big bit-32 common-linux common-glibc",\ "mips-linux-uclibc": "endian-big bit-32 common-linux common-uclibc",\ "powerpc-darwin": "endian-big bit-32 common-darwin",\ "ppc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\ + "ppc-linux-gnu": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "ppc64-linux": "endian-big bit-64 common-linux common-glibc powerpc-common",\ + "ppc64-linux-gnu": "endian-big bit-64 common-linux common-glibc powerpc-common",\ "powerpc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\ + "powerpc-linux-gnu": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "powerpc-linux-gnuspe": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "powerpc-linux-uclibc": "endian-big bit-32 common-linux common-uclibc powerpc-common",\ + "powerpc-linux-uclibcspe": "endian-big bit-32 common-linux common-uclibc powerpc-common",\ "sh3-linux": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh3-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ "sh4-linux": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh4-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ "sh4-linux-uclibc": "endian-little bit-32 common-linux common-uclibc sh-common",\ "sparc-linux": "endian-big bit-32 common-linux common-glibc",\ + "sparc-linux-gnu": "endian-big bit-32 common-linux common-glibc",\ "viac3-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "viac3-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "x86_64-linux": "endian-little bit-64 common-linux common-glibc",\ + "x86_64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ "x86_64-linux-uclibc": "endian-little bit-64 common-linux common-uclibc"} if target in targetinfo: info = targetinfo[target].split()
conf/distro/include/sane-toolchain-eglibc.inc +0 -4
@@ -3,10 +3,6 @@ # eglibc: # [23:00] oxo: glibc (any version) on sparc does not like (repeat me) "-Os" -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - -TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" - FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
conf/distro/include/sane-toolchain-glibc.inc +0 -2
@@ -2,8 +2,6 @@ # glibc: -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info # perl has some problems, see http://bugs.openembedded.net/show_bug.cgi?id=1616
conf/distro/include/sane-toolchain-uclibc.inc +0 -3
@@ -15,9 +15,6 @@ USE_NLS_glib-2.0 = "yes" USE_NLS_glib-2.0-native = "yes" USE_NLS_gcc-cross = "no" -TARGET_OS_UC = "linux${@['-uclibc','-uclibcgnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" -TARGET_OS = "${@['${TARGET_OS_UC}', 'uclinux-uclibc'][bb.data.getVar('TARGET_ARCH',d) in ['bfin']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
conf/distro/include/sane-toolchain.inc +38 -1
@@ -136,7 +136,44 @@ ENABLE_BINARY_LOCALE_GENERATION_armv7a = "0" #qemu has taken a dislike to armeb as well ENABLE_BINARY_LOCALE_GENERATION_armeb = "0" +def detect_arm_abi (d): + import bb + if bb.data.getVar('MACHINE_FEATURES',d) is None: + return "" + if bb.data.getVar("TARGET_ARCH", d, 1) in [ 'arm', 'armeb' ]: + if 'eabi' in bb.data.getVar('MACHINE_FEATURES',d).split(): + return "eabi" + return "oabi" + return "" + +def compute_os_portion_of_target_triplet (d): + import bb + if bb.data.getVar("LIBC", d, 1) == "uclibc": + libc_suffix = "uclibc" + else: + libc_suffix = "gnu" + + if bb.data.getVar('TARGET_ARCH',d,1) in ['bfin']: + if libc_suffix == "gnu": + bb.fatal("bfin is not supported on glibc/eglibc. Please choose uclibc") + else: + os_suffix = "uclinux" + else: + os_suffix = "linux" + if bb.data.getVar('MACHINE_FEATURES',d) is not None: + if 'eabi' in bb.data.getVar('MACHINE_FEATURES',d).split(): + abi_suffix = "eabi" + elif 'spe' in bb.data.getVar('MACHINE_FEATURES',d).split(): + abi_suffix = "spe" + else: + abi_suffix = "" + else: + bb.note("MACHINE_FEATURES is not set abi suffix not set") + abi_suffix = "" + target_os = "%s-%s%s" % (os_suffix, libc_suffix, abi_suffix) + return target_os # This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH} -ARM_ABI ?= "${@['','oabi'][bb.data.getVar('MACHINE',d) in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" +ARM_ABI = "${@detect_arm_abi(d)}" +TARGET_OS = "${@compute_os_portion_of_target_triplet(d)}" include conf/distro/include/sane-toolchain-${ARM_ABI}.inc
conf/distro/micro.conf +1 -7
@@ -16,16 +16,10 @@ DISTRO_NAME = "micro" DISTRO_VERSION = "${SRCDATE}" ############################################################################# -# TARGET OS -############################################################################# -# Linux -TARGET_OS = "linux" - -############################################################################# # DISTRO FEATURE SELECTION ############################################################################# # No features selected -DISTRO_FEATURES = "" +DISTRO_FEATURES = "eabi spe" ############################################################################# # LIBRARY NAMES
conf/distro/minimal.conf +2 -0
@@ -25,6 +25,8 @@ DISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove thi DISTRO_BLUETOOTH_MANAGER = "bluez4" # We want images supporting the following features (for task-base) DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci" +# Following features are for ARM and E500 based machines +DISTRO_FEATURES += "eabi spe" ############################################################################# # LIBRARY NAMES
conf/machine/beagleboard.conf +2 -1
@@ -13,6 +13,8 @@ XSERVER = "xserver-xorg \ # Only has DVI connector for external screen GUI_MACHINE_CLASS = "bigscreen" +MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa" + require conf/machine/include/omap3.inc IMAGE_FSTYPES += "tar.bz2 ubi"
@@ -43,4 +45,3 @@ PREFERRED_VERSION_u-boot = "git" MACHINE_EXTRA_RRECOMMENDS = " omap3-sgx-modules " # and sdio -MACHINE_FEATURES = "kernel26 screen apm usbgadget usbhost vfat alsa"
conf/machine/include/ixp4xx.inc +0 -1
@@ -22,7 +22,6 @@ IMAGE_FSTYPES ?= "jffs2 tar.gz" EXTRA_IMAGECMD_jffs2 = "--pad --eraseblock=0x20000 -n" require conf/machine/include/tune-xscale.inc -require conf/machine/include/tune-thumb.inc #------------------------------------------------------------------------------- # Board defaults
conf/machine/include/tune-arm1136-novfp.inc +1 -0
@@ -5,6 +5,7 @@ TARGET_CC_ARCH = "-march=armv6j -mtune=arm1136jf-s" FEED_ARCH = "armv6-novfp" BASE_PACKAGE_ARCH = "armv6-novfp" PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te armv6-novfp" +MACHINE_FEATURES += "eabi" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
conf/machine/include/tune-arm1136jf-s.inc +1 -0
@@ -2,6 +2,7 @@ TARGET_CC_ARCH = "-march=armv6j -mtune=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp" FEED_ARCH = "armv6" BASE_PACKAGE_ARCH = "armv6" PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te armv6" +MACHINE_FEATURES += "eabi" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
conf/machine/include/tune-arm1176jzf-s.inc +1 -1
@@ -2,6 +2,6 @@ TARGET_CC_ARCH = "-march=armv6j -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=softfp FEED_ARCH = "armv6" BASE_PACKAGE_ARCH = "armv6" PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te armv6" - +MACHINE_FEATURES += "eabi" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
conf/machine/include/tune-arm920t.inc +1 -0
@@ -2,6 +2,7 @@ FEED_ARCH = "armv4t" BASE_PACKAGE_ARCH = "armv4t" TARGET_CC_ARCH = "-march=armv4t -mtune=arm920t" PACKAGE_EXTRA_ARCHS += "armv4 armv4t" +MACHINE_FEATURES += "eabi" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
conf/machine/include/tune-arm926ejs.inc +1 -0
@@ -5,6 +5,7 @@ PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te" # For gcc 4.x you need: TARGET_CC_ARCH = "-march=armv5te -mtune=arm926ej-s" BASE_PACKAGE_ARCH = "armv5te" +MACHINE_FEATURES += "eabi" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
conf/machine/include/tune-armv7.inc +1 -0
@@ -5,6 +5,7 @@ TARGET_CC_ARCH = "-march=armv7 -mfpu=vfp -mfloat-abi=softfp" FEED_ARCH = "armv7" PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te armv6 armv7" BASE_PACKAGE_ARCH = "armv7" +MACHINE_FEATURES += "eabi" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
conf/machine/include/tune-cortexa8.inc +1 -0
@@ -7,3 +7,4 @@ TARGET_CC_ARCH = "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" FEED_ARCH = "armv7a" PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te armv6 armv7 armv7a" BASE_PACKAGE_ARCH = "armv7a" +MACHINE_FEATURES += "eabi"
conf/machine/include/tune-cortexa9.inc +1 -0
@@ -7,3 +7,4 @@ TARGET_CC_ARCH = "-march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp" FEED_ARCH = "armv7a" PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te armv6 armv7 armv7a" BASE_PACKAGE_ARCH = "armv7a" +MACHINE_FEATURES += "eabi"
conf/machine/include/tune-cortexm1.inc +1 -0
@@ -1,3 +1,4 @@ TARGET_CC_ARCH = "-march=armv7 -mtune=cortex-m1 -mfpu=vfp -mfloat-abi=softfp" FEED_ARCH = "armv6" BASE_PACKAGE_ARCH = "armv6" +MACHINE_FEATURES += "eabi"
conf/machine/include/tune-cortexm3.inc +1 -0
@@ -2,3 +2,4 @@ TARGET_CC_ARCH = "-march=armv7-m -mtune=cortex-m3 -mfpu=vfp -mfloat-abi=softfp" FEED_ARCH = "armv7" BASE_PACKAGE_ARCH = "armv7" +MACHINE_FEATURES += "eabi"
conf/machine/include/tune-cortexr4.inc +1 -0
@@ -2,3 +2,4 @@ TARGET_CC_ARCH = "-march=armv7-r -mtune=cortex-r4 -mfpu=vfp -mfloat-abi=softfp" FEED_ARCH = "armv7" BASE_PACKAGE_ARCH = "armv7" +MACHINE_FEATURES += "eabi"
conf/machine/include/tune-ppce300c2.inc +1 -0
@@ -2,3 +2,4 @@ TARGET_CC_ARCH = "-mcpu=e300c2" BASE_PACKAGE_ARCH = "ppce300c2" FEED_ARCH = "ppce300c2" PACKAGE_EXTRA_ARCHS += "ppce300c2" +MACHINE_FEATURES += "spe"
conf/machine/include/tune-ppce300c3.inc +1 -0
@@ -2,3 +2,4 @@ TARGET_CC_ARCH = "-mcpu=e300c3" BASE_PACKAGE_ARCH = "ppce300c3" FEED_ARCH = "ppce300c3" PACKAGE_EXTRA_ARCHS += "ppce300c3" +MACHINE_FEATURES += "spe"
conf/machine/include/tune-ppce500.inc +1 -0
@@ -2,3 +2,4 @@ TARGET_CC_ARCH = "-mcpu=8540" BASE_PACKAGE_ARCH = "ppce500" FEED_ARCH = "ppce500" PACKAGE_EXTRA_ARCHS += "ppce500" +MACHINE_FEATURES += "spe"
conf/machine/include/tune-ppce500v2.inc +1 -0
@@ -2,3 +2,4 @@ TARGET_CC_ARCH = "-mcpu=8548 -mspe=yes -mabi=spe -mhard-float -mfloat-gprs=doubl BASE_PACKAGE_ARCH = "ppce500v2" FEED_ARCH = "ppce500v2" PACKAGE_EXTRA_ARCHS += "ppce500v2" +MACHINE_FEATURES += "spe"
conf/machine/include/tune-xscale.inc +1 -1
@@ -4,7 +4,7 @@ TARGET_CC_ARCH = "-march=armv5te -mtune=xscale" TARGET_CC_KERNEL_ARCH = "-march=armv5te -mtune=xscale" PACKAGE_EXTRA_ARCHS += "${@['armv4b armv4tb armv5teb', 'armv4 armv4t armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" BASE_PACKAGE_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" - +MACHINE_FEATURES += "eabi" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
conf/machine/looxc550.conf +1 -1
@@ -7,7 +7,6 @@ # TARGET_ARCH = "arm" -require conf/machine/include/tune-xscale.inc ROOT_FLASH_SIZE = "32" VOLATILE_STORAGE_SIZE = "64"
@@ -32,4 +31,5 @@ module_autoload_g_ether = "g_ether" SERIAL_CONSOLE = "115200 ttyS0 vt100" USE_VT = "0" +require conf/machine/include/tune-xscale.inc require conf/machine/include/LAB-settings.inc
recipes/openssl/openssl.inc +3 -0
@@ -32,6 +32,9 @@ do_configure () { if [ "x$os" = "xlinux-uclibc" ]; then os=linux fi + if [ "x$os" = "xlinux-uclibceabi" ]; then + os=linux + fi target="$os-${HOST_ARCH}" case $target in linux-arm)
recipes/uclibc/uclibc.inc +6 -5
@@ -146,12 +146,13 @@ do_configure() { sed -i -e '/CONFIG_ARM_EABI/d' ${S}/.config - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then - echo "CONFIG_ARM_EABI=y" >> ${S}/.config - else - echo "# CONFIG_ARM_EABI is not set" >> ${S}/.config + if [ `echo ${TARGET_ARCH} | grep -e '^arm'` ]; then + if [ `echo ${TARGET_OS} | grep -e 'eabi$'` ]; then + echo "CONFIG_ARM_EABI=y" >> ${S}/.config + else + echo "# CONFIG_ARM_EABI is not set" >> ${S}/.config + fi fi - yes '' | oe_runmake oldconfig }
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 7 lines
Attached implementation is based on this suggestion. I have not done wholesale change to distro confs only for micro and minimal.
I tested this patch with
Quoted 8 lines
for targ in
ls openembedded/conf/machine/*.conf|cut -d '/' -f 4|cut -d '.' -f 1; do echo -n "$targ "; MACHINE=$targ DISTRO=minimal bitbake -e |grep TARGET_OS=\"; doneand all machine confs were giving correct values for
TARGET_OSalso I repeated same test with DISTRO=minimal-uclibcComments ?
e300 doesn't implement the signal processing engine (SPE). Only e500v1 and e500v2 supports these instructions.
Dirk
Quoted 9 lines
Thanks
-Khem
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 11 lines · Dirk Opfer
Quoted 11 lines
Attached implementation is based on this suggestion. I have not done wholesale change to distro confs only for micro and minimal.
I tested this patch with
for targ in
ls openembedded/conf/machine/*.conf|cut -d '/' -f 4|cut -d '.' -f 1; do echo -n "$targ "; MACHINE=$targ DISTRO=minimal bitbake -e |grep TARGET_OS=\"; done
Quoted 7 lines
Quoted 4 lines
and all machine confs were giving correct values for
TARGET_OSalso I repeated same test with DISTRO=minimal-uclibcComments ?
e300 doesn't implement the signal processing engine (SPE). Only e500v1 and e500v2 supports these instructions.
yes thats right. Thanks for pointing it out.
-Khem
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 15 lines · Khem Raj
Quoted 14 lines · Dirk Opfer
Quoted 14 lines
Attached implementation is based on this suggestion. I have not done wholesale change to distro confs only for micro and minimal.
I tested this patch with
for targ in
ls openembedded/conf/machine/*.conf|cut -d '/' -f 4|cut -d '.' -f 1; do echo -n "$targ "; MACHINE=$targ DISTRO=minimal bitbake -e |grep TARGET_OS=\"; doneand all machine confs were giving correct values for
TARGET_OSalso I repeated same test with DISTRO=minimal-uclibc
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Comments ?
e300 doesn't implement the signal processing engine (SPE). Only e500v1 and e500v2 supports these instructions.
yes thats right. Thanks for pointing it out.
-Khem
As discussed further on IRC here is another implementation which adds eabi to be a DISTRO_FEATURE and depends on BASE_PACKAGE_ARCH to find the machine arch which can support eabi. For SPE there is no choice left to distro.
Sample change for distro I have done for minimal and micro. We might create new distro for oabi like micro-oabi and minimal-oabi similarily a uclibc variant if needed. For now the micro and minimal distros ask for eabi feature.
Another change it has it changing linux-uclibcgnueabi to linux-uclibceabi and -linux to -linux-gnu
I have built a console image successfully with this
Comments ?
Thanks
-Khem
classes/insane.bbclass +1 -1
@@ -73,7 +73,7 @@ def package_qa_get_machine_dict(): "arm" : (40, 0, 0, True, True), "armeb" : (40, 0, 0, False, True), }, - "linux-uclibcgnueabi" : { + "linux-uclibceabi" : { "arm" : (40, 0, 0, True, True), "armeb" : (40, 0, 0, False, True), },
classes/qmake_base.bbclass +1 -1
@@ -33,7 +33,7 @@ oe_qmake_mkspecs () { qmake_base_do_configure() { case ${QMAKESPEC} in - *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++|*linux-uclibcgnueabi-oe-g++) + *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++|*linux-uclibceabi-oe-g++) ;; *-oe-g++) die Unsupported target ${TARGET_OS} for oe-g++ qmake spec
classes/siteinfo.bbclass +20 -2
@@ -22,21 +22,27 @@ def get_siteinfo_list(d): targetinfo = {\ "armeb-linux": "endian-big bit-32 common-linux common-glibc arm-common",\ + "armeb-linux-gnu": "endian-big bit-32 common-linux common-glibc arm-common",\ "armeb-linux-gnueabi": "endian-big bit-32 common-linux common-glibc arm-common armeb-linux",\ "armeb-linux-uclibc": "endian-big bit-32 common-linux common-uclibc arm-common",\ - "armeb-linux-uclibcgnueabi": "endian-big bit-32 common-linux common-uclibc arm-common armeb-linux-uclibc",\ + "armeb-linux-uclibceabi": "endian-big bit-32 common-linux common-uclibc arm-common armeb-linux-uclibc",\ "arm-darwin": "endian-little bit-32 common-darwin",\ "arm-darwin9": "endian-little bit-32 common-darwin",\ "arm-linux": "endian-little bit-32 common-linux common-glibc arm-common",\ + "arm-linux-gnu": "endian-little bit-32 common-linux common-glibc arm-common",\ "arm-linux-gnueabi": "endian-little bit-32 common-linux common-glibc arm-common arm-linux",\ "arm-linux-uclibc": "endian-little bit-32 common-linux common-uclibc arm-common",\ - "arm-linux-uclibcgnueabi": "endian-little bit-32 common-linux common-uclibc arm-common arm-linux-uclibc",\ + "arm-linux-uclibceabi": "endian-little bit-32 common-linux common-uclibc arm-common arm-linux-uclibc",\ "avr32-linux-uclibc": "endian-big bit-32 common-linux common-uclibc avr32-common",\ "bfin-uclinux-uclibc": "endian-little bit-32 common-uclibc bfin-common",\ "i386-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i386-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i486-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i486-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i586-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i586-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i686-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i686-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i386-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\ "i486-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\ "i586-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\
@@ -50,22 +56,34 @@ def get_siteinfo_list(d): "i586-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "i686-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "ia64-linux": "endian-little bit-64 common-linux common-glibc",\ + "ia64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ "mipsel-linux": "endian-little bit-32 common-linux common-glibc",\ + "mipsel-linux-gnu": "endian-little bit-32 common-linux common-glibc",\ "mipsel-linux-uclibc": "endian-little bit-32 common-linux common-uclibc",\ "mips-linux": "endian-big bit-32 common-linux common-glibc",\ + "mips-linux-gnu": "endian-big bit-32 common-linux common-glibc",\ "mips-linux-uclibc": "endian-big bit-32 common-linux common-uclibc",\ "powerpc-darwin": "endian-big bit-32 common-darwin",\ "ppc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\ + "ppc-linux-gnu": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "ppc64-linux": "endian-big bit-64 common-linux common-glibc powerpc-common",\ + "ppc64-linux-gnu": "endian-big bit-64 common-linux common-glibc powerpc-common",\ "powerpc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\ + "powerpc-linux-gnu": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "powerpc-linux-gnuspe": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "powerpc-linux-uclibc": "endian-big bit-32 common-linux common-uclibc powerpc-common",\ + "powerpc-linux-uclibcspe": "endian-big bit-32 common-linux common-uclibc powerpc-common",\ "sh3-linux": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh3-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ "sh4-linux": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh4-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ "sh4-linux-uclibc": "endian-little bit-32 common-linux common-uclibc sh-common",\ "sparc-linux": "endian-big bit-32 common-linux common-glibc",\ + "sparc-linux-gnu": "endian-big bit-32 common-linux common-glibc",\ "viac3-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "viac3-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "x86_64-linux": "endian-little bit-64 common-linux common-glibc",\ + "x86_64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ "x86_64-linux-uclibc": "endian-little bit-64 common-linux common-uclibc"} if target in targetinfo: info = targetinfo[target].split()
conf/distro/include/sane-toolchain-eglibc.inc +0 -4
@@ -3,10 +3,6 @@ # eglibc: # [23:00] oxo: glibc (any version) on sparc does not like (repeat me) "-Os" -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - -TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" - FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
conf/distro/include/sane-toolchain-glibc.inc +0 -2
@@ -2,8 +2,6 @@ # glibc: -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info # perl has some problems, see http://bugs.openembedded.net/show_bug.cgi?id=1616
conf/distro/include/sane-toolchain-uclibc.inc +0 -3
@@ -15,9 +15,6 @@ USE_NLS_glib-2.0 = "yes" USE_NLS_glib-2.0-native = "yes" USE_NLS_gcc-cross = "no" -TARGET_OS_UC = "linux${@['-uclibc','-uclibcgnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" -TARGET_OS = "${@['${TARGET_OS_UC}', 'uclinux-uclibc'][bb.data.getVar('TARGET_ARCH',d) in ['bfin']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
conf/distro/include/sane-toolchain.inc +52 -1
59 lines not on this page · raw message
conf/distro/micro.conf +1 -7
@@ -16,16 +16,10 @@ DISTRO_NAME = "micro" DISTRO_VERSION = "${SRCDATE}" ############################################################################# -# TARGET OS -############################################################################# -# Linux -TARGET_OS = "linux" - -############################################################################# # DISTRO FEATURE SELECTION ############################################################################# # No features selected -DISTRO_FEATURES = "" +DISTRO_FEATURES = "eabi" ############################################################################# # LIBRARY NAMES
conf/distro/minimal.conf +2 -0
@@ -25,6 +25,8 @@ DISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove thi DISTRO_BLUETOOTH_MANAGER = "bluez4" # We want images supporting the following features (for task-base) DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci" +# Following features are for ARM and E500 based machines +DISTRO_FEATURES += "eabi" ############################################################################# # LIBRARY NAMES
conf/machine/include/tune-strongarm.inc +1 -1
@@ -5,5 +5,5 @@ ARM_ABI = "oabi" TARGET_CC_ARCH = "-march=armv4 -mtune=strongarm" FEED_ARCH = "arm-oabi" - +PACKAGE_BASE_ARCH = "armv4" PACKAGE_EXTRA_ARCHS += "armv4 "
conf/machine/include/tune-xscale.inc +1 -1
@@ -3,7 +3,7 @@ FEED_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, TARGET_CC_ARCH = "-march=armv5te -mtune=xscale" TARGET_CC_KERNEL_ARCH = "-march=armv5te -mtune=xscale" PACKAGE_EXTRA_ARCHS += "${@['armv4b armv4tb armv5teb', 'armv4 armv4t armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" -BASE_PACKAGE_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" +BASE_PACKAGE_ARCH := "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
recipes/alsa/alsa-utils_1.0.13.bb +1 -1
@@ -12,7 +12,7 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2" # please close bug and remove this comment when properly fixed # EXTRA_OECONF_linux-uclibc = "--disable-nls" -EXTRA_OECONF_linux-uclibcgnueabi = "--disable-nls" +EXTRA_OECONF_linux-uclibceabi = "--disable-nls" inherit autotools
recipes/avahi/avahi.inc +1 -1
@@ -25,7 +25,7 @@ AVAHI_PYTHON = "--disable-python" AVAHI_GTK = "--disable-gtk" LDFLAGS_append_linux-uclibc = " -lintl" -LDFLAGS_append_linux-uclibcgnueabi = " -lintl " +LDFLAGS_append_linux-uclibceabi = " -lintl " LDFLAGS_append_uclinux-uclibc = " -lintl" PACKAGES =+ "avahi-daemon avahi-discover libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-discover-standalone avahi-autoipd avahi-utils"
recipes/diffutils/diffutils_2.8.1.bb +1 -1
@@ -15,7 +15,7 @@ inherit autotools update-alternatives # because it uses __mempcpy, there are other things (TBD: # see diffutils.mk in buildroot) EXTRA_OECONF_linux-uclibc = "--without-included-regex" -EXTRA_OECONF_linux-uclibcgnueabi = "--without-included-regex" +EXTRA_OECONF_linux-uclibceabi = "--without-included-regex" do_install_append () { mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN}
recipes/eibd/eibd.inc +1 -1
@@ -5,7 +5,7 @@ PRIORITY = "optional" LICENSE = "GPLv2" DEPENDS = " pthsem libxml2" DEPENDS_append_linux-uclibc = " argp-standalone " -DEPENDS_append_linux-uclibcgnueabi = " argp-standalone " +DEPENDS_append_linux-uclibceabi = " argp-standalone " SRC_URI += " file://eibd "
recipes/gcc/gcc-configure-canadian-sdk.inc +1 -1
@@ -1,7 +1,7 @@ require gcc-configure-common.inc USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' -USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}' +USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}' # # We need to override this and make sure the compiler can find staging
recipes/gcc/gcc-configure-common.inc +2 -2
@@ -9,7 +9,7 @@ JAVA_arm ?= "" JAVA_armeb ?= "" JAVA_mipsel ?= "" JAVA_sh3 ?= "" -OBJC_linux-uclibcgnueabi ?= "" +OBJC_linux-uclibceabi ?= "" OBJC_linux-uclibc ?= "" OBJC_avr ?= "" OBJC ?= ",objc"
@@ -41,7 +41,7 @@ EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-gnueabi = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-uclibc = " --disable-__cxa_atexit" -EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit" +EXTRA_OECONF_append_linux-uclibceabi = " --disable-__cxa_atexit" EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}" CPPFLAGS = ""
recipes/gcc/gcc-configure-sdk.inc +1 -1
@@ -2,7 +2,7 @@ require gcc-configure-common.inc # The two lines below conflict, this needs fixing - RP USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' -USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}' +USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}' EXTRA_OECONF_PATHS = "--with-sysroot=${prefix}/${TARGET_SYS} \ --with-build-time-tools=${CROSS_DIR}/${TARGET_SYS}/bin \
recipes/gettext/gettext_0.14.1.bb +1 -1
@@ -15,7 +15,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ file://disable_java.patch;patch=1" SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch;patch=1" -SRC_URI_append_linux-uclibcgnueabi = " file://gettext-error_print_progname.patch;patch=1" +SRC_URI_append_linux-uclibceabi = " file://gettext-error_print_progname.patch;patch=1" PARALLEL_MAKE = ""
recipes/gettext/gettext_0.17.bb +1 -1
@@ -14,7 +14,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ " SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch;patch=1" -SRC_URI_append_linux-uclibcgnueabi = " file://gettext-error_print_progname.patch;patch=1" +SRC_URI_append_linux-uclibceabi = " file://gettext-error_print_progname.patch;patch=1" PARALLEL_MAKE = ""
recipes/klibc/klibc-common.inc +1 -1
@@ -31,7 +31,7 @@ ARM_INSTRUCTION_SET = "arm" SRC_URI_append_linux-gnueabi = "file://klibc-config-eabi.patch;patch=1 \ " -SRC_URI_append_linux-uclibcgnueabi = "file://klibc-config-eabi.patch;patch=1 \ +SRC_URI_append_linux-uclibceabi = "file://klibc-config-eabi.patch;patch=1 \ " EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
recipes/libffi/libffi_2.0+gcc4.3.2.bb +1 -1
@@ -50,7 +50,7 @@ EXTRA_OECONF_PATHS = "--with-local-prefix=${prefix}/local \ EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-gnueabi = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-uclibc = " --disable-__cxa_atexit" -EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit" +EXTRA_OECONF_append_linux-uclibceabi = " --disable-__cxa_atexit" EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}" #Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
recipes/libffi/libffi_3.0.8.bb +1 -1
@@ -46,7 +46,7 @@ EXTRA_OECONF_PATHS = "--with-local-prefix=${prefix}/local \ EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-gnueabi = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-uclibc = " --disable-__cxa_atexit" -EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit" +EXTRA_OECONF_append_linux-uclibceabi = " --disable-__cxa_atexit" EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}" #Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
recipes/linknx/linknx.inc +1 -1
@@ -7,7 +7,7 @@ LICENSE = "GPL" DEPENDS = " pthsem lua5.1 curl libesmtp" DEPENDS_append_linux-uclibc = " argp-standalone" -DEPENDS_append_linux-uclibcgnueabi = " argp-standalone" +DEPENDS_append_linux-uclibceabi = " argp-standalone" SRC_URI += "file://configure-libcurl.patch;patch=1 \ file://linknx.start "
recipes/linux/ep93xx-kernel_2.6.17+2.6.18-rc1.bb +1 -1
@@ -27,7 +27,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/ep93xx-kernel_2.6.19+2.6.20-rc7.bb +1 -1
@@ -26,7 +26,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/gumstix-linux.inc +1 -1
@@ -17,7 +17,7 @@ do_deploy[dirs] = "${S}" do_configure_prepend() { echo "" > ${S}/.config - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/ixp4xx-kernel.inc +1 -1
@@ -192,7 +192,7 @@ do_configure_prepend() { echo 'CONFIG_CPU_BIG_ENDIAN=y' >>'${S}/.config' fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-bd-neon-2.6_2.6.22.bb +1 -1
@@ -22,7 +22,7 @@ ALLOW_EMPTY = "1" do_configure() { cp arch/arm/configs/neon_defconfig .config || die "No default configuration for ${MACHINE} available." -# if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then +# if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then # echo "CONFIG_AEABI=y" >> ${S}/.config # echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config # else
recipes/linux/linux-hackndev-2.6_git.bb +1 -1
@@ -27,7 +27,7 @@ do_configure() { || die "No default configuration for ${MACHINE} available." fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-handhelds-2.6.inc +1 -1
@@ -50,7 +50,7 @@ do_configure() { echo "CONFIG_INITRAMFS_SOURCE=\"${WORKDIR}/initramfs.cpio\"" >> ${S}/.config fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-navman_2.6.18.bb +1 -1
@@ -26,7 +26,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-nokia800.inc +1 -1
@@ -14,7 +14,7 @@ do_configure_prepend() { rm -f ${S}/.config || true - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-palm-omap1_2.6.22-omap1.bb +1 -1
@@ -25,7 +25,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-rp.inc +1 -1
@@ -105,7 +105,7 @@ do_configure() { echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config if [ "${ARM_KEEP_OABI}" = "1" ] ; then echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
recipes/linux/linux-tornado-omap2_2.6.16.16.bb +1 -1
@@ -24,7 +24,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux.inc +1 -1
@@ -68,7 +68,7 @@ do_configure_prepend() { # # oabi / eabi support # - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config if [ "${ARM_KEEP_OABI}" = "1" ] ; then echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
recipes/linux/mx21ads-kernel_2.6.19rc6.bb +1 -1
@@ -26,7 +26,7 @@ RPROVIDES_kernel-image += "hostap-modules" do_configure_prepend() { install -m 0644 ${WORKDIR}/mx21ads_defconfig ${S}/defconfig - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/netbook-pro-kernel_2.6.17.bb +1 -1
@@ -27,7 +27,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/make/make.inc +1 -1
@@ -11,7 +11,7 @@ SRC_URI = "${GNU_MIRROR}/make/make-${PV}.tar.bz2 \ inherit autotools do_configure_prepend() { - if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then export make_cv_sys_gnu_glob="no" export GLOBINC=-I`pwd`/glob export GLOBLIB=glob/libglob.a
recipes/openssl/openssl.inc +3 -0
@@ -32,6 +32,9 @@ do_configure () { if [ "x$os" = "xlinux-uclibc" ]; then os=linux fi + if [ "x$os" = "xlinux-uclibceabi" ]; then + os=linux + fi target="$os-${HOST_ARCH}" case $target in linux-arm)
recipes/perl/perl_5.8.8.bb +1 -1
@@ -63,7 +63,7 @@ do_configure() { done # Fixups for uclibc - if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then sed -i -e "s,\(d_crypt_r=\)'define',\1'undef',g" \ -e "s,\(crypt_r_proto=\)'\w+',\1'0',g" \ -e "s,\(d_getnetbyname_r=\)'define',\1'undef',g" \
recipes/qmake/qmake-native_1.07a.bb +1 -1
@@ -18,7 +18,7 @@ EXTRA_OEMAKE = "-e" do_configure() { # Install the OE build templates - for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibcgnueabi-oe-g++ + for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibceabi-oe-g++ do install -d ${S}/mkspecs/$template install -m 0644 ${WORKDIR}/linux-oe-qmake.conf ${S}/mkspecs/$template/qmake.conf
recipes/qmake/qmake2-native.inc +1 -1
@@ -26,7 +26,7 @@ do_configure() { # Make sure we regenerate all Makefiles find ${S} -name "Makefile" | xargs rm # Install the OE build templates - for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibcgnueabi-oe-g++ + for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibceabi-oe-g++ do install -d ${S}/mkspecs/$template install -m 0644 ${WORKDIR}/linux-oe-qmake.conf ${S}/mkspecs/$template/qmake.conf
recipes/qte/qte-common_2.3.10.inc +2 -2
@@ -116,8 +116,8 @@ do_configure() { > `dirname $f`/`basename $f | sed -e 's,linux-,linux-uclibc-,'` sed -e 's,-linux-,-linux-gnueabi-,g' < $f \ > `dirname $f`/`basename $f | sed -e 's,linux-,linux-gnueabi-,'` - sed -e 's,-linux-,-linux-uclibcgnueabi-,g' < $f \ - > `dirname $f`/`basename $f | sed -e 's,linux-,linux-uclibcgnueabi-,'` + sed -e 's,-linux-,-linux-uclibceabi-,g' < $f \ + > `dirname $f`/`basename $f | sed -e 's,linux-,linux-uclibceabi-,'` done echo yes | ./configure ${EXTRA_OECONF} || die "Configuring qte failed. EXTRA_OECONF was ${EXTRA_OECONF}" }
recipes/samba/samba_3.0.34.bb +1 -1
@@ -4,7 +4,7 @@ require samba-basic.inc SRC_URI += "file://configure.patch;patch=1 \ " SRC_URI_append_linux-uclibc = "file://uclibc-strlcpy-strlcat.patch;patch=1" -SRC_URI_append_linux-uclibcgnueabi = "file://uclibc-strlcpy-strlcat.patch;patch=1" +SRC_URI_append_linux-uclibceabi = "file://uclibc-strlcpy-strlcat.patch;patch=1" PR = "r5"
recipes/tasks/task-sdk-bare.bb +1 -1
@@ -23,7 +23,7 @@ GLIBC_PKGS = "\ LIBC_PKGS_linux = "${GLIBC_PKGS}" LIBC_PKGS_linux-gnueabi = "${GLIBC_PKGS}" LIBC_PKGS_linux-uclibc = "uclibc uclibc-dev uclibc-thread-db" -LIBC_PKGS_linux-uclibcgnueabi = "uclibc uclibc-dev uclibc-thread-db" +LIBC_PKGS_linux-uclibceabi = "uclibc uclibc-dev uclibc-thread-db" RDEPENDS_${PN} = "\ ${LIBC_PKGS} \
recipes/uclibc/uclibc.inc +6 -5
@@ -146,12 +146,13 @@ do_configure() { sed -i -e '/CONFIG_ARM_EABI/d' ${S}/.config - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then - echo "CONFIG_ARM_EABI=y" >> ${S}/.config - else - echo "# CONFIG_ARM_EABI is not set" >> ${S}/.config + if [ `echo ${TARGET_ARCH} | grep -e '^arm'` ]; then + if [ `echo ${TARGET_OS} | grep -e 'eabi$'` ]; then + echo "CONFIG_ARM_EABI=y" >> ${S}/.config + else + echo "# CONFIG_ARM_EABI is not set" >> ${S}/.config + fi fi - yes '' | oe_runmake oldconfig }
recipes/util-linux-ng/util-linux-ng_2.14.bb +1 -1
@@ -6,6 +6,6 @@ SRC_URI += "file://util-linux-ng-uclibc-versionsort.patch;patch=1 \ file://util-linux-ng-replace-siginterrupt.patch;patch=1 \ " LDFLAGS_append_linux-uclibc = " -lintl" -LDFLAGS_append_linux-uclibcgnueabi = " -lintl " +LDFLAGS_append_linux-uclibceabi = " -lintl " LDFLAGS_append_uclinux-uclibc = " -lintl"
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 35 lines · Khem Raj
Quoted 15 lines · Khem Raj
Quoted 14 lines · Dirk Opfer
Quoted 14 lines
Attached implementation is based on this suggestion. I have not done wholesale change to distro confs only for micro and minimal.
I tested this patch with
for targ in
ls openembedded/conf/machine/*.conf|cut -d '/' -f 4|cut -d '.' -f 1; do echo -n "$targ "; MACHINE=$targ DISTRO=minimal bitbake -e |grep TARGET_OS=\"; doneand all machine confs were giving correct values for
TARGET_OSalso I repeated same test with DISTRO=minimal-uclibcQuoted 7 lines
Quoted 4 lines
Quoted 1 line
Comments ?
e300 doesn't implement the signal processing engine (SPE). Only e500v1 and e500v2 supports these instructions.
yes thats right. Thanks for pointing it out.
-KhemAs discussed further on IRC here is another implementation which adds eabi to be a
DISTRO_FEATUREand depends onBASE_PACKAGE_ARCHto find the machine arch which can support eabi. For SPE there is no choice left to distro.Sample change for distro I have done for minimal and micro. We might create new distro for oabi like micro-oabi and minimal-oabi similarily a uclibc variant if needed. For now the micro and minimal distros ask for eabi feature.
Quoted 5 lines
Another change it has it changing linux-uclibcgnueabi to linux-uclibceabi and -linux to -linux-gnu
I have built a console image successfully with this
Hi
This is the final version of the patch that I am going to commit. This also changes the target triplet for linux-uclibgnueabi to uclibc-uclibcebi. So I have also bumped up the OELAYOUT_ABI
Please raise any objections now
Thanks
-Khem
classes/insane.bbclass +1 -1
@@ -73,7 +73,7 @@ def package_qa_get_machine_dict(): "arm" : (40, 0, 0, True, True), "armeb" : (40, 0, 0, False, True), }, - "linux-uclibcgnueabi" : { + "linux-uclibceabi" : { "arm" : (40, 0, 0, True, True), "armeb" : (40, 0, 0, False, True), },
classes/qmake_base.bbclass +1 -1
@@ -33,7 +33,7 @@ oe_qmake_mkspecs () { qmake_base_do_configure() { case ${QMAKESPEC} in - *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++|*linux-uclibcgnueabi-oe-g++) + *linux-oe-g++|*linux-uclibc-oe-g++|*linux-gnueabi-oe-g++|*linux-uclibceabi-oe-g++) ;; *-oe-g++) die Unsupported target ${TARGET_OS} for oe-g++ qmake spec
classes/siteinfo.bbclass +20 -2
@@ -22,21 +22,27 @@ def get_siteinfo_list(d): targetinfo = {\ "armeb-linux": "endian-big bit-32 common-linux common-glibc arm-common",\ + "armeb-linux-gnu": "endian-big bit-32 common-linux common-glibc arm-common",\ "armeb-linux-gnueabi": "endian-big bit-32 common-linux common-glibc arm-common armeb-linux",\ "armeb-linux-uclibc": "endian-big bit-32 common-linux common-uclibc arm-common",\ - "armeb-linux-uclibcgnueabi": "endian-big bit-32 common-linux common-uclibc arm-common armeb-linux-uclibc",\ + "armeb-linux-uclibceabi": "endian-big bit-32 common-linux common-uclibc arm-common armeb-linux-uclibc",\ "arm-darwin": "endian-little bit-32 common-darwin",\ "arm-darwin9": "endian-little bit-32 common-darwin",\ "arm-linux": "endian-little bit-32 common-linux common-glibc arm-common",\ + "arm-linux-gnu": "endian-little bit-32 common-linux common-glibc arm-common",\ "arm-linux-gnueabi": "endian-little bit-32 common-linux common-glibc arm-common arm-linux",\ "arm-linux-uclibc": "endian-little bit-32 common-linux common-uclibc arm-common",\ - "arm-linux-uclibcgnueabi": "endian-little bit-32 common-linux common-uclibc arm-common arm-linux-uclibc",\ + "arm-linux-uclibceabi": "endian-little bit-32 common-linux common-uclibc arm-common arm-linux-uclibc",\ "avr32-linux-uclibc": "endian-big bit-32 common-linux common-uclibc avr32-common",\ "bfin-uclinux-uclibc": "endian-little bit-32 common-uclibc bfin-common",\ "i386-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i386-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i486-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i486-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i586-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i586-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i686-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i686-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "i386-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\ "i486-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\ "i586-linux-uclibc": "endian-little bit-32 common-linux common-uclibc ix86-common",\
@@ -50,22 +56,34 @@ def get_siteinfo_list(d): "i586-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "i686-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "ia64-linux": "endian-little bit-64 common-linux common-glibc",\ + "ia64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ "mipsel-linux": "endian-little bit-32 common-linux common-glibc",\ + "mipsel-linux-gnu": "endian-little bit-32 common-linux common-glibc",\ "mipsel-linux-uclibc": "endian-little bit-32 common-linux common-uclibc",\ "mips-linux": "endian-big bit-32 common-linux common-glibc",\ + "mips-linux-gnu": "endian-big bit-32 common-linux common-glibc",\ "mips-linux-uclibc": "endian-big bit-32 common-linux common-uclibc",\ "powerpc-darwin": "endian-big bit-32 common-darwin",\ "ppc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\ + "ppc-linux-gnu": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "ppc64-linux": "endian-big bit-64 common-linux common-glibc powerpc-common",\ + "ppc64-linux-gnu": "endian-big bit-64 common-linux common-glibc powerpc-common",\ "powerpc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\ + "powerpc-linux-gnu": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "powerpc-linux-gnuspe": "endian-big bit-32 common-linux common-glibc powerpc-common",\ "powerpc-linux-uclibc": "endian-big bit-32 common-linux common-uclibc powerpc-common",\ + "powerpc-linux-uclibcspe": "endian-big bit-32 common-linux common-uclibc powerpc-common",\ "sh3-linux": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh3-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ "sh4-linux": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh4-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ "sh4-linux-uclibc": "endian-little bit-32 common-linux common-uclibc sh-common",\ "sparc-linux": "endian-big bit-32 common-linux common-glibc",\ + "sparc-linux-gnu": "endian-big bit-32 common-linux common-glibc",\ "viac3-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "viac3-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ "x86_64-linux": "endian-little bit-64 common-linux common-glibc",\ + "x86_64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ "x86_64-linux-uclibc": "endian-little bit-64 common-linux common-uclibc"} if target in targetinfo: info = targetinfo[target].split()
conf/abi_version.conf +1 -1
@@ -4,7 +4,7 @@ # that breaks the format and have been previously discussed on the mailing list # with general agreement from the core team. # -OELAYOUT_ABI = "2" +OELAYOUT_ABI = "3" # # DISTRO_PR allows us to regenerate all packages when a fundamental change is
conf/distro/include/sane-toolchain-eglibc.inc +0 -4
@@ -3,10 +3,6 @@ # eglibc: # [23:00] oxo: glibc (any version) on sparc does not like (repeat me) "-Os" -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - -TARGET_OS_powerpc = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" - FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os" FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1" FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
conf/distro/include/sane-toolchain-glibc.inc +0 -2
@@ -2,8 +2,6 @@ # glibc: -TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info # perl has some problems, see http://bugs.openembedded.net/show_bug.cgi?id=1616
conf/distro/include/sane-toolchain-uclibc.inc +0 -3
@@ -15,9 +15,6 @@ USE_NLS_glib-2.0 = "yes" USE_NLS_glib-2.0-native = "yes" USE_NLS_gcc-cross = "no" -TARGET_OS_UC = "linux${@['-uclibc','-uclibcgnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" -TARGET_OS = "${@['${TARGET_OS_UC}', 'uclinux-uclibc'][bb.data.getVar('TARGET_ARCH',d) in ['bfin']]}" - #mess with compiler flags to use -Os instead of -O2 #Please see http://free-electrons.com/doc/embedded_linux_optimizations/img47.html for some more info FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os"
conf/distro/include/sane-toolchain.inc +52 -1
59 lines not on this page · raw message
conf/distro/micro.conf +1 -7
@@ -16,16 +16,10 @@ DISTRO_NAME = "micro" DISTRO_VERSION = "${SRCDATE}" ############################################################################# -# TARGET OS -############################################################################# -# Linux -TARGET_OS = "linux" - -############################################################################# # DISTRO FEATURE SELECTION ############################################################################# # No features selected -DISTRO_FEATURES = "" +DISTRO_FEATURES = "eabi" ############################################################################# # LIBRARY NAMES
conf/distro/minimal.conf +2 -0
@@ -25,6 +25,8 @@ DISTRO_CHECK := "${@bb.data.getVar("DISTRO_VERSION",d,1) or bb.fatal('Remove thi DISTRO_BLUETOOTH_MANAGER = "bluez4" # We want images supporting the following features (for task-base) DISTRO_FEATURES = "nfs smbfs wifi ppp alsa ext2 vfat pcmcia usbgadget usbhost pci" +# Following features are for ARM and E500 based machines +DISTRO_FEATURES += "eabi" ############################################################################# # LIBRARY NAMES
conf/machine/include/tune-strongarm.inc +1 -1
@@ -5,5 +5,5 @@ ARM_ABI = "oabi" TARGET_CC_ARCH = "-march=armv4 -mtune=strongarm" FEED_ARCH = "arm-oabi" - +PACKAGE_BASE_ARCH = "armv4" PACKAGE_EXTRA_ARCHS += "armv4 "
conf/machine/include/tune-xscale.inc +1 -1
@@ -3,7 +3,7 @@ FEED_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, TARGET_CC_ARCH = "-march=armv5te -mtune=xscale" TARGET_CC_KERNEL_ARCH = "-march=armv5te -mtune=xscale" PACKAGE_EXTRA_ARCHS += "${@['armv4b armv4tb armv5teb', 'armv4 armv4t armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" -BASE_PACKAGE_ARCH = "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" +BASE_PACKAGE_ARCH := "${@['armv5teb', 'armv5te'][bb.data.getVar('SITEINFO_ENDIANESS', d, 1) == 'le']}" # Include tune file for thumb support, it defaults to off so DISTROs can turn it on if they wish require conf/machine/include/tune-thumb.inc
recipes/alsa/alsa-utils_1.0.13.bb +1 -1
@@ -12,7 +12,7 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2" # please close bug and remove this comment when properly fixed # EXTRA_OECONF_linux-uclibc = "--disable-nls" -EXTRA_OECONF_linux-uclibcgnueabi = "--disable-nls" +EXTRA_OECONF_linux-uclibceabi = "--disable-nls" inherit autotools
recipes/avahi/avahi.inc +1 -1
@@ -25,7 +25,7 @@ AVAHI_PYTHON = "--disable-python" AVAHI_GTK = "--disable-gtk" LDFLAGS_append_linux-uclibc = " -lintl" -LDFLAGS_append_linux-uclibcgnueabi = " -lintl " +LDFLAGS_append_linux-uclibceabi = " -lintl " LDFLAGS_append_uclinux-uclibc = " -lintl" PACKAGES =+ "avahi-daemon avahi-discover libavahi-common libavahi-core libavahi-client avahi-dnsconfd libavahi-glib libavahi-ui avahi-discover-standalone avahi-autoipd avahi-utils"
recipes/diffutils/diffutils_2.8.1.bb +1 -1
@@ -15,7 +15,7 @@ inherit autotools update-alternatives # because it uses __mempcpy, there are other things (TBD: # see diffutils.mk in buildroot) EXTRA_OECONF_linux-uclibc = "--without-included-regex" -EXTRA_OECONF_linux-uclibcgnueabi = "--without-included-regex" +EXTRA_OECONF_linux-uclibceabi = "--without-included-regex" do_install_append () { mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN}
recipes/eibd/eibd.inc +1 -1
@@ -5,7 +5,7 @@ PRIORITY = "optional" LICENSE = "GPLv2" DEPENDS = " pthsem libxml2" DEPENDS_append_linux-uclibc = " argp-standalone " -DEPENDS_append_linux-uclibcgnueabi = " argp-standalone " +DEPENDS_append_linux-uclibceabi = " argp-standalone " SRC_URI += " file://eibd "
recipes/gcc/gcc-configure-canadian-sdk.inc +1 -1
@@ -1,7 +1,7 @@ require gcc-configure-common.inc USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' -USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}' +USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}' # # We need to override this and make sure the compiler can find staging
recipes/gcc/gcc-configure-common.inc +2 -2
@@ -9,7 +9,7 @@ JAVA_arm ?= "" JAVA_armeb ?= "" JAVA_mipsel ?= "" JAVA_sh3 ?= "" -OBJC_linux-uclibcgnueabi ?= "" +OBJC_linux-uclibceabi ?= "" OBJC_linux-uclibc ?= "" OBJC_avr ?= "" OBJC ?= ",objc"
@@ -41,7 +41,7 @@ EXTRA_OECONF = "${@['--enable-clocale=generic', ''][bb.data.getVar('USE_NLS', d, EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-gnueabi = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-uclibc = " --disable-__cxa_atexit" -EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit" +EXTRA_OECONF_append_linux-uclibceabi = " --disable-__cxa_atexit" EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}" CPPFLAGS = ""
recipes/gcc/gcc-configure-sdk.inc +1 -1
@@ -2,7 +2,7 @@ require gcc-configure-common.inc # The two lines below conflict, this needs fixing - RP USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' -USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}' +USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}' EXTRA_OECONF_PATHS = "--with-sysroot=${prefix}/${TARGET_SYS} \ --with-build-time-tools=${CROSS_DIR}/${TARGET_SYS}/bin \
recipes/gettext/gettext_0.14.1.bb +1 -1
@@ -15,7 +15,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ file://disable_java.patch;patch=1" SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch;patch=1" -SRC_URI_append_linux-uclibcgnueabi = " file://gettext-error_print_progname.patch;patch=1" +SRC_URI_append_linux-uclibceabi = " file://gettext-error_print_progname.patch;patch=1" PARALLEL_MAKE = ""
recipes/gettext/gettext_0.17.bb +1 -1
@@ -14,7 +14,7 @@ SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ " SRC_URI_append_linux-uclibc = " file://gettext-error_print_progname.patch;patch=1" -SRC_URI_append_linux-uclibcgnueabi = " file://gettext-error_print_progname.patch;patch=1" +SRC_URI_append_linux-uclibceabi = " file://gettext-error_print_progname.patch;patch=1" PARALLEL_MAKE = ""
recipes/klibc/klibc-common.inc +1 -1
@@ -31,7 +31,7 @@ ARM_INSTRUCTION_SET = "arm" SRC_URI_append_linux-gnueabi = "file://klibc-config-eabi.patch;patch=1 \ " -SRC_URI_append_linux-uclibcgnueabi = "file://klibc-config-eabi.patch;patch=1 \ +SRC_URI_append_linux-uclibceabi = "file://klibc-config-eabi.patch;patch=1 \ " EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
recipes/libffi/libffi_2.0+gcc4.3.2.bb +1 -1
@@ -50,7 +50,7 @@ EXTRA_OECONF_PATHS = "--with-local-prefix=${prefix}/local \ EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-gnueabi = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-uclibc = " --disable-__cxa_atexit" -EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit" +EXTRA_OECONF_append_linux-uclibceabi = " --disable-__cxa_atexit" EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}" #Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
recipes/libffi/libffi_3.0.8.bb +1 -1
@@ -46,7 +46,7 @@ EXTRA_OECONF_PATHS = "--with-local-prefix=${prefix}/local \ EXTRA_OECONF_append_linux = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-gnueabi = " --enable-__cxa_atexit" EXTRA_OECONF_append_linux-uclibc = " --disable-__cxa_atexit" -EXTRA_OECONF_append_linux-uclibcgnueabi = " --disable-__cxa_atexit" +EXTRA_OECONF_append_linux-uclibceabi = " --disable-__cxa_atexit" EXTRA_OECONF_FPU = "${@get_gcc_fpu_setting(bb, d)}" #Somehow gcc doesn't set __SOFTFP__ when passing -mfloatabi=softp :(
recipes/linknx/linknx.inc +1 -1
@@ -7,7 +7,7 @@ LICENSE = "GPL" DEPENDS = " pthsem lua5.1 curl libesmtp" DEPENDS_append_linux-uclibc = " argp-standalone" -DEPENDS_append_linux-uclibcgnueabi = " argp-standalone" +DEPENDS_append_linux-uclibceabi = " argp-standalone" SRC_URI += "file://configure-libcurl.patch;patch=1 \ file://linknx.start "
recipes/linux/ep93xx-kernel_2.6.17+2.6.18-rc1.bb +1 -1
@@ -27,7 +27,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/ep93xx-kernel_2.6.19+2.6.20-rc7.bb +1 -1
@@ -26,7 +26,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/gumstix-linux.inc +1 -1
@@ -17,7 +17,7 @@ do_deploy[dirs] = "${S}" do_configure_prepend() { echo "" > ${S}/.config - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/ixp4xx-kernel.inc +1 -1
@@ -192,7 +192,7 @@ do_configure_prepend() { echo 'CONFIG_CPU_BIG_ENDIAN=y' >>'${S}/.config' fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-bd-neon-2.6_2.6.22.bb +1 -1
@@ -22,7 +22,7 @@ ALLOW_EMPTY = "1" do_configure() { cp arch/arm/configs/neon_defconfig .config || die "No default configuration for ${MACHINE} available." -# if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then +# if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then # echo "CONFIG_AEABI=y" >> ${S}/.config # echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config # else
recipes/linux/linux-hackndev-2.6_git.bb +1 -1
@@ -27,7 +27,7 @@ do_configure() { || die "No default configuration for ${MACHINE} available." fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-handhelds-2.6.inc +1 -1
@@ -50,7 +50,7 @@ do_configure() { echo "CONFIG_INITRAMFS_SOURCE=\"${WORKDIR}/initramfs.cpio\"" >> ${S}/.config fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-navman_2.6.18.bb +1 -1
@@ -26,7 +26,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-nokia800.inc +1 -1
@@ -14,7 +14,7 @@ do_configure_prepend() { rm -f ${S}/.config || true - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-palm-omap1_2.6.22-omap1.bb +1 -1
@@ -25,7 +25,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux-rp.inc +1 -1
@@ -105,7 +105,7 @@ do_configure() { echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config if [ "${ARM_KEEP_OABI}" = "1" ] ; then echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
recipes/linux/linux-tornado-omap2_2.6.16.16.bb +1 -1
@@ -24,7 +24,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/linux.inc +1 -1
@@ -68,7 +68,7 @@ do_configure_prepend() { # # oabi / eabi support # - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config if [ "${ARM_KEEP_OABI}" = "1" ] ; then echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config
recipes/linux/mx21ads-kernel_2.6.19rc6.bb +1 -1
@@ -26,7 +26,7 @@ RPROVIDES_kernel-image += "hostap-modules" do_configure_prepend() { install -m 0644 ${WORKDIR}/mx21ads_defconfig ${S}/defconfig - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/linux/netbook-pro-kernel_2.6.17.bb +1 -1
@@ -27,7 +27,7 @@ do_configure() { fi - if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibceabi" ]; then echo "CONFIG_AEABI=y" >> ${S}/.config echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config else
recipes/make/make.inc +1 -1
@@ -11,7 +11,7 @@ SRC_URI = "${GNU_MIRROR}/make/make-${PV}.tar.bz2 \ inherit autotools do_configure_prepend() { - if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then export make_cv_sys_gnu_glob="no" export GLOBINC=-I`pwd`/glob export GLOBLIB=glob/libglob.a
recipes/openssl/openssl.inc +3 -0
@@ -34,6 +34,9 @@ do_configure () { if [ "x$os" = "xlinux-uclibc" ]; then os=linux fi + if [ "x$os" = "xlinux-uclibceabi" ]; then + os=linux + fi target="$os-${HOST_ARCH}" case $target in linux-arm)
recipes/perl/perl_5.8.8.bb +1 -1
@@ -63,7 +63,7 @@ do_configure() { done # Fixups for uclibc - if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then + if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then sed -i -e "s,\(d_crypt_r=\)'define',\1'undef',g" \ -e "s,\(crypt_r_proto=\)'\w+',\1'0',g" \ -e "s,\(d_getnetbyname_r=\)'define',\1'undef',g" \
recipes/qmake/qmake-native_1.07a.bb +1 -1
@@ -18,7 +18,7 @@ EXTRA_OEMAKE = "-e" do_configure() { # Install the OE build templates - for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibcgnueabi-oe-g++ + for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibceabi-oe-g++ do install -d ${S}/mkspecs/$template install -m 0644 ${WORKDIR}/linux-oe-qmake.conf ${S}/mkspecs/$template/qmake.conf
recipes/qmake/qmake2-native.inc +1 -1
@@ -26,7 +26,7 @@ do_configure() { # Make sure we regenerate all Makefiles find ${S} -name "Makefile" | xargs rm # Install the OE build templates - for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibcgnueabi-oe-g++ + for template in linux-oe-g++ linux-uclibc-oe-g++ linux-gnueabi-oe-g++ linux-uclibceabi-oe-g++ do install -d ${S}/mkspecs/$template install -m 0644 ${WORKDIR}/linux-oe-qmake.conf ${S}/mkspecs/$template/qmake.conf
recipes/qte/qte-common_2.3.10.inc +2 -2
@@ -116,8 +116,8 @@ do_configure() { > `dirname $f`/`basename $f | sed -e 's,linux-,linux-uclibc-,'` sed -e 's,-linux-,-linux-gnueabi-,g' < $f \ > `dirname $f`/`basename $f | sed -e 's,linux-,linux-gnueabi-,'` - sed -e 's,-linux-,-linux-uclibcgnueabi-,g' < $f \ - > `dirname $f`/`basename $f | sed -e 's,linux-,linux-uclibcgnueabi-,'` + sed -e 's,-linux-,-linux-uclibceabi-,g' < $f \ + > `dirname $f`/`basename $f | sed -e 's,linux-,linux-uclibceabi-,'` done echo yes | ./configure ${EXTRA_OECONF} || die "Configuring qte failed. EXTRA_OECONF was ${EXTRA_OECONF}" }
recipes/samba/samba_3.0.34.bb +1 -1
@@ -4,7 +4,7 @@ require samba-basic.inc SRC_URI += "file://configure.patch;patch=1 \ " SRC_URI_append_linux-uclibc = "file://uclibc-strlcpy-strlcat.patch;patch=1" -SRC_URI_append_linux-uclibcgnueabi = "file://uclibc-strlcpy-strlcat.patch;patch=1" +SRC_URI_append_linux-uclibceabi = "file://uclibc-strlcpy-strlcat.patch;patch=1" PR = "r5"
recipes/tasks/task-sdk-bare.bb +1 -1
@@ -23,7 +23,7 @@ GLIBC_PKGS = "\ LIBC_PKGS_linux = "${GLIBC_PKGS}" LIBC_PKGS_linux-gnueabi = "${GLIBC_PKGS}" LIBC_PKGS_linux-uclibc = "uclibc uclibc-dev uclibc-thread-db" -LIBC_PKGS_linux-uclibcgnueabi = "uclibc uclibc-dev uclibc-thread-db" +LIBC_PKGS_linux-uclibceabi = "uclibc uclibc-dev uclibc-thread-db" RDEPENDS_${PN} = "\ ${LIBC_PKGS} \
recipes/uclibc/uclibc.inc +6 -5
@@ -146,12 +146,13 @@ do_configure() { sed -i -e '/CONFIG_ARM_EABI/d' ${S}/.config - if [ "${TARGET_OS}" = "linux-gnueabi" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then - echo "CONFIG_ARM_EABI=y" >> ${S}/.config - else - echo "# CONFIG_ARM_EABI is not set" >> ${S}/.config + if [ `echo ${TARGET_ARCH} | grep -e '^arm'` ]; then + if [ `echo ${TARGET_OS} | grep -e 'eabi$'` ]; then + echo "CONFIG_ARM_EABI=y" >> ${S}/.config + else + echo "# CONFIG_ARM_EABI is not set" >> ${S}/.config + fi fi - yes '' | oe_runmake oldconfig }
recipes/util-linux-ng/util-linux-ng_2.14.bb +1 -1
@@ -6,6 +6,6 @@ SRC_URI += "file://util-linux-ng-uclibc-versionsort.patch;patch=1 \ file://util-linux-ng-replace-siginterrupt.patch;patch=1 \ " LDFLAGS_append_linux-uclibc = " -lintl" -LDFLAGS_append_linux-uclibcgnueabi = " -lintl " +LDFLAGS_append_linux-uclibceabi = " -lintl " LDFLAGS_append_uclinux-uclibc = " -lintl"
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 2 lines · Khem Raj
This also changes the target triplet for linux-uclibgnueabi to uclibc-uclibcebi. So I have also bumped up the
OELAYOUT_ABI
Ah, that doesn't sound so good. Changing OELAYOUT_ABI will be a nuisance for everyone, even if they aren't using either uclibc or the TARGET_OS auto-generator. Is there a way to avoid that?
p.
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 7 lines · Phil Blundell
Quoted 2 lines · Khem Raj
This also changes the target triplet for linux-uclibgnueabi to uclibc-uclibcebi. So I have also bumped up the
OELAYOUT_ABIAh, that doesn't sound so good. Changing
OELAYOUT_ABIwill be a nuisance for everyone, even if they aren't using either uclibc or theTARGET_OSauto-generator. Is there a way to avoid that?
It changes from linux to linux-gnu for non uclibc systems too which I forgot to mention
Quoted 10 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 11 lines · Khem Raj
Quoted 7 lines · Phil Blundell
Quoted 2 lines · Khem Raj
This also changes the target triplet for linux-uclibgnueabi to uclibc-uclibcebi. So I have also bumped up the
OELAYOUT_ABIAh, that doesn't sound so good. Changing
OELAYOUT_ABIwill be a nuisance for everyone, even if they aren't using either uclibc or theTARGET_OSauto-generator. Is there a way to avoid that?It changes from linux to linux-gnu for non uclibc systems too which I forgot to mention
Can we get away with that? 'linux-gnu' over 'linux' should be fine I think but I'm worried about 'linux-uclibceabi', is that really a normal standard and known host? Also, there's some overrides that depend on 'uclibcgnueabi' iirc, which need to be updated for libc-uclibc override instead.
Signature · 1 line
Tom Rini
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 10 lines · Tom Rini
Quoted 9 lines · Khem Raj
Quoted 7 lines · Phil Blundell
Quoted 2 lines · Khem Raj
This also changes the target triplet for linux-uclibgnueabi to uclibc-uclibcebi. So I have also bumped up the
OELAYOUT_ABIAh, that doesn't sound so good. Changing
OELAYOUT_ABIwill be a nuisance for everyone, even if they aren't using either uclibc or theTARGET_OSauto-generator. Is there a way to avoid that?
Quoted 8 lines
Quoted 2 lines
It changes from linux to linux-gnu for non uclibc systems too which I forgot to mention
Can we get away with that? 'linux-gnu' over 'linux' should be fine I think but I'm worried about 'linux-uclibceabi', is that really a normal standard and known host? Also, there's some overrides that depend on 'uclibcgnueabi' iirc, which need to be updated for libc-uclibc override instead.
linux-uclibcgnueabi is also madeup one. I think logically many tests just check for uclibc* or
*eabi. There is no difference between both of them. I plan to fix any fallout that come out of renaming
mostly it will be in toolchain parts only.
I have fixed all the overrides and also build and booted uclibc arm/thumb images.
Quoted 9 lines
--
Tom Rini_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
In reply to Tom RiniQuoted 5 lines · Tom Rini
Can we get away with that? 'linux-gnu' over 'linux' should be fine I think but I'm worried about 'linux-uclibceabi', is that really a normal standard and known host? Also, there's some overrides that depend on 'uclibcgnueabi' iirc, which need to be updated for libc-uclibc override instead.
I think Khem's patch does update most/all of the overrides in question, but if this requires an OELAYOUT_ABI change then it seems like a lot of disruption to fix what is (if I understand correctly) only a cosmetic problem in the first place.
p.
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 11 lines · Phil Blundell
Quoted 5 lines · Tom Rini
Can we get away with that? 'linux-gnu' over 'linux' should be fine I think but I'm worried about 'linux-uclibceabi', is that really a normal standard and known host? Also, there's some overrides that depend on 'uclibcgnueabi' iirc, which need to be updated for libc-uclibc override instead.
I think Khem's patch does update most/all of the overrides in question, but if this requires an
OELAYOUT_ABIchange then it seems like a lot of disruption to fix what is (if I understand correctly) only a cosmetic problem in the first place.
The documentation around OELAYOUT_ABI says that it should be bumped whenever there
is a change in tmp layout structure and this change will do rename few directories and
binaries in the tmp folder thats why the bump
and incremental builds wont work anyway because cross compiler names will be different.
thats why I was bumping it up.
Thanks
-Khem
Quoted 10 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 13 lines · Khem Raj
Quoted 11 lines · Phil Blundell
Quoted 5 lines · Tom Rini
Can we get away with that? 'linux-gnu' over 'linux' should be fine I think but I'm worried about 'linux-uclibceabi', is that really a normal standard and known host? Also, there's some overrides that depend on 'uclibcgnueabi' iirc, which need to be updated for libc-uclibc override instead.
I think Khem's patch does update most/all of the overrides in question, but if this requires an
OELAYOUT_ABIchange then it seems like a lot of disruption to fix what is (if I understand correctly) only a cosmetic problem in the first place.
Quoted 8 lines
The documentation around
OELAYOUT_ABIsays that it should be bumped whenever there is a change in tmp layout structure and this change will do rename few directories and binaries in the tmp folder thats why the bumpand incremental builds wont work anyway because cross compiler names will be different.
thats why I was bumping it up.
Yes, I know what OELAYOUT_ABI is for. The point I was making is that, if changing the TARGET_OS strings is disruptive enough to require an OELAYOUT_ABI bump (and hence, effectively, force everybody to delete their working trees and rebuild from scratch), that seems like a lot of hassle for very little actual gain.
As I understand it, there is no compelling reason why the TARGET_OS strings need to be changed: the difference between linux and linux-gnu (and between linux-uclibcgnueabi and linux-uclibceabi) is more of a cosmetic one than a functional advantage. If that's the case then the change doesn't really seem to be important enough to justify the upheaval; I would suggest leaving those strings alone for now.
If and when we are obliged to bump OELAYOUT_ABI for some other (more important) reason, that would be a good time to fold in this sort of thing.
Alternatively, a reasonable compromise might be to arrange for OELAYOUT_ABI to be bumped only for folks who are using an affected DISTRO (which I guess means micro and minimal in this situation).
p.
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Hello,
Quoted 14 lines · Phil Blundell
Quoted 7 lines · Khem Raj
Quoted 5 lines · Phil Blundell
I think Khem's patch does update most/all of the overrides in question, but if this requires an
OELAYOUT_ABIchange then it seems like a lot of disruption to fix what is (if I understand correctly) only a cosmetic problem in the first place.Quoted 5 lines
The documentation around
OELAYOUT_ABIsays that it should be bumped whenever there is a change in tmp layout structure and this change will do rename few directories and binaries in the tmp folder thats why the bump
Quoted 6 lines
Yes, I know what
OELAYOUT_ABIis for. The point I was making is that, if changing theTARGET_OSstrings is disruptive enough to require anOELAYOUT_ABIbump (and hence, effectively, force everybody to delete their working trees and rebuild from scratch), that seems like a lot of hassle for very little actual gain.
IMHO, it's disruptive enough as per the documentation.
And building from scratch isn't necessarily bad; I've seen people not been affected by bugs for weeks after an OE upstream regression, simply because they were doing incremental builds and thus didn't really test any lower level changes that crept into the framework.
Regards,
Signature · 1 line
Leon
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
In reply to Phil BlundellQuoted 36 lines · Phil Blundell
Quoted 13 lines · Khem Raj
Quoted 11 lines · Phil Blundell
Quoted 5 lines · Tom Rini
Can we get away with that? 'linux-gnu' over 'linux' should be fine I think but I'm worried about 'linux-uclibceabi', is that really a normal standard and known host? Also, there's some overrides that depend on 'uclibcgnueabi' iirc, which need to be updated for libc-uclibc override instead.
I think Khem's patch does update most/all of the overrides in question, but if this requires an
OELAYOUT_ABIchange then it seems like a lot of disruption to fix what is (if I understand correctly) only a cosmetic problem in the first place.Quoted 8 lines
The documentation around
OELAYOUT_ABIsays that it should be bumped whenever there is a change in tmp layout structure and this change will do rename few directories and binaries in the tmp folder thats why the bumpand incremental builds wont work anyway because cross compiler names will be different.
thats why I was bumping it up.Yes, I know what
OELAYOUT_ABIis for. The point I was making is that, if changing theTARGET_OSstrings is disruptive enough to require anOELAYOUT_ABIbump (and hence, effectively, force everybody to delete their working trees and rebuild from scratch), that seems like a lot of hassle for very little actual gain.As I understand it, there is no compelling reason why the
TARGET_OSstrings need to be changed: the difference between linux and linux-gnu (and between linux-uclibcgnueabi and linux-uclibceabi) is more of a cosmetic one than a functional advantage. If that's the case then the change doesn't really seem to be important enough to justify the upheaval; I would suggest leaving those strings alone for now.
Quoted 8 lines
If and when we are obliged to bump
OELAYOUT_ABIfor some other (more important) reason, that would be a good time to fold in this sort of thing.Alternatively, a reasonable compromise might be to arrange for
OELAYOUT_ABIto be bumped only for folks who are using an affected DISTRO (which I guess means micro and minimal in this situation).
Other distros also need this change. IMO it will be better that we enforce a rebuild otherwise users might have issues that are hard to debug.
Quoted 9 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 3 lines · Khem Raj
Other distros also need this change. IMO it will be better that we enforce a rebuild otherwise users might have issues that are hard to debug.
Why do other DISTROs need this change? Surely if they aren't using sane-toolchain.inc to set TARGET_OS then they oughtn't to be affected.
p.
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 7 lines · Phil Blundell
Quoted 3 lines · Khem Raj
Other distros also need this change. IMO it will be better that we enforce a rebuild otherwise users might have issues that are hard to debug.
Why do other DISTROs need this change? Surely if they aren't using sane-toolchain.inc to set
TARGET_OSthen they oughtn't to be affected.
because of the TARGET_OS OVERRIDES now depend upon the new target triplet. Probably one way would be to leave the old overrides in there but that would have been more confusing.
Thx
-Khem
Quoted 10 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 6 lines · Khem Raj
Quoted 5 lines · Phil Blundell
Quoted 3 lines · Khem Raj
Other distros also need this change. IMO it will be better that we enforce a rebuild otherwise users might have issues that are hard to debug.
Quoted 6 lines
Quoted 2 lines
Why do other DISTROs need this change? Surely if they aren't using sane-toolchain.inc to set
TARGET_OSthen they oughtn't to be affected.because of the
TARGET_OSOVERRIDES now depend upon the new target triplet. Probably one way would be to leave the old overrides in there but that would have been more confusing.
Oh, I see. So anybody who sets TARGET_OS by hand is going to lose unless they change their settings to match? I guess there should at least be a diagnostic for that.
p.
Re: [PATCH] sane-toolchain-eglibc.inc: Set TARGET_OS?= linux-gnuspe for e500
Quoted 10 lines · Phil Blundell
Quoted 9 lines · Khem Raj
Quoted 7 lines · Phil Blundell
Quoted 3 lines · Khem Raj
Other distros also need this change. IMO it will be better that we enforce a rebuild otherwise users might have issues that are hard to debug.
Why do other DISTROs need this change? Surely if they aren't using sane-toolchain.inc to set
TARGET_OSthen they oughtn't to be affected.
Quoted 7 lines
Quoted 3 lines
because of the
TARGET_OSOVERRIDES now depend upon the new target triplet. Probably one way would be to leave the old overrides in there but that would have been more confusing.Oh, I see. So anybody who sets
TARGET_OSby hand is going to lose unless they change their settings to match? I guess there should at least be a diagnostic for that.
Hmm there never was one before. one could set it to anything but I think it would be
an improvement to check for valid TARGET_OS
-Khem
Quoted 10 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 13 lines · Khem Raj
Target triplet powerpc-*-linux-gnuspe is chosen for machines with SPE which is e500 cores.
Signed-off-by Khem Raj <[email protected]>--- conf/distro/include/sane-toolchain-eglibc.inc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)conf/distro/include/sane-toolchain-eglibc.inc +0
-0
conf/distro/include/sane-toolchain-eglibc.inc line 9
Quoted 5 lines
conf/distro/include/sane-toolchain-eglibc.inc +2
-0@@ -5,6 +5,8 @@ TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and bb.data.getVar('MACHINE',d) not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}" +TARGET_OS = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" +
This change looks like it will break the -gnueabi thing on ARM, which presumably isn't intended.
Also, is this really specific to eglibc? Per our conversation on IRC the other day, I kind of feel that this sort of logic belongs somewhere else; it seems somewhat inappropriate for sane-toolchain-xx.inc to be frobbing fundamental variables like TARGET_OS in this way.
p.
Quoted 15 lines · Phil Blundell
Quoted 14 lines · Khem Raj
Target triplet powerpc-*-linux-gnuspe is chosen for machines with SPE which is e500 cores.
Signed-off-by Khem Raj <[email protected]>---
conf/distro/include/sane-toolchain-eglibc.inc | 2 ++1 files changed, 2 insertions(+), 0 deletions(-)conf/distro/include/sane-toolchain-eglibc.inc +0
-0@@ -5,6 +5,8 @@
Quoted 7 lines
conf/distro/include/sane-toolchain-eglibc.inc line 9
Quoted 4 lines
TARGET_OS = "linux${@['','-gnueabi'][bb.data.getVar('TARGET_ARCH',d,1) in ['arm', 'armeb'] and
bb.data.getVar('MACHINE',d)not in ['collie','h3600', 'h3800', 'simpad', 'htcwallaby']]}"conf/distro/include/sane-toolchain-eglibc.inc +2
-0+TARGET_OS = "linux${@['','-gnuspe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari', 'tqm8540']]}" +This change looks like it will break the -gnueabi thing on ARM, which presumably isn't intended.
yes indeed see my previous reply
Quoted 5 lines
Also, is this really specific to eglibc? Per our conversation on IRC the other day, I kind of feel that this sort of logic belongs somewhere else; it seems somewhat inappropriate for sane-toolchain-xx.inc to be frobbing fundamental variables like
TARGET_OSin this way.
TARGET_OS is really equivalent of TARGET_TRIPLET here and it is tied to system C library you choose.
so logically it seems ok to me. You can also define it in distro confs but then you have to check like if LIBC == uclibc do one thing else LIBC = glibc do other thing
Thx
-Khem
Quoted 10 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 5 lines · Khem Raj
TARGET_OSis really equivalent ofTARGET_TRIPLEThere and it is tied to system C library you choose.
so logically it seems ok to me. You can also define it in distro confs but then you have to check like if LIBC == uclibc do one thing else LIBC = glibc do other thing
Well, I dunno. It seems like there are three parts to this determination, really:
1) does the target hardware support SPE?
2) does the toolchain support it?
3) does the distro want to use it?
Of those, it seems fairly clear that (1) belongs in MACHINE.conf or some similar place, and (3) belongs in DISTRO.conf or some part of it. The only one of these that's really tied to the C library would seem to be (2), and even there I would have thought it would be better for the libc to just raise an error if it doesn't support the selected options rather than trying to guess what they should be.
The same thing applies to the ARM EABI, incidentally: the choice of whether to use EABI or the old ABI ought to be one that's made primarily (or entirely) by the DISTRO. The current situation where parts of the toolchain are guessing whether or not the EABI is wanted, based on ${MACHINE}, is somewhat unsatisfactory: it'd be perfectly legitimate, for example, for a DISTRO to want to use eabi on h3900. The current EABI logic that resides in sane-toolchain-xxx.inc seems like it is really a misplaced piece of Angstrom policy.
p.
Quoted 3 lines · Phil Blundell
The current
EABI logic that resides in sane-toolchain-xxx.inc seems like it is really a misplaced piece of Angstrom policy.
Angstrom does not use the sane-toolchain stuff. The sane-toolchain thing is a misguided unilateral attempt to 'unify' OE distros. As you point out, it forces way too much policy onto it's users.
Quoted 9 lines · Koen Kooi
Quoted 4 lines · Phil Blundell
The current
EABI logic that resides in sane-toolchain-xxx.inc seems like it is really a misplaced piece of Angstrom policy.Angstrom does not use the sane-toolchain stuff. The sane-toolchain thing is a misguided unilateral attempt to 'unify' OE distros. As you point out, it forces way too much policy onto it's users.
in general its hard to put a toolchain together rightly. So in a way it will help the users I think.
distros are free to use these. They may decide not to use it. Its fine. I think distros should
be able to build upon sanetoolchains it will be simpler for them instead of pulling bits together
themselves.
Quoted 7 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel