From 01d1a73608551e2f54d5f3a7b0f80ea4210b2133 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 13 Feb 2026 23:47:48 +0100 Subject: feat: Configuration additions and configuration improvements. (tooling). Signed-off-by: Amlal El Mahrouss --- config/config.h.in | 16 ++++++++++++++++ config/nestd.h.in | 8 ++++++++ configure-gcc-n64.pl | 2 +- configure-mingw-n64.pl | 2 +- libconf.pl | 18 ------------------ tools/libconf.pl | 18 ++++++++++++++++++ 6 files changed, 44 insertions(+), 20 deletions(-) create mode 100644 config/config.h.in create mode 100644 config/nestd.h.in delete mode 100644 libconf.pl create mode 100644 tools/libconf.pl diff --git a/config/config.h.in b/config/config.h.in new file mode 100644 index 0000000..1b22387 --- /dev/null +++ b/config/config.h.in @@ -0,0 +1,16 @@ +// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (see LICENSE file) +// Official repository: https://github.com/nekernel-org/src + +#pragma once + +#include @_TYPES_INCLUDE@ + +#define _ARCH @_ARCH_VER@ +#define _SUBSYSTEM_NET @_NET_VER@ +#define _SUBSYSTEM_DDK @_DDK_VER@ +#define _SUBSYSTEM_SYS @_SYS_VER@ +#define _NEKERNEL @_NEKERNEL_VER@ + + + diff --git a/config/nestd.h.in b/config/nestd.h.in new file mode 100644 index 0000000..49bae9f --- /dev/null +++ b/config/nestd.h.in @@ -0,0 +1,8 @@ +// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (see LICENSE file) +// Official repository: https://github.com/nekernel-org/src + +#pragma once + +#include @_NESTD_PRELUDE@ +#include @_NESTD_PATH@ diff --git a/configure-gcc-n64.pl b/configure-gcc-n64.pl index 9a9b815..1363c49 100755 --- a/configure-gcc-n64.pl +++ b/configure-gcc-n64.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -require './libconf.pl'; +require './tools/libconf.pl'; libconf->new(); diff --git a/configure-mingw-n64.pl b/configure-mingw-n64.pl index 6026ef0..18eb96e 100755 --- a/configure-mingw-n64.pl +++ b/configure-mingw-n64.pl @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -require './libconf.pl'; +require './tools/libconf.pl'; libconf->new(); diff --git a/libconf.pl b/libconf.pl deleted file mode 100644 index 1a1bc7e..0000000 --- a/libconf.pl +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/perl -w - -package libconf; - -use strict; -use Cwd; - -sub new() { - - if ($ENV{USER} ne "root") { - die "You must be root to run this script.\n"; - } - - system("sh", "git", "submodule", "update", "--init", "--recursive") or die "Git error: $!"; - -} - -"libconf"; \ No newline at end of file diff --git a/tools/libconf.pl b/tools/libconf.pl new file mode 100644 index 0000000..1a1bc7e --- /dev/null +++ b/tools/libconf.pl @@ -0,0 +1,18 @@ +#!/usr/bin/perl -w + +package libconf; + +use strict; +use Cwd; + +sub new() { + + if ($ENV{USER} ne "root") { + die "You must be root to run this script.\n"; + } + + system("sh", "git", "submodule", "update", "--init", "--recursive") or die "Git error: $!"; + +} + +"libconf"; \ No newline at end of file -- cgit v1.2.3