poky/scripts
Patrick Ohly 010f9fa86a verify-bashisms: fix problems with tinfoil2
tinfoil2 is based on a client/server architecture, which broke the
verify-bashisms script:

- The tinfoil instance and its data proxies can't be pickled, so
  all interaction with the bitbake server has to run in the main
  script process and only processing of the plain scripts can
  be done with multiprocessing:

  _pickle.PicklingError: Can't pickle <class 'bb.tinfoil.TinfoilCookerAdapter.TinfoilRecipeCacheAdapter'>: attribute lookup TinfoilRecipeCacheAdapter on bb.tinfoil failed

- The multiprocessing pool has to be created before initializing
  tinfoil, otherwise the pool workers end up trying to communicate
  with the bitbake server during shutdown:

  ERROR: UI received SIGTERM
  Process ForkPoolWorker-2:
  Traceback (most recent call last):
    File "/usr/lib/python3.4/multiprocessing/process.py", line 257, in _bootstrap
      util._exit_function()
    File "/usr/lib/python3.4/multiprocessing/util.py", line 286, in _exit_function
      _run_finalizers(0)
    ...
    File "/usr/lib/python3.4/multiprocessing/process.py", line 131, in is_alive
      assert self._parent_pid == os.getpid(), 'can only test a child process'
   AssertionError: can only test a child process

- func() needs to defined before creating the pool to avoid:

  AttributeError: Can't get attribute 'func' on <module '__main__' from '/work/openembedded-core/scripts/verify-bashisms'>

(From OE-Core rev: aa439f11c7f414774843720d68ebe0a6d3375ea6)

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-01-31 15:28:41 +00:00
..
contrib python-3.5-manifest: Add http module to the netclient package 2017-01-16 18:05:12 +00:00
lib isoimage-isohybrid: renamed variable hdd_dir 2017-01-31 14:38:32 +00:00
native-intercept
postinst-intercepts gio-module-cache: Add class for Gio modules 2016-03-28 15:55:49 +01:00
pybootchartgui pybootchartgui: support reading reduced /proc logs 2016-12-07 10:38:00 +00:00
tiny scripts: python3 fixes and new tool ksum 2017-01-16 18:05:14 +00:00
bitbake-prserv-tool bitbake-prserv-tool: check file name 2015-11-25 07:50:30 +00:00
bitbake-whatchanged scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
buildhistory-collect-srcrevs buildhistory-collect-srcrevs: Fix multiple SRCREV definitions 2016-10-28 16:15:17 +01:00
buildhistory-diff buildhistory-diff: suggest correct version of PythonGit 2016-06-12 23:47:17 +01:00
buildstats-diff scripts/buildstats-diff: simplify timestamp handling 2017-01-28 23:32:16 +00:00
cleanup-workdir scripts/cleanup-workdir: Adapt to SDK_ARCH -> SDK_SYS chanages for crosssdk 2016-09-28 10:16:03 +01:00
combo-layer combo-layer: handle file_exclude matching dirs 2016-10-28 16:15:21 +01:00
combo-layer-hook-default.sh combo-layer-hook-default.sh: handle patches without Signed-off-by 2015-03-20 11:21:25 +00:00
combo-layer.conf.example combo-layer: partial import for '--history init' 2015-03-20 11:21:24 +00:00
cp-noerror scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
create-pull-request create-pull-request: fix for OE cgit URL change 2017-01-23 12:05:22 +00:00
crosstap
devtool devtool: check locale and refuse to start if it isn't UTF-8 2017-01-23 12:05:22 +00:00
gen-lockedsig-cache gen-lockedsig-cache: ensure symlinks are dereferenced 2016-08-17 10:35:40 +01:00
gen-site-config
lnr scripts/lnr: update for python3 2016-06-01 12:47:10 +01:00
multilib_header_wrapper.h
oe-build-perf-test oe-build-perf-test: remove unused imports and fix indent 2017-01-23 12:05:22 +00:00
oe-buildenv-internal oe-buildenv-internal: show usage output 2016-12-13 22:55:21 +00:00
oe-check-sstate devtool/recipetool/meta: Adapt to bitbake API changes for multi-configuration builds 2016-08-18 10:07:23 +01:00
oe-find-native-sysroot oe-find-native-sysroot: create usage output 2016-12-13 22:55:21 +00:00
oe-git-proxy oe-git-proxy: create usage output 2016-12-13 22:55:21 +00:00
oe-gnome-terminal-phonehome terminal: Fix gnome-terminal to work with recent versions 2016-07-08 10:50:18 +01:00
oe-pkgdata-util scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
oe-publish-sdk oe-publish-sdk: add pyshtables.py to .gitignore 2017-01-31 14:43:00 +00:00
oe-run-native oe-run-native: standardize usage output 2016-12-13 22:55:20 +00:00
oe-selftest selftest: automatically add the meta-selftest layer 2017-01-23 12:05:22 +00:00
oe-setup-builddir oe-setup-builddir: create usage output 2016-12-13 22:55:20 +00:00
oe-setup-rpmrepo oe-setup-rpmrepo: standardize usage output 2016-12-13 22:55:20 +00:00
oe-test testexport.bbclass: Migrate testexport to use new framework 2017-01-23 12:05:21 +00:00
oe-trim-schemas oe-trim-schemas: create usage output 2016-12-13 22:55:20 +00:00
oepydevshell-internal.py oepydevshell-internal.py: standardize usage output 2016-12-13 22:55:21 +00:00
opkg-query-helper.py scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
pythondeps scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
README
recipetool scripts: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
relocate_sdk.py scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
rootfs_rpm-extract-postinst.awk
rpm2cpio.sh
runqemu runqemu: allow bypassing of network setup 2017-01-31 14:43:02 +00:00
runqemu-addptable2image
runqemu-export-rootfs runqemu: support multiple qemus running when nfs 2017-01-23 12:05:22 +00:00
runqemu-extract-sdk runqemu-extract-sdk: normalize paths to improve output 2014-07-03 17:41:16 +01:00
runqemu-gen-tapdevs runqemu-gen-tapdevs: remove /etc/runqemu-nosudo when remove taps 2016-09-20 15:11:08 +01:00
runqemu-ifdown
runqemu-ifup runqemu-ifup: Check if the tap interface is set up correctly 2015-10-27 07:24:28 +00:00
runqemu.README
send-error-report send-error-report: encode data to bytes 2016-06-03 13:13:30 +01:00
send-pull-request scripts/send-pull-request: Avoid multiple chain headers 2016-12-07 10:37:59 +00:00
sstate-cache-management.sh scripts/sstate-cache-management.sh: Change wording 2016-02-15 16:28:43 +00:00
sstate-diff-machines.sh sstate-diff-machines.sh: Return non-zero return code when there was some failure detected 2014-06-29 09:04:22 +01:00
sstate-sysroot-cruft.sh sstate-sysroot-cruft: Add /etc/ld.so.conf to whitelist 2016-10-28 16:15:19 +01:00
sysroot-relativelinks.py scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
task-time task-time: Add simple buildstats analysis script 2016-11-06 23:35:36 +00:00
test-dependencies.sh test-dependencies.sh: Strip also '\.bb: .*' before adding failed recipe to list of failed 2016-10-28 16:15:19 +01:00
test-reexec
test-remote-image scripts: python3: change python to python3 in shebang 2016-06-03 13:13:29 +01:00
verify-bashisms verify-bashisms: fix problems with tinfoil2 2017-01-31 15:28:41 +00:00
wic wic: change default output directory 2017-01-31 14:38:31 +00:00
yocto-bsp yocto-bsp: Refactor script to use argparse instead of optparse 2016-07-07 13:38:13 +01:00
yocto-kernel scripts: Fixed typo in parameter that was causing exception 2016-07-07 13:38:13 +01:00
yocto-layer scripts: Fixed typo in parameter that was causing exception 2016-07-07 13:38:13 +01:00

This directory contains Various useful scripts for working with OE builds