Patchwork [1/1] crosstap: handle hyphenated x86_64 target arch

login
register
mail settings
Submitter tom.zanussi@linux.intel.com
Date Feb. 5, 2013, 2:26 p.m.
Message ID <341343d75f79054134a88814833ff75823a787ac.1360074262.git.tom.zanussi@linux.intel.com>
Download mbox | patch
Permalink /patch/44099/
State Accepted
Commit 97b7e4f46e2116e9cbaa02efa7d37321fd32b368
Headers show

Comments

tom.zanussi@linux.intel.com - Feb. 5, 2013, 2:26 p.m.
From: Tom Zanussi <tom.zanussi@linux.intel.com>

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>
---
 scripts/crosstap | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/crosstap b/scripts/crosstap
index 783bf2f..58317cf 100755
--- a/scripts/crosstap
+++ b/scripts/crosstap
@@ -70,7 +70,7 @@  function systemtap_target_arch() {
         i?86)
             SYSTEMTAP_TARGET_ARCH="i386"
             ;;
-        x86_64*)
+        x86?64*)
             SYSTEMTAP_TARGET_ARCH="x86_64"
             ;;
         arm*)