summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorTom Rini <trini@embeddedalley.com>2009-04-07 16:20:42 -0700
committerTom Rini <trini@embeddedalley.com>2009-04-07 16:20:42 -0700
commitec31872ec8e83079e983869504eef39fa98a4233 (patch)
tree7384e0faae7a6d83dcda94719867c22c5b73e941 /recipes
parent69c119a2b998be63816a1d483bdb656fd33f11d2 (diff)
binutils-canadian-sdk: Use add SYSROOT, use SDK_REALPATH_MINGW, bump PR
Diffstat (limited to 'recipes')
-rw-r--r--recipes/binutils/binutils-canadian-sdk_2.18.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes/binutils/binutils-canadian-sdk_2.18.bb b/recipes/binutils/binutils-canadian-sdk_2.18.bb
index cf27cd06f8..e44e7b7144 100644
--- a/recipes/binutils/binutils-canadian-sdk_2.18.bb
+++ b/recipes/binutils/binutils-canadian-sdk_2.18.bb
@@ -9,9 +9,12 @@ DEPENDS="\
"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
-EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
+# On MinGW hosts we want to prepend a drive letter, in ${SDK_REALPATH_MINGW}
+# to the sysroot path.
+SYSROOT = "${@['${SDK_REALPATH}/${TARGET_SYS}', '${SDK_REALPATH_MINGW}${SDK_REALPATH}/${TARGET_SYS}'][bb.data.getVar('SDK_OS', d, 1) in ['mingw32', 'mingw64']]}"
+EXTRA_OECONF = "--with-sysroot=${SYSROOT} \
--program-prefix=${TARGET_PREFIX}"
-PR = "r3"
+PR = "r4"
FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"