summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-07-29 22:20:41 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-07-29 22:20:41 +0000
commit4d57b6bc2f95d8f569db46aa9fb6e02540aa7e46 (patch)
treeb3a762984a54fefd8e63b32202c1a8a191e0c849
parentf6310c4e838b88abe092d1f8a85881d767aa52be (diff)
image.bbclass: Use system python explicitly, don't use python-native version
-rw-r--r--classes/image.bbclass2
-rw-r--r--conf/bitbake.conf1
2 files changed, 2 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 5f1dfa2dce..05bc9d669b 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -91,7 +91,7 @@ fakeroot do_rootfs () {
if test -z "$FAKEROOTKEY"; then
fakeroot -i ${TMPDIR}/fakedb.image bbimage -t $type -e ${FILE}
else
- bbimage -n "${IMAGE_NAME}" -t "$type" -e "${FILE}"
+ ${PYTHON} `which bbimage` -n "${IMAGE_NAME}" -t "$type" -e "${FILE}"
fi
cd ${DEPLOY_DIR_IMAGE}/
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 328125e0b4..e305dc3251 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -246,6 +246,7 @@ export RANLIB = "${HOST_PREFIX}ranlib"
export STRIP = "${HOST_PREFIX}strip"
export OBJCOPY = "${HOST_PREFIX}objcopy"
export OBJDUMP = "${HOST_PREFIX}objdump"
+PYTHON = "${@sys.executable}"
export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}"