Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] bitbake.conf/qemux86-64: Automate TRANSLATED_TARGET_ARCH
@ 2011-08-03 15:15 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2011-08-03 15:15 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index ac5d1f3..6f0b42c 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -728,7 +728,7 @@ TARGET_ARCH[unexport] = "1"
 DISTRO[unexport] = "1"
 
 # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
-TRANSLATED_TARGET_ARCH ??= ${TARGET_ARCH}
+TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
 
 # Setup our default hash policy
 BB_SIGNATURE_HANDLER ?= "basic"
diff --git a/meta/conf/machine/qemux86-64.conf b/meta/conf/machine/qemux86-64.conf
index 46d7d12..18a7513 100644
--- a/meta/conf/machine/qemux86-64.conf
+++ b/meta/conf/machine/qemux86-64.conf
@@ -2,9 +2,6 @@
 #@NAME: common_pc
 #@DESCRIPTION: Machine configuration for running a common x86
 
-TARGET_ARCH = "x86_64"
-TRANSLATED_TARGET_ARCH = "x86-64"
-
 PREFERRED_PROVIDER_virtual/libgl  = "mesa-dri"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xf86-dri-lite"





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-03 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-03 15:15 [PATCH] bitbake.conf/qemux86-64: Automate TRANSLATED_TARGET_ARCH Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox