cross.bbclass: keep TARGET_SYS & TARGET_PREFIX independent.
authorChristopher Larson <clarson@mvista.com>
Wed, 19 Aug 2009 17:24:32 +0000 (17:24 +0000)
committerChris Larson <chris_larson@mentor.com>
Thu, 25 Feb 2010 18:42:26 +0000 (11:42 -0700)
Signed-off-by: Chris Larson <clarson@mvista.com>
Acked-by: Michael Smith <msmith@cbnco.com>
Acked-by: Tom Rini <tom_rini@mentor.com>
classes/cross.bbclass

index 1de157c..9a3d39c 100644 (file)
@@ -2,6 +2,11 @@
 # no need for them to be a direct target of 'world'
 EXCLUDE_FROM_WORLD = "1"
 
+# In order to keep TARGET_PREFIX decoupled from TARGET_SYS, let's force the
+# binary names to match the former, rather than relying on autoconf's implicit
+# prefixing based on the latter.
+EXTRA_OECONF_append = " --program-prefix=${TARGET_PREFIX}"
+
 # Save PACKAGE_ARCH before changing HOST_ARCH
 OLD_PACKAGE_ARCH := "${PACKAGE_ARCH}"
 PACKAGE_ARCH = "${OLD_PACKAGE_ARCH}"