conf: Decosmetize TARGET_OS
PATCH 1/1 conf: Decosmetize TARGET_OS
* This patch reverts the cosmetic change which used linux-gnu instead of linux
--- classes/insane.bbclass | 4 +- classes/siteinfo.bbclass | 39 +++---- conf/distro/include/angstrom-eglibc.inc | 4 +- conf/distro/include/angstrom-glibc.inc | 2 +- conf/distro/include/sane-toolchain.inc | 13 ++- recipes/lsof/lsof_4.78.bb | 3 +- recipes/openssl/openssl.inc | 4 +- site/arm-linux | 180 +++++++++++++++++++++++++++++++ site/arm-linux-gnu | 180 ------------------------------- site/armeb-linux | 51 +++++++++ site/armeb-linux-gnu | 51 --------- site/mips-linux | 115 ++++++++++++++++++++ site/mips-linux-gnu | 115 -------------------- site/mipsel-linux | 119 ++++++++++++++++++++ site/mipsel-linux-gnu | 119 -------------------- site/powerpc-linux | 5 + site/powerpc-linux-gnu | 5 - site/sparc-linux | 55 ++++++++++ site/sparc-linux-gnu | 55 ---------- site/x86_64-linux | 97 +++++++++++++++++ site/x86_64-linux-gnu | 97 ----------------- 21 files changed, 656 insertions(+), 657 deletions(-) create mode 100644 site/arm-linux delete mode 100644 site/arm-linux-gnu create mode 100644 site/armeb-linux delete mode 100644 site/armeb-linux-gnu create mode 100644 site/mips-linux delete mode 100644 site/mips-linux-gnu create mode 100644 site/mipsel-linux delete mode 100644 site/mipsel-linux-gnu create mode 100644 site/powerpc-linux delete mode 100644 site/powerpc-linux-gnu create mode 100644 site/sparc-linux delete mode 100644 site/sparc-linux-gnu create mode 100644 site/x86_64-linux delete mode 100644 site/x86_64-linux-gnu
classes/insane.bbclass +2 -2
@@ -34,7 +34,7 @@ def package_qa_get_machine_dict(): "darwin9" : { "arm" : (40, 0, 0, True, True), }, - "linux-gnu" : { + "linux" : { "arm" : (40, 97, 0, True, True), "armeb": (40, 97, 0, False, True), "powerpc": (20, 0, 0, False, True),
@@ -77,7 +77,7 @@ def package_qa_get_machine_dict(): "arm" : (40, 0, 0, True, True), "armeb" : (40, 0, 0, False, True), }, - "linux-gnuspe" : { + "linux-spe" : { "powerpc": (20, 0, 0, False, True), }, "linux-uclibcspe" : {
classes/siteinfo.bbclass +18 -21
@@ -22,23 +22,21 @@ 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-gnu",\ + "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-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-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-gnu",\ + "arm-linux": "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-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-gnu": "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-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ - "i686-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",\ + "i386-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i486-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i586-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ + "i686-linux": "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",\
@@ -51,24 +49,23 @@ def get_siteinfo_list(d): "i486-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "i586-mingw32": "endian-little bit-32 common-mingw ix86-common",\ "i686-mingw32": "endian-little bit-32 common-mingw ix86-common",\ - "ia64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ - "mipsel-linux-gnu": "endian-little bit-32 common-linux common-glibc mips-common",\ + "ia64-linux": "endian-little bit-64 common-linux common-glibc",\ + "mipsel-linux": "endian-little bit-32 common-linux common-glibc mips-common",\ "mipsel-linux-uclibc": "endian-little bit-32 common-linux common-uclibc mips-common",\ - "mips-linux-gnu": "endian-big bit-32 common-linux common-glibc mips-common",\ + "mips-linux": "endian-big bit-32 common-linux common-glibc mips-common",\ "mips-linux-uclibc": "endian-big bit-32 common-linux common-uclibc mips-common",\ "powerpc-darwin": "endian-big bit-32 common-darwin",\ - "ppc-linux-gnu": "endian-big bit-32 common-linux common-glibc powerpc-common powerpc-linux-gnu",\ - "ppc64-linux-gnu": "endian-big bit-64 common-linux common-glibc powerpc-common powerpc64-linux-gnu",\ - "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-gnu",\ + "ppc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common powerpc-linux",\ + "ppc64-linux": "endian-big bit-64 common-linux common-glibc powerpc-common powerpc64-linux",\ + "powerpc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\ + "powerpc-linux-spe": "endian-big bit-32 common-linux common-glibc powerpc-common powerpc-linux",\ "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 powerpc-linux-uclibc",\ - "sh3-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ - "sh4-linux-gnu": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh3-linux": "endian-little bit-32 common-linux common-glibc sh-common",\ + "sh4-linux": "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-gnu": "endian-big bit-32 common-linux common-glibc",\ - "viac3-linux-gnu": "endian-little bit-32 common-linux common-glibc ix86-common",\ - "x86_64-linux-gnu": "endian-little bit-64 common-linux common-glibc",\ + "sparc-linux": "endian-big bit-32 common-linux common-glibc",\ + "viac3-linux": "endian-little bit-32 common-linux common-glibc ix86-common",\ "x86_64-linux": "endian-little bit-64 common-linux common-glibc",\ "x86_64-linux-uclibc": "endian-little bit-64 common-linux common-uclibc"} if target in targetinfo:
conf/distro/include/angstrom-eglibc.inc +2 -2
@@ -1,12 +1,12 @@ # eglibc: require conf/distro/include/eglibc.inc -TARGET_OS = "linux-gnu" +TARGET_OS = "linux" TARGET_OS .= "${@['','eabi'][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 .= "${@['','spe'][bb.data.getVar('TARGET_ARCH',d,1) in ['ppc', 'powerpc'] and bb.data.getVar('MACHINE',d) in ['calamari']]}" -#TARGET_OS = "linux-gnuspe" +#TARGET_OS = "linux-spe" #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
conf/distro/include/angstrom-glibc.inc +1 -1
@@ -3,7 +3,7 @@ require conf/distro/include/glibc.inc PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers" -TARGET_OS = "linux-gnu" +TARGET_OS = "linux" TARGET_OS .= "${@['','eabi'][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
conf/distro/include/sane-toolchain.inc +8 -5
@@ -157,16 +157,16 @@ def detect_arm_abi (d): def compute_os_portion_of_target_triplet (d): import bb arm_eabi_supporting_arches = "armv6 armv6-novfp \ - armv5te iwmmxt armv7a armv7 armv6 armv5teb armv4t" + armv5te iwmmxt armv7a armv7 armv5teb armv4t" ppc_spe_supporting_arches = "ppce500v2 ppce500" if bb.data.getVar("LIBC", d, 1) == "uclibc": libc_suffix = "uclibc" else: - libc_suffix = "gnu" + libc_suffix = "" if bb.data.getVar('TARGET_ARCH',d,1) in ['bfin']: - if libc_suffix == "gnu": + if libc_suffix is not "uclibc": bb.fatal("bfin is not supported on glibc/eglibc. Please choose uclibc") else: os_suffix = "uclinux"
@@ -182,7 +182,7 @@ def compute_os_portion_of_target_triplet (d): bb.fatal("DISTRO requested EABI but selected machine does not support EABI") abi_suffix = "" else: - abi_suffix = "eabi" + abi_suffix = "gnueabi" elif bparch in ppc_spe_supporting_arches.split(): abi_suffix = "spe" else:
@@ -190,7 +190,10 @@ def compute_os_portion_of_target_triplet (d): else: bb.note("DISTRO_FEATURES is not set abi suffix not set") abi_suffix = "" - return os_suffix + "-" + libc_suffix + abi_suffix + if libc_suffix is not "" or abi_suffix is not "": + return os_suffix + "-" + libc_suffix + abi_suffix + else: + return os_suffix # This is needed to get a correct PACKAGE_ARCH for packages that have PACKAGE_ARCH = ${MACHINE_ARCH} ARM_ABI = "${@detect_arm_abi(d)}"
recipes/lsof/lsof_4.78.bb +1 -2
@@ -21,9 +21,8 @@ export LSOF_OS = "${TARGET_OS}" LSOF_OS_linux-uclibc = "linux" LSOF_OS_linux-uclibceabi = "linux" LSOF_OS_linux-uclibspe = "linux" -LSOF_OS_linux-gnu = "linux" LSOF_OS_linux-gnueabi = "linux" -LSOF_OS_linux-gnuspe = "linux" +LSOF_OS_linux-spe = "linux" export LSOF_INCLUDE = "${STAGING_INCDIR}" do_configure () {
recipes/openssl/openssl.inc +2 -2
@@ -35,7 +35,7 @@ do_configure () { os=linux elif [ "x$os" = "xlinux-uclibceabi" ]; then os=linux - elif [ "x$os" = "xlinux-gnu" ]; then + elif [ "x$os" = "xlinux-gnueabi" ]; then os=linux fi target="$os-${HOST_ARCH}"
@@ -70,7 +70,7 @@ do_configure () { linux-powerpc) target=linux-ppc ;; - linux-gnuspe-powerpc) + linux-spe-powerpc) target=linux-ppc ;; linux-supersparc)
site/arm-linux new file +180 -0
180 lines not on this page · raw message
site/arm-linux-gnu deleted +0 -180
180 lines not on this page · raw message
site/armeb-linux new file +51 -0
51 lines not on this page · raw message
site/armeb-linux-gnu deleted +0 -51
51 lines not on this page · raw message
site/mips-linux new file +115 -0
115 lines not on this page · raw message
site/mips-linux-gnu deleted +0 -115
115 lines not on this page · raw message
site/mipsel-linux new file +119 -0
119 lines not on this page · raw message
site/mipsel-linux-gnu deleted +0 -119
119 lines not on this page · raw message
site/powerpc-linux new file +5 -0
@@ -0,0 +1,5 @@ +# libc +libc_cv_ppc_machine=${libc_cv_ppc_machine=yes} +libc_cv_mlong_double_128ibm=${libc_cv_mlong_double_128ibm=yes} +libc_cv_mabi_ibmlongdouble=${libc_cv_mabi_ibmlongdouble=yes} +libc_cv_mlong_double_128=${libc_cv_mlong_double_128=yes}
site/powerpc-linux-gnu deleted +0 -5
@@ -1,5 +0,0 @@ -# libc -libc_cv_ppc_machine=${libc_cv_ppc_machine=yes} -libc_cv_mlong_double_128ibm=${libc_cv_mlong_double_128ibm=yes} -libc_cv_mabi_ibmlongdouble=${libc_cv_mabi_ibmlongdouble=yes} -libc_cv_mlong_double_128=${libc_cv_mlong_double_128=yes}
site/sparc-linux new file +55 -0
55 lines not on this page · raw message
site/sparc-linux-gnu deleted +0 -55
55 lines not on this page · raw message
site/x86_64-linux new file +97 -0
97 lines not on this page · raw message
site/x86_64-linux-gnu deleted +0 -97
97 lines not on this page · raw message
Signature · 1 line
1.6.3.3
Quoted 4 lines · On Friday 09 October 2009 01:09:45 Khem Raj wrote:
* This patch reverts the cosmetic change which used linux-gnu instead of linux
Signed-off-by Khem Raj <[email protected]>
This makes bitbake meta-toolchain-qte at least start to compile again. Once you put your changes in a branch I can do test builds and fixes for MIPS.
regards
holger
Quoted 10 lines · Holger Hans Peter Freyther
Quoted 4 lines · On Friday 09 October 2009 01:09:45 Khem Raj wrote:
* This patch reverts the cosmetic change which used linux-gnu instead of linux
Signed-off-by Khem Raj <[email protected]>Tested-by Holger Freyther <[email protected]>This makes bitbake meta-toolchain-qte at least start to compile again. Once you put your changes in a branch I can do test builds and fixes for MIPS.
I have built console-image with it on armeabi mipsel and powerpc-gnuspe targets with minimal distro
I am testing angstrom on armeabi atm.
Quoted 3 lines
regards
holger