src_distribute*.bbclass: cleanup, revamp parts, distribute all sources.
authorChris Larson <clarson@mvista.com>
Thu, 28 May 2009 22:27:31 +0000 (15:27 -0700)
committerChris Larson <clarson@mvista.com>
Wed, 19 Aug 2009 21:54:29 +0000 (14:54 -0700)
commitee09ed852dd3e6a831a9ae5c31f260a4a9057645
tree42539baf08100852144578ea298c8ba42a1c2bb8
parentf9b6fb8272850ebb1a001f6f055df8a3c74733fd
src_distribute*.bbclass: cleanup, revamp parts, distribute all sources.

- Kill the big shell function with the case statement used in _local in
  favor of a set of bitbake variables, with the appropriate one selected
  as SRC_DISTRIBUTECOMMAND.
- Add and use SRC_DISTRIBUTE_DLONLY to toggle distribution of all sources
  versus just those downloaded to DL_DIR.  This variable expects to be set
  to an integer, anything but 0 will enable dlonly operation.  This is
  disabled by default.
- Add a more sanely named distribute_sources_all, and make distsrcall
  depend on it, for compatibility.
- By default, distributes the sources into
  ${SRC_DISTRIBUTEDIR}/${LIC}/${PN}/.
- Move some _local specific bits, like use of SRC_DISTRIBUTEDIR, out of
  the main class.
- Set a "LIC" var along with the "SRC" when running SRC_DISTRIBUTECOMMAND,
  to facilitate the above.

Signed-off-by: Chris Larson <clarson@mvista.com>
classes/src_distribute.bbclass
classes/src_distribute_local.bbclass