mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 11:28:58 +00:00
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>
This commit is contained in:
@@ -2,7 +2,7 @@ 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} \
|
||||
DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \
|
||||
--install-data=${STAGING_DATADIR}"
|
||||
DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \
|
||||
--install-data=${D}/${datadir}"
|
||||
@@ -16,7 +16,7 @@ distutils_do_compile() {
|
||||
}
|
||||
|
||||
distutils_stage_headers() {
|
||||
install -d ${STAGING_DIR_HOST}${layout_libdir}/${PYTHON_DIR}/site-packages
|
||||
install -d ${STAGING_DIR_HOST}${libdir}/${PYTHON_DIR}/site-packages
|
||||
STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} \
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
@@ -25,10 +25,10 @@ distutils_stage_headers() {
|
||||
}
|
||||
|
||||
distutils_stage_all() {
|
||||
install -d ${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages
|
||||
install -d ${STAGING_DIR_HOST}${prefix}/${PYTHON_DIR}/site-packages
|
||||
STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} \
|
||||
PYTHONPATH=${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages \
|
||||
PYTHONPATH=${STAGING_DIR_HOST}${prefix}/${PYTHON_DIR}/site-packages \
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
${STAGING_BINDIR_NATIVE}/python setup.py install ${DISTUTILS_STAGE_ALL_ARGS} || \
|
||||
oefatal "python setup.py install (stage) execution failed."
|
||||
|
||||
Reference in New Issue
Block a user