[OE-core] [PATCH 0/2 V3] scripts/bitbake-whatchanged: print what is about to happen

Richard Purdie richard.purdie at linuxfoundation.org
Sun Aug 26 21:15:10 UTC 2012


On Thu, 2012-08-16 at 14:46 +0800, Robert Yang wrote:
> Changes of V3:
> * Move it from bitbake/bin/ to oe-core/scripts
> 
> * Change BB_STAMPS_DIR to STAMPS_DIR
> 
> * Use "which bitbake-diffsigs" to locate where is the bitbake/lib/bb since it
>   needs bb.siggen.compare_sigfiles (must) and bb.process.run (optional).
> 
> Changes of V2:
> * Fix a typo fn -> 'fn'
> 
> * Use "bitbake -e" rather than "bitbake -e recipe" to get the BB_STAMPS_DIR
> 
> * Use "BB_STAMPS_DIR=<path> bitbake -S recipe" to regenerate the stamps
> 
> * Change the summary format a little, now it looks like:
>   - (without -v):
>     === Summary: (3653 changed, 1927 unchanged)
>     Newly added: 807
>     PV changed: 48
>     PR changed: 276
>     Depends changed: 2522
> 
>   - (with -v):
>     === Summary: (3653 changed, 1927 unchanged)
>     Newly added: 807
>     Depends changed: 2846
> 
> Changes of V1:
>   Initial version

I tried this:

$ MACHINE=qemux86 bitbake-whatchanged nativesdk-perl
Figuring out the STAMPS_DIR ...
Generating the new stamps ... (need several minutes)
ERROR occurred!
Traceback (most recent call last):
  File "/media/build1/poky/scripts/bitbake-whatchanged", line 342, in <module>
    sys.exit(main())
  File "/media/build1/poky/scripts/bitbake-whatchanged", line 303, in main
    old_recon = recon_dict(old_dict)
  File "/media/build1/poky/scripts/bitbake-whatchanged", line 96, in recon_dict
    if os.stat(full_path_pre).st_mtime > os.stat(full_path_cur).st_mtime:
OSError: [Errno 2] No such file or directory: '/media/build1/poky/build/tmp/stamps/armv7a-vfp-neon-poky-linux-gnueabi/bash-4.2-r4.do_compile.sigdata.80ff8a0bb7180f101517f35e8cf4ba8b'


and it looks like the environment isn't preserved since this is
defaulting to beagleboard which is what is in my local.conf, not the
MACHINE=qemux86 I expected.

Cheers,

Richard






More information about the Openembedded-core mailing list