blob: 8c47c5347671a58494b137baaa0c68e640222021 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/bin/perl -w
use strict;
use Cwd;
if ($ENV{USER} ne "root") {
die "You must be root to run this script.\n";
}
system("sh", "git", "submodule", "update", "--init", "--recursive");
chdir("./toolchains/mingw-w64-nekernel/") or die "Cannot change directory: $!";
system("configure", "--host=x86_64-w64-mingw32", "--prefix=mingw64-w64-nekernel") or die "Configuration failed: $!";
print("Configuration and build complete.\nUse 'make install' to install the toolchain.\n");
|