cross.bbclass: set autoconf's program prefix to keep TARGET_SYS and TARGET_PREFIX...
authorChris Larson <clarson@mvista.com>
Mon, 2 Mar 2009 16:13:31 +0000 (08:13 -0800)
committerChris Larson <clarson@kergoth.com>
Sun, 22 Mar 2009 03:06:33 +0000 (20:06 -0700)
Currently, we rely on autoconf's implicit prefixing of outputted binaries
for -cross, but that names them based on TARGET_SYS, not TARGET_PREFIX,
which keeps the two tightly coupled.  By explicitly setting the prefix to
the latter, we get around that.

Signed-off-by: Chris Larson <clarson@mvista.com>
classes/cross.bbclass

index 7debde6..72a0fb7 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}"