diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-03-16 00:12:59 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2004-03-16 00:12:59 +0000 |
| commit | c5cb37207c34ea3e978cf7979d5e56b288d2bd52 (patch) | |
| tree | 64597403e9a30ef8a6209e606ec26e5124f549e3 | |
| parent | 39245ad2aec2f796e0917d1738f6796d805402b9 (diff) | |
Notes
| -rw-r--r-- | tools/tools/tinderbox/tbmaster.1 | 30 | ||||
| -rw-r--r-- | tools/tools/tinderbox/tbmaster.pl | 6 |
2 files changed, 32 insertions, 4 deletions
diff --git a/tools/tools/tinderbox/tbmaster.1 b/tools/tools/tinderbox/tbmaster.1 index 6c20fe0a2065..8bff37c66e7b 100644 --- a/tools/tools/tinderbox/tbmaster.1 +++ b/tools/tools/tinderbox/tbmaster.1 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 24, 2004 +.Dd March 15, 2004 .Dt TBMASTER 1 .Os .Sh NAME @@ -92,11 +92,11 @@ Blank lines are ignoed, as is anything following a hash sign The following configuration variables are defined: .Bl -tag -width 12n .It ARCH -.Pq Vt simple +.Pq Vt single The architecture currently being built for. Read-only. .It BRANCH -.Pq Vt simple +.Pq Vt single The branch currently being built. Read-only. .It BRANCHES @@ -104,6 +104,28 @@ Read-only. A list of source branches to build. The default value is .Dq CURRENT . +.It CFLAGS +.Pq Vt single +The desired value for the +.Va CFLAGS +.Xr make 1 +variable. +This is equivalent to specifying +.Va CFLAGS +in +.Va ENV . +No default value. +.It COPTFLAGS +.Pq Vt single +The desired value for the +.Va COPTFLAGS +.Xr make 1 +variable. +This is equivalent to specifying +.Va COPTFLAGS +in +.Va ENV . +No default value. .It COMMENT .Pq Vt single A terse comment describing the setup. @@ -152,7 +174,7 @@ The location of the log directory. The default value is .Pa %%SANDBOX%%/logs . .It MACHINE -.Pq Vt simple +.Pq Vt single The machine currently being built for. Read-only. .It OPTIONS diff --git a/tools/tools/tinderbox/tbmaster.pl b/tools/tools/tinderbox/tbmaster.pl index 32a1cb6004d9..4636a75fa7ee 100644 --- a/tools/tools/tinderbox/tbmaster.pl +++ b/tools/tools/tinderbox/tbmaster.pl @@ -45,6 +45,8 @@ my $etcdir; # Configuration directory my %INITIAL_CONFIG = ( 'BRANCHES' => [ 'CURRENT' ], + 'CFLAGS' => '', + 'COPTFLAGS' => '', 'COMMENT' => '', 'CVSUP' => '', 'DATE' => '', @@ -248,6 +250,10 @@ sub tinderbox($$$) { if ($CONFIG{'PATCH'}); push(@args, @{$CONFIG{'TARGETS'}}); push(@args, @{$CONFIG{'ENV'}}); + push(@args, "CFLAGS=" . expand('CFLAGS')) + if ($CONFIG{'CFLAGS'}); + push(@args, "COPTFLAGS=" . expand('COPTFLAGS')) + if ($CONFIG{'COPTFLAGS'}); my $pid = fork(); if (!defined($pid)) { warn("fork(): $!\n"); |
