[oe-commits] : distutils.bbclass: allow specifying arguments to the build command
OE GIT Trial
gittrial at amethyst.openembedded.net
Tue Aug 12 14:26:29 UTC 2008
Module: OE.dev
Branch: org.openembedded.dev
Commit: b3945301bac5f1896dbcbd60b2db9f7e9570c5a0
URL: http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=b3945301bac5f1896dbcbd60b2db9f7e9570c5a0
Author: <mickeyl at openembedded.org>
Date: Sat Aug 9 19:39:42 2008 +0000
distutils.bbclass: allow specifying arguments to the build command
---
classes/distutils.bbclass | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/classes/distutils.bbclass b/classes/distutils.bbclass
index fa34565..a35ca27 100644
--- a/classes/distutils.bbclass
+++ b/classes/distutils.bbclass
@@ -1,5 +1,6 @@
inherit distutils-base
+DISTUTILS_BUILD_ARGS ?= ""
DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}"
DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${layout_prefix} \
--install-data=${STAGING_DATADIR}"
@@ -8,7 +9,7 @@ DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
distutils_do_compile() {
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
- ${STAGING_BINDIR_NATIVE}/python setup.py build || \
+ ${STAGING_BINDIR_NATIVE}/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
oefatal "python setup.py build_ext execution failed."
}
More information about the Openembedded-commits
mailing list