[buildgear-devel] [buildgear/buildgear] d8030e: Added support for "build-lock" option

GitHub noreply at github.com
Sun Aug 24 03:14:52 MDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/buildgear/buildgear
  Commit: d8030eeaf5686a5163b456073617af45f36dae47
      https://github.com/buildgear/buildgear/commit/d8030eeaf5686a5163b456073617af45f36dae47
  Author: Martin Lund <martin.lund at keep-it-simple.com>
  Date:   2014-08-24 (Sun, 24 Aug 2014)

  Changed paths:
    M man/buildgear-buildfile.man5
    M src/buildfile.cc
    M src/buildmanager.cc
    M src/include/buildgear/buildfile.h
    M src/include/buildgear/config.h

  Log Message:
  -----------
  Added support for "build-lock" option

This feature adds support for locking a build so that it will be the
only one building at any given time (even when parallel_builds > 1).
This is done by introducing a new "options" list and a special toggle
option named "build-lock".

To force a buildfile to be built in non-parallel, simply add to the
buildfile:

options=build-lock

This is reported to be useful for eg. kernel module builds which must
avoid to be built in parallel at the same time because they need to
operate in the same kernel build workspace in order to produce coherent
kernel and modules.

In the future, more options can be added to the options list.




More information about the buildgear-devel mailing list