tcmode-default.inc: Add TRANSLATED_TARGET_ARCH suffix to binutils-cross-canadian
PATCH 1/3 tcmode-default.inc: Add TRANSLATED_TARGET_ARCH suffix to binutils-cross-canadian
PN for binutils-cross-canadian is
binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}
so thats what we should use for PREFERRED_VERSION
--- meta/conf/distro/include/tcmode-default.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -45,7 +45,7 @@ PREFERRED_VERSION_libgcc-nativesdk ?= "${SDKGCCVERSION}" PREFERRED_VERSION_binutils ?= "${BINUVERSION}" PREFERRED_VERSION_binutils-cross ?= "${BINUVERSION}" PREFERRED_VERSION_binutils-crosssdk ?= "${BINUVERSION}" -PREFERRED_VERSION_binutils-cross-canadian ?= "${BINUVERSION}" +PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${BINUVERSION}" PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_linux-libc-headers-nativesdk ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_eglibc ?= "${EGLIBCVERSION}"
Signature · 1 line
1.7.5.4
PATCH 2/3 binutils-cross-canadian: Point sysroot to correct location
--- .../binutils/binutils-cross-canadian.inc | 2 +- .../binutils/binutils-cross-canadian_2.21.1a.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/binutils/binutils-cross-canadian.inc +1 -1
@@ -5,7 +5,7 @@ PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}" BPN = "binutils" DEPENDS = "flex-native bison-native virtual/${HOST_PREFIX}gcc-crosssdk virtual/libc-nativesdk zlib-nativesdk gettext-nativesdk" -EXTRA_OECONF = "--with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \ +EXTRA_OECONF = "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \ --program-prefix=${TARGET_PREFIX} \ --disable-werror"
meta/recipes-devtools/binutils/binutils-cross-canadian_2.21.1a.bb +1 -1
@@ -1,3 +1,3 @@ require binutils_${PV}.bb require binutils-cross-canadian.inc -PR = "r1" +PR = "r2"
Signature · 1 line
1.7.5.4
PATCH 3/3 gcc-configure-sdk: Point sysroot to correct location
In reply to Khem Raj--- meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/gcc-configure-sdk.inc +1 -1
@@ -7,7 +7,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}' EXTRA_OECONF_PATHS = "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \ --with-gxx-include-dir=${target_includedir}/c++ \ --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ - --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \ + --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \ --with-build-sysroot=${STAGING_DIR_TARGET}" #
Signature · 1 line
1.7.5.4
Re: [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct location
Quoted 29 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Friday, 21 October 2011 1:03 PM
To: [email protected]
Subject: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationSigned-off-by Khem Raj <[email protected]>--- meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)meta/recipes- renamed from meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0devtools/gcc/gcc-configure-sdk.inc
index de80870..98fd4c1 100644meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0@@ -7,7 +7,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}'
EXTRA_OECONF_PATHS= "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \ --with-gxx-include-dir=${target_includedir}/c++ \ --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
meta/recipes-devtools/gcc/gcc-configure-sdk.inc +1
-1- --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \ + --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-
Quoted 7 lines
${TARGET_OS} \ --with-build-sysroot=${STAGING_DIR_TARGET}"#
--
1.7.5.4
Shouldn't --with-local-prefix be changed too? I am testing with both ${TARGET_SYS}'s replaced. Will post results shortly.
James
Re: [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct location
Quoted 32 lines · James Limbouris
Quoted 32 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Friday, 21 October 2011 1:03 PM
To: [email protected]
Subject: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationSigned-off-by Khem Raj <[email protected]>---
meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)meta/recipes- renamed from meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0devtools/gcc/gcc-configure-sdk.inc
index de80870..98fd4c1 100644meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0@@ -7,7 +7,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}'
EXTRA_OECONF_PATHS = "--with-local- prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \
--with-gxx-include-dir=${target_includedir}/c++ \
--with-build-time- tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
- --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \
+ --with- sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}- ${TARGET_OS} \
--with-build-sysroot=${STAGING_DIR_TARGET}"
Quoted 6 lines
Quoted 4 lines
#
--
1.7.5.4Shouldn't --with-local-prefix be changed too? I am testing with both ${TARGET_SYS}'s replaced. Will post results shortly.
yes I think both places it should change
Quoted 9 lines
James
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct location
Quoted 50 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Friday, 21 October 2011 1:16 PM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationQuoted 3 lines · James Limbouris
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf
Quoted 29 lines
Quoted 29 lines
Khem Raj
Sent: Friday, 21 October 2011 1:03 PM
To: [email protected]
Subject: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationSigned-off-by Khem Raj <[email protected]>---
meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)meta/recipes- renamed from meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0devtools/gcc/gcc-configure-sdk.inc
index de80870..98fd4c1 100644meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0@@ -7,7 +7,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}'
EXTRA_OECONF_PATHS = "--with-local- prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \
--with-gxx-include-dir=${target_includedir}/c++ \
--with-build-time- tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
- --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \
+ --with- sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}- ${TARGET_OS} \
--with-build-sysroot=${STAGING_DIR_TARGET}"Quoted 6 lines
Quoted 4 lines
#
--
1.7.5.4Shouldn't --with-local-prefix be changed too? I am testing with both
Quoted 4 lines
${TARGET_SYS}'s replaced. Will post results shortly.
yes I think both places it should change
Ok, I've tested with both changed, and the corresponding binutils patch, and both Qt and kernel compiles are working.
Thanks,
James
Quoted 14 lines · Khem Raj
PN for binutils-cross-canadian is
binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}
so thats what we should use forPREFERRED_VERSIONSigned-off-by Khem Raj<[email protected]>--- meta/conf/distro/include/tcmode-default.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)meta/conf/distro/include/tcmode-default.inc +0
-0
meta/conf/distro/include/tcmode-default.inc PREFERRED_VERSION_libgcc-nativesdk ?= "${SDKGCCVERSION}" · line 51
Quoted 8 lines
meta/conf/distro/include/tcmode-default.inc +1
-1@@ -45,7 +45,7 @@ PREFERRED_VERSION_libgcc-nativesdk ?= "${SDKGCCVERSION}" PREFERRED_VERSION_binutils ?= "${BINUVERSION}" PREFERRED_VERSION_binutils-cross ?= "${BINUVERSION}" PREFERRED_VERSION_binutils-crosssdk ?= "${BINUVERSION}" -PREFERRED_VERSION_binutils-cross-canadian ?= "${BINUVERSION}" +PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${BINUVERSION}" PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_linux-libc-headers-nativesdk ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_eglibc ?= "${EGLIBCVERSION}"
Merged all 3 of these with the V2 of the GCC patch
Thanks
Sau!
Re: [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct location
In reply to James LimbourisQuoted 50 lines · James Limbouris
Quoted 50 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Friday, 21 October 2011 1:16 PM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationQuoted 3 lines · James Limbouris
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf
Quoted 35 lines
Quoted 26 lines
Khem Raj
Sent: Friday, 21 October 2011 1:03 PM
To: [email protected]
Subject: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationSigned-off-by Khem Raj <[email protected]>--- meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)meta/recipes- renamed from meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0devtools/gcc/gcc-configure-sdk.inc
index de80870..98fd4c1 100644meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0@@ -7,7 +7,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibceabi", "no", "", d )}'
EXTRA_OECONF_PATHS= "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \ --with-gxx-include-dir=${target_includedir}/c++ \ --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
meta/recipes-devtools/gcc/gcc-configure-sdk.inc +1
-1- --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \ + --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-
Quoted 7 lines
${TARGET_OS} \ --with-build-sysroot=${STAGING_DIR_TARGET}"#
--
1.7.5.4Shouldn't --with-local-prefix be changed too? I am testing with both
Quoted 6 lines
Quoted 4 lines
${TARGET_SYS}'s replaced. Will post results shortly.
yes I think both places it should change
Ok, I've tested with both changed, and the corresponding binutils patch, and both Qt and kernel compiles are working.
I took these patches but I would like to stress that we shouldn't need to rely on the hardcoded path in the compiler, it should be picking up any alternative sysroot paths from the environment. If this isn't happening, we should be figuring out why not. This change therefore hides issues and does not fix the problem entirely :(.
Cheers,
Richard
Re: [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct location
Quoted 80 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Purdie
Sent: Thursday, 27 October 2011 4:54 AM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationQuoted 3 lines · James Limbouris
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf
Quoted 4 lines
Quoted 4 lines
Khem Raj
Sent: Friday, 21 October 2011 1:16 PM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot tocorrect
Quoted 7 lines
Quoted 7 lines
location
Quoted 3 lines · James Limbouris
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] OnBehalf
Quoted 5 lines
Quoted 5 lines
Of
Quoted 4 lines
Quoted 4 lines
Khem Raj
Sent: Friday, 21 October 2011 1:03 PM
To: [email protected]
Subject: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot tocorrect
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Review
Quoted 8 lines
location
Signed-off-by Khem Raj <[email protected]>--- meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)(quoted diff) +0
-0b/meta/recipes-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
meta/recipes-devtools/gcc/gcc-configure-sdk.inc USE_NLS = '${@base_conditional( "TARGET_OS",
Quoted 5 lines
devtools/gcc/gcc-configure-sdk.inc
index de80870..98fd4c1 100644meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0@@ -7,7 +7,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS","linux-
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
uclibceabi", "no", "", d )}'
EXTRA_OECONF_PATHS= "--with-local-prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \ --with-gxx-include-dir=${target_includedir}/c++ \ --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
meta/recipes-devtools/gcc/gcc-configure-sdk.inc +1
-1- --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \ + --with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-
${TARGET_OS} \ --with-build-sysroot=${STAGING_DIR_TARGET}"#
--
1.7.5.4Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Shouldn't --with-local-prefix be changed too? I am testing with both
${TARGET_SYS}'s replaced. Will post results shortly.
yes I think both places it should change
Ok, I've tested with both changed, and the corresponding binutils patch, and
both Qt and kernel compiles are working.
I took these patches but I would like to stress that we shouldn't need to rely on the hardcoded path in the compiler, it should be picking up any alternative sysroot paths from the environment. If this isn't happening, we should be figuring out why not. This change therefore hides issues and does not fix the problem entirely :(.
Quoted 3 lines
Cheers,
Richard
I'm not sure there was a problem apart from the hardcoded paths being wrong - in the use cases this fixed, the environment setup script was not being sourced.
James
Re: [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct location
Quoted 80 lines · James Limbouris
Quoted 80 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Purdie
Sent: Thursday, 27 October 2011 4:54 AM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot to correct locationQuoted 3 lines · James Limbouris
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On BehalfOf
Quoted 4 lines
Quoted 4 lines
Khem Raj
Sent: Friday, 21 October 2011 1:16 PM
To: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot tocorrect
Quoted 7 lines
Quoted 7 lines
location
Quoted 3 lines · James Limbouris
Quoted 3 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] OnBehalf
Quoted 5 lines
Quoted 5 lines
Of
Quoted 4 lines
Quoted 4 lines
Khem Raj
Sent: Friday, 21 October 2011 1:03 PM
To: [email protected]
Subject: [OE-core] [PATCH 3/3] gcc-configure-sdk: Point sysroot tocorrect
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Review
Quoted 8 lines
location
Signed-off-by Khem Raj <[email protected]>---
meta/recipes-devtools/gcc/gcc-configure-sdk.inc | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)(quoted diff) +0
-0b/meta/recipes-
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
meta/recipes-devtools/gcc/gcc-configure-sdk.inc USE_NLS = '${@base_conditional( "TARGET_OS",
Quoted 5 lines
devtools/gcc/gcc-configure-sdk.inc
index de80870..98fd4c1 100644meta/recipes-devtools/gcc/gcc-configure-sdk.inc +0
-0@@ -7,7 +7,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS","linux-
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 16 lines
uclibceabi", "no", "", d )}'
EXTRA_OECONF_PATHS = "--with-local- prefix=${SDKPATH}/sysroots/${TARGET_SYS}${target_exec_prefix} \
--with-gxx-include-dir=${target_includedir}/c++ \
--with-build-time- tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
- --with-sysroot=${SDKPATH}/sysroots/${TARGET_SYS} \
+ --with- sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}- ${TARGET_OS} \
--with-build-sysroot=${STAGING_DIR_TARGET}"#
--
1.7.5.4Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Shouldn't --with-local-prefix be changed too? I am testing with both
${TARGET_SYS}'s replaced. Will post results shortly.
yes I think both places it should change
Ok, I've tested with both changed, and the corresponding binutils patch, and
both Qt and kernel compiles are working.
I took these patches but I would like to stress that we shouldn't need to rely on the hardcoded path in the compiler, it should be picking up any alternative sysroot paths from the environment. If this isn't happening, we should be figuring out why not. This change therefore hides issues and does not fix the problem entirely :(.
Quoted 5 lines
Quoted 3 lines
Cheers,
Richard
I'm not sure there was a problem apart from the hardcoded paths being wrong - in the use cases this fixed, the environment setup script was not being sourced.
... except for u-boot / kernel which ignore such advice from the environment, often with reason.
Signature · 1 line
Tom