From 85c9397e6e50910d20f49ef0ccafbdab9f3786df Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 11 Jan 2026 18:59:37 +0100 Subject: feat: configure.pl script to build NeKernel MinGW. Signed-off-by: Amlal El Mahrouss --- .gitignore | 2 ++ .gitmodules | 3 +++ configure.pl | 17 +++++++++++++++++ toolchains/.keep | 0 toolchains/mingw-w64-nekernel | 1 + 5 files changed, 23 insertions(+) create mode 100755 configure.pl create mode 100644 toolchains/.keep create mode 160000 toolchains/mingw-w64-nekernel diff --git a/.gitignore b/.gitignore index 3e400ac..4ceb277 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ xcuserdata/ # EPM Image *.eimg +mingw-w64-headers/ + */xcuserdata/* *.xcworkspacedata diff --git a/.gitmodules b/.gitmodules index d71cee1..78e5e29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "src/boot"] path = src/boot url = git@github.com:nekernel-org/neboot.git +[submodule "toolchains/mingw-w64-nekernel"] + path = toolchains/mingw-w64-nekernel + url = git@github.com:nekernel-org/mingw-w64.git 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"); diff --git a/toolchains/.keep b/toolchains/.keep new file mode 100644 index 0000000..e69de29 diff --git a/toolchains/mingw-w64-nekernel b/toolchains/mingw-w64-nekernel new file mode 160000 index 0000000..8d02d61 --- /dev/null +++ b/toolchains/mingw-w64-nekernel @@ -0,0 +1 @@ +Subproject commit 8d02d610f707b5f6af74653c6ebb0cdfa4df9212 -- cgit v1.2.3