generic-poky/scripts
Robert Yang 1e6d0da8d5 bitbake-whatchanged: print what is about to happen
* Contents:
  - Summary
  - Usage
  - Implementation summary
  - Output
  - TODO

* Summary:
  This is used for printing what is about to happen between the current and last
  builds, for example:

  $ bitbake core-image-sato
  # Edit some recipes
  $ bitbake-whatchanged core-image-sato

  The changes will be printed.

* Usage:
  bitbake-whatchanged [[opts] recipe]

* Implementation summary:
  - Use the "STAMPS_DIR=<path> bitbake -S recipe" to generate the new
    stamps, compare these stamps to the one in the old stamps dir (tmp/stamps),
    so we will get what are changed.

  - When the "-v" (verbose) is not specified:
    > Figure out the newly added tasks
    > Figure out the PV (including PE) and PR changed tasks
    > The left tasks are the ones that the "Dependencies" changed tasks

  - When "-v" is specified:
    > Figure out the newly added tasks
    > Use bb.siggen.compare_sigfiles to figure out the details

* Output, for example (core-image-sato with different git tags)
  and with recipes upgraded):
  - without "-v":
    Figuring out the STAMPS_DIR ...
    Generating the new stamps ... (need several minutes)
    === Newly added tasks: (5 tasks)
      core-image-sato: do_configure do_populate_lic do_install do_rootfs do_compile
      # Note: This is because the "bitbake -S" always generate the sigdata for
      # do_compile, do_rootfs and other task, we may need fix this from "bitbake -S"

    === PV changed: (130 tasks)
      alsa-utils: 1.0.25 -> 1.0.26
      cross-localedef-native: 2.16 -> 2.17
      eglibc-initial: 2.16 -> 2.17
      [snip]

    === Dependencies changed: (3593 tasks)
      busybox: do_package do_package_write do_build do_packagedata do_populate_sysroot do_install do_compile do_package_write_rpm do_configure do_populate_lic
      atk-native: do_compile do_package_write_rpm do_package do_configure do_populate_sysroot do_install do_populate_lic do_patch do_packagedata do_build do_package_write do_unpack
      [snip]

    === Summary: (3728 changed, 1134 unchanged)
    Newly added: 5
    PV changed: 130
    PR changed: 0
    Dependencies changed: 3593

    Removing the newly generated stamps dir ...

  - with "-v":
    === Newly added tasks: (5 tasks)
      core-image-sato: do_configure do_populate_lic do_install do_rootfs do_compile

    === The verbose changes of glib-2.0-native.do_do_install:
    Hash for dependent task virtual:native:glib-2.0_2.34.3.bb.do_compile changed from bab8b8dd95be1b83dcec93f755b1812b to 70f746df7809acaa52de204b0685abb4

    [snip]

    === Summary: (3728 changed, 1134 unchanged)
    Newly added: 5
    Dependencies changed: 3723

    Removing the newly generated stamps dir ...

* TODO
  - It seems that the "bitbake -S core-image-sato" has bugs, it would always
    report errors, but doesn't fatal errors

  - The gcc-cross' stamps are in tmp/stamps/work-shared, but the
    "bitbake -S" doesn't put the stamps in work-shared.

  - The "bitbake -S" always generates the sigdata for image recipe's do_compile,
    do_install and other tasks, we may need fix this from "bitbake -S".

  - Print the ones which can be installed from the sstate.

[YOCTO #1659]

(From OE-Core rev: 8783fcc23ccbd829ecb0dc59cf71ee44376094cc)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-07 11:14:37 +00:00
..
contrib Python: Add missing dependency "textutils" to "io" package 2013-02-14 10:46:25 +00:00
jhbuild Convert to use direct access to the data store (instead of bb.data.*Var*()) 2011-11-10 11:51:19 +00:00
lib/bsp yocto-bsp: prepend includes in machine.scc files with machine 2013-02-07 22:59:47 +00:00
native-intercept native.bbclass: Add a simple chown intercept command 2011-06-23 21:08:01 +01:00
postinst-intercepts Add separate directory for postinstall intercepts 2013-02-13 16:52:28 +00:00
pybootchartgui scripts/pybootchart: Allow minimum task length to be configured from the commandline 2012-11-20 15:31:48 +00:00
qemuimage-tests qemuimage-tests/dmesg: Add exception for error message on qemuarm with 3.8 kernel 2013-03-02 22:45:27 +00:00
README Further cleanup of various poky references 2011-04-21 12:56:16 +01:00
bitbake scripts/bitbake: Remove all instances of paths to a layer's scripts directory. 2013-02-15 12:17:35 +00:00
bitbake-prserv-tool bitbake-prserv-tool: show error when export file does not exist 2013-02-06 16:52:19 +00:00
bitbake-whatchanged bitbake-whatchanged: print what is about to happen 2013-03-07 11:14:37 +00:00
buildhistory-diff buildhistory-diff: prepend to sys.path 2013-01-09 15:05:25 +00:00
cleanup-workdir scripts/cleanup-workdir: Adpat to new workdir layout 2012-11-24 15:12:27 +00:00
combo-layer scipts/combo-layer: Fix check_rev_branch() for cases where the revision is on more than one branch 2012-10-18 12:13:42 +01:00
combo-layer-hook-default.sh scripts/combo-layer: fix still overzealous regex in default hook script 2011-09-21 13:42:49 +01:00
combo-layer.conf.example scripts/combo-layer: add branch option to example config 2012-02-21 17:00:46 +00:00
cp-noerror scripts/cp-noerror: Try and use hardlinks if possible 2012-10-18 12:13:46 +01:00
create-lsb-image create-lsb-iamge:Fix bugs 2011-05-04 00:54:39 +01:00
create-pull-request create-pull-request: Error message on missing -u 2013-02-08 14:50:36 +00:00
create-recipe scripts/create-recipe: Bugfixes for create-recipe easy_install handling. 2013-02-08 14:50:36 +00:00
crosstap crosstap: handle hyphenated x86_64 target arch 2013-02-05 15:22:45 +00:00
gen-site-config siteconfig: generate configuration data caches for autoconf 2010-09-03 10:50:02 +01:00
help2man Remove help2man dependency 2011-10-04 13:46:19 +01:00
hob scripts/hob: disable sanity checks when launching 2012-04-23 23:04:43 +01:00
multilib_header_wrapper.h multilib_header.bbclass: Add oe_multilib_header wrapper 2011-07-27 15:45:47 +01:00
oe-buildenv-internal bitbake.conf: add STAMPS_DIR for constructing STAMP 2013-03-07 11:14:37 +00:00
oe-find-native-sysroot oe-find-native-sysroot: show bitbake errors to user 2012-09-28 11:07:39 +01:00
oe-git-proxy oe-git-proxy: Use socat instead of BSD nc 2013-02-11 22:54:04 +00:00
oe-pkgdata-util scripts/oe-pkgdata-util: exclude unpackaged in glob output 2012-07-31 12:21:30 +01:00
oe-setup-builddir Various typoes fixed, all comments or output strings. 2012-03-26 12:13:05 +01:00
oe-setup-rpmrepo scripts/oe-setup-rpmrepo: use setup_tmpdir from runqemu 2011-09-28 21:41:44 +01:00
oe-trim-schemas scripts/oe-setup-builddir: Fix up OE-Core/Poky mismatch for now (and fix permissions) 2011-04-21 19:19:33 +01:00
opkg-query-helper.py Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
qemuimage-testlib scripts/qemuimage-testlib: Use wide option to ps calls 2013-02-13 16:52:30 +00:00
relocate_sdk.py relocate_sdk.py: allow relocate_sdk.py to work with python 2.4.x 2013-02-12 13:11:22 +00:00
rootfs_rpm-extract-postinst.awk meta/classes/rootfs_rpm.bbclass: re implement base on rpm5 2010-07-24 00:46:57 +01:00
rpm2cpio.sh rpm2cpio.sh: make compression tests case-insensitive 2012-01-03 12:14:39 +00:00
runqemu runqemu: add option to make the VNC server publically available 2013-02-11 14:46:09 +00:00
runqemu-addptable2image scripts/oe-setup-builddir: Fix up OE-Core/Poky mismatch for now (and fix permissions) 2011-04-21 19:19:33 +01:00
runqemu-export-rootfs runqemu: allow multiple unfs instances to run simultaneously 2012-10-04 14:10:56 +01:00
runqemu-extract-sdk runqemu-export-rootfs and friends: don't put pseudo db in target fs 2012-08-29 16:02:10 -07:00
runqemu-gen-tapdevs runqemu: work with tap device names that end with a colon 2012-09-24 11:30:36 +01:00
runqemu-ifdown Further cleanup of various poky references 2011-04-21 12:56:16 +01:00
runqemu-ifup runqemu-ifup: enable arp proxying 2012-06-08 11:43:20 +01:00
runqemu-internal runqemu scripts: add support for booting an ISO image 2013-01-16 11:57:33 +00:00
runqemu.README scripts/runqemu.README: Clean this up to accurately reflect what the runqemu command now does 2011-04-21 12:56:13 +01:00
send-pull-request send-pull-request: add extra CC argument 2013-02-06 09:37:22 +00:00
sstate-cache-management.sh sstate-cache-management.sh: don't hardcode available sstate_suffixes 2013-02-28 23:15:47 +00:00
sstate-diff-machines.sh scripts/sstate-diff-machines.sh: add simple script to compare sstate checksums between MACHINEs 2013-01-07 12:06:27 +00:00
sstate-sysroot-cruft.sh scripts/sstate-sysroot-cruft.sh: add simple script to find files in sysroots not tracked by sstate 2013-01-07 12:06:27 +00:00
swabber-strace-attach scripts: replace os.system with subprocess.call 2012-05-30 12:04:45 +01:00
test-reexec test-reexec: Add script to address issues when task re-execution 2012-05-18 15:25:11 +01:00
wipe-sysroot scripts/wipe-sysroot: add script to safely wipe the sysroots 2013-02-04 13:18:28 +00:00
yocto-bsp yocto-bsp: add basic git connectivity check 2013-01-16 12:08:01 +00:00
yocto-kernel yocto-kernel: new script 2012-03-22 19:21:15 +00:00
yocto-layer yocto-layer: add optional layer priority param 2013-01-20 13:05:39 +00:00

README

This directory contains Various useful scripts for working with OE builds