[OE]通过变量设置是否创建SSTATE

http://patchwork.openembedded.org/patch/17039/


diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclassindex 0f88a23..22ce653 100644--- a/meta/classes/sstate.bbclass+++ b/meta/classes/sstate.bbclass@@ -13,6 +13,8 @@ SSTATE_PKG        = "${SSTATE_DIR}/${SSTATE_PKGNAME}"  SSTATE_SCAN_FILES ?= "*.la *-config"  SSTATE_SCAN_CMD ?= 'find ${SSTATE_BUILDDIR} \( -name "${@"\" -o -name \"".join(d.getVar("SSTATE_SCAN_FILES", True).split())}" \) -type f'  +SSTATE_CREATE_PKG ?= "1"+  BB_HASHFILENAME = "${SSTATE_PKGNAME}"    SSTATE_MANMACH ?= "${SSTATE_PKGARCH}"@@ -436,9 +438,11 @@ python sstate_task_prefunc () {  python sstate_task_postfunc () {      shared_state = sstate_state_fromvars(d)      sstate_install(shared_state, d)-    for intercept in shared_state['interceptfuncs']:-        bb.build.exec_func(intercept, d)-    sstate_package(shared_state, d)+    enabled = d.getVar('SSTATE_CREATE_PKG', True)+    if enabled and enabled == "1":+        for intercept in shared_state['interceptfuncs']:+            bb.build.exec_func(intercept, d)+        sstate_package(shared_state, d)  }      


你可能感兴趣的:(#oe)