aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/staging.bbclass
AgeCommit message (Expand)Author
2013-12-18sstate: Get rid of crazy name mappingRichard Purdie
2013-11-14staging: Use hardlinking for sysroot_stage_dirRichard Purdie
2013-10-14bitbake.conf: Remove double slash from PATH_prepend and PKG_CONFIG_DIRMartin Jansa
2013-10-11classes: tar 1.27 fixesRichard Purdie
2013-02-06staging.bbclass: Drop unused/legacy functionRichard Purdie
2013-02-06staging/insane.bbclass: Move legacy do_stage check iinto insane.bbclassRichard Purdie
2013-01-25staging: Drop obsolete commentsRichard Purdie
2012-12-19bitbake.conf: add nonarch_base_lib variableConstantin Musca
2012-08-28staging.bbclass: Might as well drop the applications, fonts and pixmap direct...Richard Purdie
2012-08-21meta/classes: Various python whitespace fixesRichard Purdie
2012-07-26staging.bbclass: Add support for invalidtasks parameter (see bitbake change)Richard Purdie
2012-07-19staging.bbclass: Also don't bother staging locale files, its pointlessRichard Purdie
2012-07-19staging.bbclass: Ensure the task starts from a clean directoryRichard Purdie
2012-07-19staging.bbclass: Don't stage doc/manpage/info filesRichard Purdie
2012-07-19Convert tab indentation in python functions into four-spaceRichard Purdie
2012-02-26Quoting fixesRichard Purdie
2012-02-01classes: replace 'Poky' with 'OE-core'Koen Kooi
2011-11-22staging: Remove debug accidently left inRichard Purdie
2011-11-22staging.bbclass: Add BB_SETSCENE_VERIFY_FUNCTION functionRichard Purdie
2011-11-10Convert to use direct access to the data store (instead of bb.data.*Var*())Richard Purdie
2011-06-30Add umask task controlMark Hatle
2011-02-09Misc hard link fixesMark Hatle
2011-01-28staging.bbclass: Only clean out the sysroot if we rerun configure, not at set...Richard Purdie
2011-01-26staging.bbclass: No need to create these directories any more, also remove in...Richard Purdie
2011-01-25bitbake: machine specific sysroots implementationDongxiao Xu
2011-01-21staging: Use relative path in sysroot-destdir for target recipesDongxiao Xu
2011-01-21staging.bbclass, utils.bbclass: remove la mangling codeScott Garman
2011-01-17staging: relocate *.la paths in destination dirsDongxiao Xu
2010-12-10Drop variables that do nothingRichard Purdie
2010-10-05Revert "classes: Disable setscene tasks for initial testing"Richard Purdie
2010-08-19classes: Disable setscene tasks for initial testingRichard Purdie
2010-08-19staging.bbclass: Convert to packaged-stagingRichard Purdie
2010-08-13staging.bbclass: mangle *.la for ${base_libdir} tooKevin Tian
2010-07-30staging: Remove now unused legacy staging codeRichard Purdie
2010-07-22Finally deprecate all legacy do_stage functions. This changes the existing wa...Richard Purdie
2010-07-16staging: fix staging of empty directories and add localstatedirJoshua Lock
2010-03-19base.bbclass: Split up as per the patch in OE.dev by Chris Larson making code...Richard Purdie
ef icc_is_kernel(bb, d): return \ bb.data.inherits_class("kernel", d); def icc_is_native(bb, d): return \ bb.data.inherits_class("cross", d) or \ bb.data.inherits_class("native", d); def icc_version(bb, d): if use_icc(bb, d) == "no": return "" parallel = d.getVar('ICECC_PARALLEL_MAKE') or "" d.setVar("PARALLEL_MAKE", parallel) if icc_is_native(bb, d): archive_name = "local-host-env" elif d.expand('${HOST_PREFIX}') == "": bb.fatal(d.expand("${PN}"), " NULL prefix") else: prefix = d.expand('${HOST_PREFIX}' ) distro = d.expand('${DISTRO}') target_sys = d.expand('${TARGET_SYS}') float = d.getVar('TARGET_FPU') or "hard" archive_name = prefix + distro + "-" + target_sys + "-" + float if icc_is_kernel(bb, d): archive_name += "-kernel" import socket ice_dir = d.expand('${STAGING_DIR_NATIVE}${prefix_native}') tar_file = os.path.join(ice_dir, 'ice', archive_name + "-@VERSION@-" + socket.gethostname() + '.tar.gz') return tar_file def icc_path(bb,d): if icc_is_kernel(bb, d): return create_path( [get_cross_kernel_cc(bb,d), ], bb, d) else: prefix = d.expand('${HOST_PREFIX}') return create_path( [prefix+"gcc", prefix+"g++"], bb, d) def icc_get_tool(bb, d, tool): if icc_is_native(bb, d): return os.popen("which %s" % tool).read()[:-1] elif icc_is_kernel(bb, d): return os.popen("which %s" % get_cross_kernel_cc(bb, d)).read()[:-1] else: ice_dir = d.expand('${STAGING_BINDIR_TOOLCHAIN}') target_sys = d.expand('${TARGET_SYS}') return os.path.join(ice_dir, "%s-%s" % (target_sys, tool)) set_icecc_env() { ICECC_VERSION="${@icc_version(bb, d)}" if [ "x${ICECC_VERSION}" = "x" ] then return fi ICE_PATH="${@icc_path(bb, d)}" if [ "x${ICE_PATH}" = "x" ] then return fi ICECC_CC="${@icc_get_tool(bb,d, "gcc")}" ICECC_CXX="${@icc_get_tool(bb,d, "g++")}" if [ ! -x "${ICECC_CC}" -o ! -x "${ICECC_CXX}" ] then return fi ICE_VERSION=`$ICECC_CC -dumpversion` ICECC_VERSION=`echo ${ICECC_VERSION} | sed -e "s/@VERSION@/$ICE_VERSION/g"` if [ ! -x "${ICECC_ENV_EXEC}" ] then return fi ICECC_AS="`${ICECC_CC} -print-prog-name=as`" if [ "`dirname "${ICECC_AS}"`" = "." ] then ICECC_AS="`which as`" fi if [ ! -r "${ICECC_VERSION}" ] then mkdir -p "`dirname "${ICECC_VERSION}"`" ${ICECC_ENV_EXEC} "${ICECC_CC}" "${ICECC_CXX}" "${ICECC_AS}" "${ICECC_VERSION}" fi export ICECC_VERSION ICECC_CC ICECC_CXX export PATH="$ICE_PATH:$PATH" export CCACHE_PATH="$PATH" } do_configure_prepend() { set_icecc_env } do_compile_prepend() { set_icecc_env } do_compile_kernelmodules_prepend() { set_icecc_env } #do_install_prepend() { # set_icecc_env #}