]> code.ossystems Code Review - openembedded-core.git/commitdiff
crosstap: handle hyphenated x86_64 target arch
authorTom Zanussi <tom.zanussi@linux.intel.com>
Tue, 5 Feb 2013 14:26:36 +0000 (08:26 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Feb 2013 15:22:19 +0000 (15:22 +0000)
systemtap_target_arch() should also translate x86-64 (hyphenated) into
x86_64 for the -a param.  Failing to do that causes systemtap to see
an architecture mismatch and create a cloned session with a bogusly
synthesized build directory path, and fails to compile the probe.

 Fixes [YOCTO #3756]

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/crosstap

index 783bf2ffbeee5d01eee7d6a4ff8b7b086fa33890..58317cf91cc07e162b1ac37aea1ef48542d6f830 100755 (executable)
@@ -70,7 +70,7 @@ function systemtap_target_arch() {
         i?86)
             SYSTEMTAP_TARGET_ARCH="i386"
             ;;
-        x86_64*)
+        x86?64*)
             SYSTEMTAP_TARGET_ARCH="x86_64"
             ;;
         arm*)