summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-22 19:19:26 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-22 19:19:26 +0100
commit0a04c4d931712bd1042ceded29c84f50a50c5d20 (patch)
tree284bb5ebb8a0d2aa4f000d76f300f205d79efac9
parenta47b94909072df0814d5a2d5f93802eccdb7aea1 (diff)
chore: separate gcc and mingw perl scripts.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rwxr-xr-xconfigure-gcc-n64.pl16
-rwxr-xr-xconfigure-mingw-n64.pl (renamed from configure.pl)0
2 files changed, 16 insertions, 0 deletions
diff --git a/configure-gcc-n64.pl b/configure-gcc-n64.pl
new file mode 100755
index 0000000..dd7101f
--- /dev/null
+++ b/configure-gcc-n64.pl
@@ -0,0 +1,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-gcc/") or die "Cannot change directory: $!";
+
+system("configure", "--host=x86_64-w64-mingw32", "--prefix=mingw64-nekernel-gcc") or die "Configuration failed: $!";
+
+print("Configuration and build complete.\nUse 'make install' to install the toolchain.\n");
diff --git a/configure.pl b/configure-mingw-n64.pl
index 8c47c53..8c47c53 100755
--- a/configure.pl
+++ b/configure-mingw-n64.pl