- For ppc darwin, use the wrapper scripts
- For i386 darwin, set -m32, as uname shows i386 even on 64 bit darwin
- For i386 and ppc darwin, set COMMAND_MODE to fix incompatible shell utility
behavior, for example 'echo' not handling -n as expected
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-BUILD_ARCH="powerpc"
+PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
+BUILD_ARCH = "powerpc"
+
+require conf/build/darwin/utilities.inc
--- /dev/null
+python darwin_utilities_fixup() {
+ import os
+ import bb.event
+
+ if isinstance(e, bb.event.ConfigParsed):
+ os.environ["COMMAND_MODE"] = "legacy"
+}
+
+addhandler darwin_utilities_fixup
PATH =. "${@bb.which('${BBPATH}', 'bin')}:"
+BUILD_CC_ARCH += "-m32"
+
+require conf/build/darwin/utilities.inc