blob: c8e70d3846770d5b3fdd0c9f6ec50ee0ed2df97e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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: $!";
system("make", "install") or die "Build failed: $!";
print("Configuration and build complete.\nUse 'make install' to install the toolchain.\n");
|