summaryrefslogtreecommitdiffhomepage
path: root/configure.pl
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-11 18:59:37 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-11 18:59:37 +0100
commit85c9397e6e50910d20f49ef0ccafbdab9f3786df (patch)
treee6fbc33ef50e1328f33445298cc96486dd70d1be /configure.pl
parent69dbae4657f2165f7723e589751eb7f22f7b92a5 (diff)
feat: configure.pl script to build NeKernel MinGW.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.pl b/configure.pl
new file mode 100755
index 0000000..3cebdd6
--- /dev/null
+++ b/configure.pl
@@ -0,0 +1,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("sh", "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");