]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf/qemux86-64: Automate TRANSLATED_TARGET_ARCH
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Aug 2011 14:52:41 +0000 (15:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Aug 2011 16:40:14 +0000 (17:40 +0100)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf
meta/conf/machine/qemux86-64.conf

index ac5d1f39336cf396d84c21808fa33b71e1c4d722..6f0b42c2379c2060bb4bd6321df0642dc8afdb5e 100644 (file)
@@ -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"
index 46d7d1270da1906160b7778339400369c541d0f5..18a75138a8fa5332f7932beeae20febd168e2901 100644 (file)
@@ -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"