diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-16 23:09:44 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-09-17 22:24:36 +0100 |
commit | af85ce4b4e675feb5796f87137c86d70c2f15b9a (patch) | |
tree | f19dbb9bcf1eec671b26685458f7cc47ebb3721e /meta/classes/distutils.bbclass | |
parent | 046ae6a38d829048663fe1afb1f67de1fbe2e3b5 (diff) | |
download | poky-af85ce4b4e675feb5796f87137c86d70c2f15b9a.tar.gz |
Remove layout_* variables
Remove layout_* variables and replace them with variables specific to the
different classes. The layout variables were only useful for the native/cross
classes and caused more confusion than they solved. They didn't scale to the
sdk class. It now clear a small set of native/cross variables fulfil the needs.
This patch also changes native.bbclass to use "/" as the STAGING_DIR which makes
sense since we're installing binaries into the locations we're compiling them for.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/distutils.bbclass')
-rw-r--r-- | meta/classes/distutils.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass index 2fcf0fd6cb..0b9bdfe1a9 100644 --- a/meta/classes/distutils.bbclass +++ b/meta/classes/distutils.bbclass | |||
@@ -2,7 +2,7 @@ inherit distutils-base | |||
2 | 2 | ||
3 | DISTUTILS_BUILD_ARGS ?= "" | 3 | DISTUTILS_BUILD_ARGS ?= "" |
4 | DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}" | 4 | DISTUTILS_STAGE_HEADERS_ARGS ?= "--install-dir=${STAGING_INCDIR}/${PYTHON_DIR}" |
5 | DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${layout_prefix} \ | 5 | DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \ |
6 | --install-data=${STAGING_DATADIR}" | 6 | --install-data=${STAGING_DATADIR}" |
7 | DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ | 7 | DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ |
8 | --install-data=${D}/${datadir}" | 8 | --install-data=${D}/${datadir}" |
@@ -16,7 +16,7 @@ distutils_do_compile() { | |||
16 | } | 16 | } |
17 | 17 | ||
18 | distutils_stage_headers() { | 18 | distutils_stage_headers() { |
19 | install -d ${STAGING_DIR_HOST}${layout_libdir}/${PYTHON_DIR}/site-packages | 19 | install -d ${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR}/site-packages |
20 | STAGING_INCDIR=${STAGING_INCDIR} \ | 20 | STAGING_INCDIR=${STAGING_INCDIR} \ |
21 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 21 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
22 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 22 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
@@ -25,10 +25,10 @@ distutils_stage_headers() { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | distutils_stage_all() { | 27 | distutils_stage_all() { |
28 | install -d ${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages | 28 | install -d ${STAGING_DIR_HOST}${prefix}/${PYTHON_DIR}/site-packages |
29 | STAGING_INCDIR=${STAGING_INCDIR} \ | 29 | STAGING_INCDIR=${STAGING_INCDIR} \ |
30 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 30 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
31 | PYTHONPATH=${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages \ | 31 | PYTHONPATH=${STAGING_DIR_HOST}${prefix}/${PYTHON_DIR}/site-packages \ |
32 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ | 32 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ |
33 | ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ | 33 | ${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \ |
34 | oefatal "python setup.py install (stage) execution failed." | 34 | oefatal "python setup.py install (stage) execution failed." |