This is very useful when iterating over kernel configurations, since it avoids blowing away the build tree and all the existing built objects. The Linux build system does the right thing when .config changes and only rebuilds the affected bits.
Signed-off-by: Ian Campbell <ian.campb...@citrix.com> --- ts-kernel-build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ts-kernel-build b/ts-kernel-build index 4014a6c..55c8acf 100755 --- a/ts-kernel-build +++ b/ts-kernel-build @@ -22,6 +22,18 @@ use Osstest::TestSupport; use Osstest::BuildSupport; tsreadconfig(); + +our $reuse = 0; +while (@ARGV and $ARGV[0] =~ m/^-/) { + $_= shift @ARGV; + last if m/^--$/; + if (m/^--reuse$/) { + $reuse = 1; + } else { + die "$_ ?"; + } +} + selectbuildhost(\@ARGV); builddirsprops(); @@ -35,6 +47,8 @@ my $archparms = { sub enable_xen_config (); sub checkout () { + return if $reuse; + prepbuilddirs(); build_clone($ho, 'linux', $builddir, 'linux'); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel