From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: [OSSTEST PATCH 1/3] ts-xen-build: Support passing arguments to configure
Date: Wed, 9 Nov 2016 14:30:45 +0000 [thread overview]
Message-ID: <1478701847-30651-2-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1478701847-30651-1-git-send-email-ian.jackson@eu.citrix.com>
No functional change with existing callers.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
ts-xen-build | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/ts-xen-build b/ts-xen-build
index 3e53d74..7dfcda7 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -37,7 +37,15 @@ while (@ARGV && $ARGV[0] =~ m/^-/) {
die "$_ ?";
}
}
+
+my ($dashdashdash) = grep { $ARGV[$_] eq '---' } 0..$#ARGV;
+my (@configure_args, @make_args);
+$dashdashdash //= -1;
+@configure_args = @ARGV[0..$dashdashdash-1];
+@make_args = @ARGV[$dashdashdash+1..$#ARGV];
+
# remaining arguments are passed as targets to "make"
+# if there is a ---, those before that are arguments to "configure"
builddirsprops();
@@ -126,7 +134,7 @@ sub build () {
ovmf=$ovmf_opt
fi
END
- $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf $configure_suffix
+ $configure_prefix ./configure --sysconfdir=/etc \$xend \$ovmf $configure_suffix @configure_args
END
fi
END
@@ -139,7 +147,7 @@ END
END
buildcmd_stamped_logged(9000, 'xen', 'build', '',<<END,'');
- $make_prefix make $makeflags @ARGV
+ $make_prefix make $makeflags @make_args
END
if ($enable_xsm) {
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-11-09 14:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 14:30 [OSSTEST PATCH 0/3] Fix rump tests for lzma et al Ian Jackson
2016-11-09 14:30 ` Ian Jackson [this message]
2016-11-09 14:30 ` [OSSTEST PATCH 2/3] rump build tests: Introduce ts-xen-build-rump Ian Jackson
2016-11-09 14:30 ` [OSSTEST PATCH 3/3] rump build tests: Disable a lot of unwanted Xen things at configure time Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1478701847-30651-2-git-send-email-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).