changing staging layout based on MULTIMACH_TARGET_SYS
Quoted 3 lines · On Thursday 24 of July 2008 11:14:40 Koen Kooi wrote:
* In an ideal world we would use a single compiler version for all subarchs, but for arm we use 4.2.4 for armv4, armv4t, armv5te and armv6, but 4.3.1 for armv7a. C++ apps don't like that
I just ended Poky build for armv4t/5te/6/7a with gcc 4.3.1 and poky- image-sato got built for each architecture.
Quoted 7 lines
Richard and I have been talking about this for a while now and the change landed in Poky last week.
I'd like to apply this right after the toolchain build order changes to minimize the number of full rebuilds people have to do.
Comments, objections?
+1 from me as this helps to get ARM builds more sane.
It will also break some recipes which works fine now. Thats due to fact that some stuff (like distutils from Python) use ARCH to create paths.
Attached patch is fast hack to make Python buildable after staging changes. Would be nice if someone (Mickeyl?) would review it.
trunk/meta-extras/packages/python/python-native_2.5.1.bb +12 -12
@@ -4,15 +4,19 @@ LICENSE = "PSF" SECTION = "devel/python" PRIORITY = "optional" DEPENDS = "" -PR = "ml1" +PR = "ml3" EXCLUDE_FROM_WORLD = "1" -SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ - file://bindir-libdir.patch;patch=1 \ - file://cross-distutils.patch;patch=1 \ - file://dont-modify-shebang-line.patch;patch=1 \ - file://default-is-optimized.patch;patch=1" +SRC_URI = "\ + http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ + file://bindir-libdir.patch;patch=1 \ + file://cross-distutils.patch;patch=1 \ + file://dont-modify-shebang-line.patch;patch=1 \ + file://default-is-optimized.patch;patch=1 \ + file://catchup-with-swig.patch;patch=1 \ + file://fix-staging.patch;patch=1 \ +" S = "${WORKDIR}/Python-${PV}" inherit autotools native
@@ -22,12 +26,8 @@ exec_prefix = "${STAGING_DIR_NATIVE}/${layout_exec_prefix}" EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \ --without-cxx --with-signal-module --with-wctype-functions" -EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""' - -#do_configure() { -# # the autofoo stuff is too old to allow regenerating -# oe_runconf -#} +EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS="" STAGING_LIBDIR=${STAGING_LIBDIR} \ + STAGING_INCDIR=${STAGING_INCDIR}' do_stage_append() { install -m 0755 Parser/pgen ${STAGING_BINDIR_NATIVE}/
trunk/meta-extras/packages/python/python-scons-native_0.97.bb +2 -0
@@ -4,6 +4,8 @@ DEPENDS = "python-native" RDEPENDS = "" do_stage() { + STAGING_LIBDIR=${STAGING_LIBDIR} \ + STAGING_INCDIR=${STAGING_INCDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_LIBDIR}/.. --install-data=${STAGING_DATADIR} || \ oefatal "python setup.py install execution failed."
trunk/meta/classes/distutils.bbclass +8 -0
@@ -1,12 +1,16 @@ inherit distutils-base distutils_do_compile() { + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python setup.py build || \ oefatal "python setup.py build_ext execution failed." } distutils_stage_headers() { + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python setup.py install_headers --install-dir=${STAGING_INCDIR}/${PYTHON_DIR} || \ oefatal "python setup.py install_headers execution failed."
@@ -14,6 +18,8 @@ distutils_stage_headers() { distutils_stage_all() { install -d ${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ PYTHONPATH=${STAGING_DIR_HOST}${layout_prefix}/${PYTHON_DIR}/site-packages \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${STAGING_DIR_HOST}${layout_prefix} --install-data=${STAGING_DATADIR} || \
@@ -22,6 +28,8 @@ distutils_stage_all() { distutils_do_install() { install -d ${D}${libdir}/${PYTHON_DIR}/site-packages + STAGING_INCDIR=${STAGING_INCDIR} \ + STAGING_LIBDIR=${STAGING_LIBDIR} \ PYTHONPATH=${D}/${libdir}/${PYTHON_DIR}/site-packages \ BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python setup.py install --prefix=${D}/${prefix} --install-data=${D}/${datadir} || \