summaryrefslogtreecommitdiffstats
path: root/meta/classes/devicetree.bbclass
diff options
context:
space:
mode:
authorPaul Barker <pbarker@konsulko.com>2020-12-16 18:16:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-12 14:25:14 +0000
commita1296d40a10ea2b2fe80bfde3ba2634c4dc22c75 (patch)
tree3b9de9bcdb70cafc8ba5aca8aa194289a5944458 /meta/classes/devicetree.bbclass
parent44bc055c8cdc9b00dfe757e175c81f7723aebb20 (diff)
downloadpoky-a1296d40a10ea2b2fe80bfde3ba2634c4dc22c75.tar.gz
bitbake.conf: Prevent pyc file generation in pseudo context
This also effectively reverts commit b6d30c21b0: bitbake.conf: Extend PSEUDO_IGNORE_PATHS to ${COREBASE}/meta The contents of ${COREBASE}/meta were ignored as pyc files could be generated for the contents of the lib subdirectory if python modules were imported within a pseudo context. However this doesn't protect us from pyc files being generated in the lib directories for other layers. It's far better to tell python not to produce pyc files when running under pseudo (by setting the PYTHONDONTWRITEBYTECODE variable) as this will cover any location where pyc files could possibly be created. This variable is set in FAKEROOTBASEENV so that it applies to the bitbake-worker instance for fakeroot tasks, preventing pyc files from being generated for imports in python tasks themselves. Also add a test case to ensure that pyc files are not created in tasks which are executed under pseudo. (From OE-Core rev: 7aa1ae139b9131faff04c0ed156fd8efcde114f6) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 73d538f20743017a44cea4c20dbe09a0327cfc71) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/devicetree.bbclass')
0 files changed, 0 insertions, 0 deletions