diff options
author | Chris Larson <clarson@mvista.com> | 2009-03-02 08:13:31 -0800 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2009-03-21 20:06:33 -0700 |
commit | 114155243344c15847e73598e82d02926443cbf1 (patch) | |
tree | bf591d8ac34d9927d6cc07b4536afb7882e4e17a /classes/cross.bbclass | |
parent | 630555abb7ed906d6cb4bedecc94c34db84328ea (diff) |
cross.bbclass: set autoconf's program prefix to keep TARGET_SYS and TARGET_PREFIX decoupled
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>
Diffstat (limited to 'classes/cross.bbclass')
-rw-r--r-- | classes/cross.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/cross.bbclass b/classes/cross.bbclass index 7debde6669..72a0fb7851 100644 --- a/classes/cross.bbclass +++ b/classes/cross.bbclass @@ -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}" |