[oe-commits] Paul Eggleton : classes/buildstats: misc cleanups

git at git.openembedded.org git at git.openembedded.org
Thu May 7 12:46:17 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 2392c9bae9fc7732ebafb8c2cd42e49ab281afc9
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2392c9bae9fc7732ebafb8c2cd42e49ab281afc9

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Wed May  6 17:19:27 2015 +0100

classes/buildstats: misc cleanups

* Rename BNFILE and DEVFILE so that they are clearly specific to this
  class, since they end up in the global scope
* Use "with open" when opening files consistently
* Use getVar('PF', True) instead of expand('${PF}')
* Drop some unnecessary assignments

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/buildstats.bbclass | 156 +++++++++++++++++++---------------------
 1 file changed, 73 insertions(+), 83 deletions(-)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=2392c9bae9fc7732ebafb8c2cd42e49ab281afc9


More information about the Openembedded-commits mailing list