From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <ian.jackson@eu.citrix.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH v2 5/6] osstest: set the make command to use for xen-build
Date: Thu, 12 Jul 2018 16:46:21 +0200 [thread overview]
Message-ID: <20180712144622.96603-6-roger.pau@citrix.com> (raw)
In-Reply-To: <20180712144622.96603-1-roger.pau@citrix.com>
The default make on FreeBSD is the BSD make, and Xen requires the GNU
make in order to build. Set the make command based on the OS for the
Xen build.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes since v1:
- Use gmake for all BSDs.
---
ts-xen-build | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/ts-xen-build b/ts-xen-build
index 57913d4f..48bf062f 100755
--- a/ts-xen-build
+++ b/ts-xen-build
@@ -28,6 +28,7 @@ tsreadconfig();
selectbuildhost(\@ARGV);
our $dokconfig = 1;
+our $make = $ho->{OS} =~ m/bsd/ ? "gmake" : "make";
while (@ARGV && $ARGV[0] =~ m/^-/) {
$_ = shift @ARGV;
@@ -156,24 +157,24 @@ END
buildcmd_stamped_logged(600, 'xen', 'kconfig', '',<<END,'') if $dokconfig;
if test -f xen/Kconfig; then
- $make_prefix make -C xen olddefconfig
+ $make_prefix $make -C xen olddefconfig
fi
END
if (!@make_args) {
buildcmd_stamped_logged(9000, 'xen', 'build', '',<<END,'');
- $make_prefix make $makeflags build
+ $make_prefix $make $makeflags build
END
}
buildcmd_stamped_logged(9000, 'xen', 'all', '',<<END,'');
- $make_prefix make $makeflags @make_args
+ $make_prefix $make $makeflags @make_args
END
if ($enable_xsm) {
my $xen_version = target_cmd_output($ho, <<END, 30);
cd $builddir/xen
- $make_prefix make xenversion
+ $make_prefix $make xenversion
END
store_runvar("flaskpolicy", "xenpolicy-" . $xen_version);
}
@@ -181,7 +182,7 @@ END
if ($enable_livepatch) {
substep_eval('/dist-test', sub {
buildcmd_stamped_logged(600, 'xen', 'xenlpt', '',<<END,'');
- $make_prefix make $makeflags dist-tests
+ $make_prefix $make $makeflags dist-tests
END
});
}
--
2.17.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-07-12 14:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-12 14:46 [PATCH v2 0/6] osstest: FreeBSD bugfixes and improvements Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 1/6] osstest: allow appending to existing runvars Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 2/6] osstest: remove duplicate set_freebsd_runvars Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 3/6] osstest: abstract code to create a FreeBSD build job Roger Pau Monne
2018-07-12 14:46 ` [PATCH v2 4/6] osstest: limit FreeBSD jobs to hardware booting in BIOS mode Roger Pau Monne
2018-07-17 11:12 ` Ian Jackson
2018-07-12 14:46 ` Roger Pau Monne [this message]
2018-07-12 14:46 ` [PATCH v2 6/6] osstest: add FreeBSD Xen build job Roger Pau Monne
2018-07-12 14:50 ` Ian Jackson
2018-07-12 15:02 ` Roger Pau Monné
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=20180712144622.96603-6-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=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).