From 552f45c2584ac6d964ab994e83e74c8678405336 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sun, 12 Apr 2026 08:45:35 -0400 Subject: [PATCH 1/2] config initial test Signed-off-by: Michael Shaw --- .config | 5 ++++ .source/os2 | 1 + .source/scripts | 1 + Makefile | 51 ++++++++++++++++++++++--------------- amd64/Makefile | 5 ++++ amd64/arch/Makefile | 4 +++ amd64/drivers/Makefile | 4 +++ amd64/init/Makefile | 2 ++ amd64/kernel/Makefile | 3 +++ drivers/Makefile | 2 ++ drivers/tty/Makefile | 4 +++ init/Makefile | 3 +++ kernel/Makefile | 2 ++ lib/Makefile | 8 ++++++ mem/Makefile | 5 ++++ scripts/Makefile.build | 30 ++++++++++++++++++++++ scripts/config.sh | 58 ++++++++++++++++++++++++++++++++++++++++++ 17 files changed, 168 insertions(+), 20 deletions(-) create mode 100644 .config create mode 120000 .source/os2 create mode 120000 .source/scripts create mode 100644 amd64/Makefile create mode 100644 amd64/arch/Makefile create mode 100644 amd64/drivers/Makefile create mode 100644 amd64/init/Makefile create mode 100644 amd64/kernel/Makefile create mode 100644 drivers/Makefile create mode 100644 drivers/tty/Makefile create mode 100644 init/Makefile create mode 100644 kernel/Makefile create mode 100644 lib/Makefile create mode 100644 mem/Makefile create mode 100644 scripts/Makefile.build create mode 100755 scripts/config.sh diff --git a/.config b/.config new file mode 100644 index 0000000..80d389a --- /dev/null +++ b/.config @@ -0,0 +1,5 @@ +# Generated Configuration +CONFIG_DEBUG_SYMBOLS=y +# CONFIG_DRIVER_USB is not set +# CONFIG_FS_EXT4 is not set +# CONFIG_NET_WIFI is not set diff --git a/.source/os2 b/.source/os2 new file mode 120000 index 0000000..641475f --- /dev/null +++ b/.source/os2 @@ -0,0 +1 @@ +/home/michael/src/os2//home/michael/src/os2 \ No newline at end of file diff --git a/.source/scripts b/.source/scripts new file mode 120000 index 0000000..059cc81 --- /dev/null +++ b/.source/scripts @@ -0,0 +1 @@ +/home/michael/src/os2/external/kbuild-standalone/kbuild/scripts \ No newline at end of file diff --git a/Makefile b/Makefile index 3cb70bd..5aad08a 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ +ifneq ($(V),1) + Q := @ +else + Q := +endif ARCH := x86_64 LIMINE_VERSION=v11.2.0 KERNEL := kernel.elf - IMG := boot.iso -QEMUFLAGS := -m 16G HOST_CC := gcc HOST_CFLAGS := -O2 -pipe @@ -52,47 +55,51 @@ ifeq ($(ARCH),x86_64) KDIRS += amd64/ endif +obj-y := $(KDIRS) + CFILES := $(shell find $(KDIRS) -type f -name '*.c') ASFILES := $(shell find $(KDIRS) -type f -name '*.S') OBJ := $(CFILES:.c=.o) $(ASFILES:.S=.o) HEADER_DEPS := $(CFILES:.c=.d) $(ASFILES:.S=.d) +QEMUFLAGS := -m 16G + print-%: - @echo $($(*)) + $(Q)echo $($(*)) .PHONY: default default: - @compiledb -n make $(IMG) - @make $(IMG) -j$(shell nproc) + $(Q)compiledb -n make $(IMG) + $(Q)make $(IMG) -j$(shell nproc) .PHONY: all all: $(IMG) - @compiledb -n make + $(Q)compiledb -n make $(KERNEL): $(OBJ) linker.ld - @echo " LD $@" - @$(LD) $(OBJ) $(LDFLAGS) -o $@ + $(Q)echo " LD $@" + $(Q)$(LD) $(OBJ) $(LDFLAGS) -o $@ -include $(HEADER_DEPS) %.o: %.c - @echo " CC $@" - @$(CC) $(CFLAGS) -c $< -o $@ + $(Q)echo " CC $@" + $(Q)$(CC) $(CFLAGS) -c $< -o $@ %.o: %.S - @echo " CC $@" - @$(CC) $(CFLAGS) -c $< -o $@ + $(Q)echo " CC $@" + $(Q)$(CC) $(CFLAGS) -c $< -o $@ .PHONY: clean clean: - @echo " CLEAN kernel" - @rm -rf $(KERNEL) $(OBJ) $(HEADER_DEPS) bin - @echo " CLEAN $(IMG)" - @rm -rf $(IMG) - @echo " CLEAN iso_root" - @rm -rf iso_root - @echo " CLEAN os_root" - @rm -rf os_root + $(Q)echo " CLEAN kernel" + $(Q)rm -rf $(KERNEL) $(OBJ) $(HEADER_DEPS) bin + $(Q)echo " CLEAN $(IMG)" + $(Q)rm -rf $(IMG) + $(Q)echo " CLEAN iso_root" + $(Q)rm -rf iso_root + $(Q)echo " CLEAN os_root" + $(Q)rm -rf os_root $(IMG): limine/limine $(KERNEL) limine.conf rm -rf iso_root @@ -154,3 +161,7 @@ edk2-ovmf: distclean: make clean rm -rf limine + +.PHONY += config +config: + $(Q)scripts/config.sh diff --git a/amd64/Makefile b/amd64/Makefile new file mode 100644 index 0000000..ddf25d4 --- /dev/null +++ b/amd64/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += arch/ +obj-y += drivers/ +obj-y += init/ +obj-y += kernel/ diff --git a/amd64/arch/Makefile b/amd64/arch/Makefile new file mode 100644 index 0000000..a89f54e --- /dev/null +++ b/amd64/arch/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += msr.o +obj-y += page.o +obj-y += reg.o diff --git a/amd64/drivers/Makefile b/amd64/drivers/Makefile new file mode 100644 index 0000000..d209f3e --- /dev/null +++ b/amd64/drivers/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += apic.o +obj-y += pio.o +obj-y += serial.o diff --git a/amd64/init/Makefile b/amd64/init/Makefile new file mode 100644 index 0000000..2e959f4 --- /dev/null +++ b/amd64/init/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += amd64_init.o diff --git a/amd64/kernel/Makefile b/amd64/kernel/Makefile new file mode 100644 index 0000000..e4e4e87 --- /dev/null +++ b/amd64/kernel/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += atomic.o +obj-y += spinlock.o diff --git a/drivers/Makefile b/drivers/Makefile new file mode 100644 index 0000000..8c3667e --- /dev/null +++ b/drivers/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += tty/ diff --git a/drivers/tty/Makefile b/drivers/tty/Makefile new file mode 100644 index 0000000..7b44b69 --- /dev/null +++ b/drivers/tty/Makefile @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += tty.o +obj-y += vt100.o + diff --git a/init/Makefile b/init/Makefile new file mode 100644 index 0000000..b68b8af --- /dev/null +++ b/init/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += main.o +obj-y += requests.o diff --git a/kernel/Makefile b/kernel/Makefile new file mode 100644 index 0000000..b8039ae --- /dev/null +++ b/kernel/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += device.o diff --git a/lib/Makefile b/lib/Makefile new file mode 100644 index 0000000..1ff98af --- /dev/null +++ b/lib/Makefile @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += errno.o +obj-y += math.o +obj-y += printf.o +obj-y += rbtree.o +obj-y += sort.o +obj-y += string.o + diff --git a/mem/Makefile b/mem/Makefile new file mode 100644 index 0000000..539c956 --- /dev/null +++ b/mem/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-y += buddy.o +obj-y += mem.o +obj-y += page.o +obj-y += slab.o diff --git a/scripts/Makefile.build b/scripts/Makefile.build new file mode 100644 index 0000000..54d8999 --- /dev/null +++ b/scripts/Makefile.build @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0-only +# kernel makefile +-include .config + +include $(obj)Makefile + +# 1. Filter subdirectories (items ending in /) from files +subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) +real-objs-y := $(filter-out %/, $(obj-y)) + +# 2. Target to build everything in this directory +__build: $(subdir-y) $(real-objs-y) + @echo " Built-in $(obj)" + +# 3. Rule to descend into subdirectories +$(subdir-y): + @$(MAKE) -f scripts/Makefile.build obj=$(obj)$@/ + +# 4. Standard rule to compile .c files to .o +%.o: %.c + @echo " CC $(obj)$@" + @$(CC) $(CFLAGS) -c $< -o $(obj)$@ + +%.o: %.S + @echo " CC $(obj)$@" + @$(CC) $(CFLAGS) -c $< -o $(obj)$@ + + +.PHONY: __build $(subdir-y) + diff --git a/scripts/config.sh b/scripts/config.sh new file mode 100755 index 0000000..e8db8e5 --- /dev/null +++ b/scripts/config.sh @@ -0,0 +1,58 @@ +#!/bin/bash +CONFIG_FILE=".config" + +# --- The Engine --- +run_menuconfig() { + local TITLE="$1" + shift + local OPTIONS=("$@") # Array of "KEY" "DESCRIPTION" + local DIALOG_ARGS=() + + # 1. Build the dialog arguments dynamically + for ((i=0; i<${#OPTIONS[@]}; i+=2)); do + KEY="${OPTIONS[i]}" + DESC="${OPTIONS[i+1]}" + + # Check current state in .config + STATE="OFF" + if grep -q "^CONFIG_${KEY}=y" "$CONFIG_FILE" 2>/dev/null; then + STATE="ON" + fi + + DIALOG_ARGS+=("$KEY" "$DESC" "$STATE") + done + + # 2. Show the menu + CHOICES=$(dialog --stdout --backtitle "Project Setup" \ + --title "$TITLE" \ + --checklist "Use SPACE to toggle, ENTER to save:" 15 70 10 \ + "${DIALOG_ARGS[@]}") + + # 3. Save if user didn't cancel + if [ $? -eq 0 ]; then + echo "# Generated Configuration" > "$CONFIG_FILE" + for OPTION in $CHOICES; do + CLEAN=$(echo "$OPTION" | tr -d '"') + echo "CONFIG_${CLEAN}=y" >> "$CONFIG_FILE" + done + # Add "is not set" for everything else to be professional + for ((i=0; i<${#OPTIONS[@]}; i+=2)); do + KEY="${OPTIONS[i]}" + if ! grep -q "CONFIG_${KEY}=y" "$CONFIG_FILE"; then + echo "# CONFIG_${KEY} is not set" >> "$CONFIG_FILE" + fi + done + fi +} + +# --- How you use it --- +# Format: "VARIABLE_NAME" "Human Readable Description" +MY_FEATURES=( + "DRIVER_USB" "Include USB Driver Support" + "FS_EXT4" "Enable EXT4 Filesystem" + "NET_WIFI" "Wireless Networking Support" + "DEBUG_SYMBOLS" "Compile with Debug Symbols" +) + +run_menuconfig "System Features" "${MY_FEATURES[@]}" + From 584a79f35586f82ed0c1d30d4a7cfddf8b01e4fb Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sun, 12 Apr 2026 10:37:43 -0400 Subject: [PATCH 2/2] kv2: add new build modular system Signed-off-by: Michael Shaw --- .config | 5 +- Makefile | 143 +++++++++++----------------------------- scripts/Makefile.build | 58 ++++++++++------ scripts/Makefile.limine | 62 +++++++++++++++++ scripts/config.sh | 5 +- 5 files changed, 141 insertions(+), 132 deletions(-) create mode 100644 scripts/Makefile.limine diff --git a/.config b/.config index 80d389a..d5925bc 100644 --- a/.config +++ b/.config @@ -1,5 +1,2 @@ # Generated Configuration -CONFIG_DEBUG_SYMBOLS=y -# CONFIG_DRIVER_USB is not set -# CONFIG_FS_EXT4 is not set -# CONFIG_NET_WIFI is not set +CONFIG_TTY=y diff --git a/Makefile b/Makefile index 5aad08a..d48eb4e 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only ifneq ($(V),1) Q := @ else @@ -8,7 +9,6 @@ LIMINE_VERSION=v11.2.0 KERNEL := kernel.elf IMG := boot.iso - HOST_CC := gcc HOST_CFLAGS := -O2 -pipe HOST_LDFLAGS := @@ -45,123 +45,60 @@ LDFLAGS := \ -static \ -m elf_$(ARCH) \ -z max-page-size=0x1000 \ - -T linker.ld \ -no-pie \ -KDIRS := mem/ lib/ drivers/ kernel/ fs/ init/ +KDIRS := mem/ lib/ drivers/ kernel/ init/ ifeq ($(ARCH),x86_64) CFLAGS += -Iamd64/include KDIRS += amd64/ endif +KOBJ := $(foreach d,$(KDIRS),$(d)/built-in.o) + obj-y := $(KDIRS) -CFILES := $(shell find $(KDIRS) -type f -name '*.c') -ASFILES := $(shell find $(KDIRS) -type f -name '*.S') -OBJ := $(CFILES:.c=.o) $(ASFILES:.S=.o) -HEADER_DEPS := $(CFILES:.c=.d) $(ASFILES:.S=.d) - QEMUFLAGS := -m 16G +export Q +export V +export obj-y +export CC +export LD +export CFLAGS +export LDFLAGS + +PHONY: default +default: + $(Q)compiledb -n make $(KERNEL) + $(Q)make $(KERNEL) + +.PHONY: all +all: $(KERNEL) + $(Q)compiledb -n make + +__build_all: + $(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build _all obj=. + +$(KERNEL): __build_all linker.ld + $(Q)echo " LD $@" + $(Q)$(LD) $(KOBJ) $(LDFLAGS) -T linker.ld -o $@ + +.PHONY: clean +clean: + $(Q)$(MAKE) -f scripts/Makefile.build _clean obj=. + $(Q)echo " CLEAN ." + $(Q)rm -rf $(IMG) + $(Q)rm -rf iso_root + $(Q)rm -rf os_root + $(q)rm -rf edk2-ovmf + $()rm -rf os_root.img + print-%: $(Q)echo $($(*)) -.PHONY: default -default: - $(Q)compiledb -n make $(IMG) - $(Q)make $(IMG) -j$(shell nproc) - -.PHONY: all -all: $(IMG) - $(Q)compiledb -n make - -$(KERNEL): $(OBJ) linker.ld - $(Q)echo " LD $@" - $(Q)$(LD) $(OBJ) $(LDFLAGS) -o $@ - --include $(HEADER_DEPS) - -%.o: %.c - $(Q)echo " CC $@" - $(Q)$(CC) $(CFLAGS) -c $< -o $@ - -%.o: %.S - $(Q)echo " CC $@" - $(Q)$(CC) $(CFLAGS) -c $< -o $@ - -.PHONY: clean -clean: - $(Q)echo " CLEAN kernel" - $(Q)rm -rf $(KERNEL) $(OBJ) $(HEADER_DEPS) bin - $(Q)echo " CLEAN $(IMG)" - $(Q)rm -rf $(IMG) - $(Q)echo " CLEAN iso_root" - $(Q)rm -rf iso_root - $(Q)echo " CLEAN os_root" - $(Q)rm -rf os_root - -$(IMG): limine/limine $(KERNEL) limine.conf - rm -rf iso_root - mkdir -p iso_root/boot - cp -v $(KERNEL) iso_root/ - mkdir -p iso_root/boot/limine - cp -v limine.conf iso_root/boot/limine/ - mkdir -p iso_root/EFI/BOOT - - cp -v limine/limine-bios.sys limine/limine-bios-cd.bin limine/limine-uefi-cd.bin iso_root/boot/limine/ - cp -v limine/BOOTX64.EFI iso_root/EFI/BOOT/ - cp -v limine/BOOTIA32.EFI iso_root/EFI/BOOT/ - - mkdir -p os_root/ - mke2fs -d os_root -t ext2 os_root.img 512M - - xorriso -as mkisofs -R -r -J \ - --efi-boot boot/limine/limine-uefi-cd.bin \ - -efi-boot-part --efi-boot-image --protective-msdos-label \ - --partition_offset 16 \ - -append_partition 2 0x83 os_root.img \ - iso_root -o $(IMG) - - rm -rf os_root.img - -limine/limine: - rm -rf limine - git clone https://codeberg.org/Limine/Limine.git limine --branch=$(LIMINE_VERSION)-binary --depth=1 - $(MAKE) -C limine \ - CC="$(HOST_CC)" \ - CFLAGS="$(HOST_CFLAGS)" \ - CPPFLAGS="$(HOST_CPPFLAGS)" \ - LDFLAGS="$(HOST_LDFLAGS)" \ - LIBS="$(HOST_LIBS)" - -.PHONY += run -run: edk2-ovmf $(IMG) - qemu-system-$(ARCH) \ - -M q35 \ - -drive if=pflash,unit=0,format=raw,file=edk2-ovmf/ovmf-code-$(ARCH).fd,readonly=on \ - -nographic \ - -cdrom $(IMG) \ - $(QEMUFLAGS) - -.PHONY += debug -debug: edk2-ovmf $(IMG) - qemu-system-$(ARCH) \ - -S -s \ - -M q35 \ - -drive if=pflash,unit=0,format=raw,file=edk2-ovmf/ovmf-code-$(ARCH).fd,readonly=on \ - -nographic \ - -cdrom $(IMG) \ - $(QEMUFLAGS) - -edk2-ovmf: - curl -L https://github.com/osdev0/edk2-ovmf-nightly/releases/latest/download/edk2-ovmf.tar.gz | gunzip | tar -xf - - -.PHONY += distclean -distclean: - make clean - rm -rf limine - .PHONY += config config: $(Q)scripts/config.sh + +-include scripts/Makefile.limine diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 54d8999..703dedb 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -1,30 +1,46 @@ # SPDX-License-Identifier: GPL-2.0-only -# kernel makefile --include .config +# +# Master makefile build script for object files in the kernel +# +# Important to remember that this is run at the project-root-level, +# all of it, as it is invoked with $(MAKE) -f +include .config +export -include $(obj)Makefile +obj-y := +subdir-y := -# 1. Filter subdirectories (items ending in /) from files +include $(obj)/Makefile + +subdir-y := +real-objs-y := subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) -real-objs-y := $(filter-out %/, $(obj-y)) +real-objs-y := $(addprefix $(obj)/, $(filter-out %/, $(obj-y))) +deps := $(real-objs-y:.o=.d) -# 2. Target to build everything in this directory -__build: $(subdir-y) $(real-objs-y) - @echo " Built-in $(obj)" +-include $(deps) -# 3. Rule to descend into subdirectories +_all: $(obj)/built-in.o + +$(obj)/%.o: $(obj)/%.c + $(Q)echo " CC $@" + $(Q)$(CC) $(CFLAGS) -c $< -o $@ + +$(obj)/%.o: $(obj)/%.S + $(Q)echo " CC $@" + $(Q)$(CC) $(CFLAGS) -c $< -o $@ + +$(obj)/built-in.o: $(real-objs-y) $(subdir-y) + $(Q)echo " LD $@" + $(Q)$(LD) -r -o $@ $(real-objs-y) $(foreach d,$(subdir-y),$(obj)/$(d)/built-in.o) + +.PHONY: _clean +_clean: $(subdir-y) + $(Q)echo " CLEAN $(obj)" + @rm -rf $(obj)/built-in.o $(real-objs-y) $(deps) + +.PHONY: $(subdir-y) $(subdir-y): - @$(MAKE) -f scripts/Makefile.build obj=$(obj)$@/ - -# 4. Standard rule to compile .c files to .o -%.o: %.c - @echo " CC $(obj)$@" - @$(CC) $(CFLAGS) -c $< -o $(obj)$@ - -%.o: %.S - @echo " CC $(obj)$@" - @$(CC) $(CFLAGS) -c $< -o $(obj)$@ + $(Q)$(MAKE) --no-print-directory -f scripts/Makefile.build $(MAKECMDGOALS) obj=$(obj)/$@ -.PHONY: __build $(subdir-y) - diff --git a/scripts/Makefile.limine b/scripts/Makefile.limine new file mode 100644 index 0000000..fdb9795 --- /dev/null +++ b/scripts/Makefile.limine @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Makefile stuff for all the booting and bootloader related stuff +$(IMG): limine/limine $(KERNEL) limine.conf + rm -rf iso_root + mkdir -p iso_root/boot + cp -v $(KERNEL) iso_root/ + mkdir -p iso_root/boot/limine + cp -v limine.conf iso_root/boot/limine/ + mkdir -p iso_root/EFI/BOOT + + cp -v limine/limine-bios.sys limine/limine-bios-cd.bin limine/limine-uefi-cd.bin iso_root/boot/limine/ + cp -v limine/BOOTX64.EFI iso_root/EFI/BOOT/ + cp -v limine/BOOTIA32.EFI iso_root/EFI/BOOT/ + + mkdir -p os_root/ + mke2fs -d os_root -t ext2 os_root.img 512M + + xorriso -as mkisofs -R -r -J \ + --efi-boot boot/limine/limine-uefi-cd.bin \ + -efi-boot-part --efi-boot-image --protective-msdos-label \ + --partition_offset 16 \ + -append_partition 2 0x83 os_root.img \ + iso_root -o $(IMG) + + rm -rf os_root.img + +limine/limine: + rm -rf limine + git clone https://codeberg.org/Limine/Limine.git limine --branch=$(LIMINE_VERSION)-binary --depth=1 + $(MAKE) -C limine \ + CC="$(HOST_CC)" \ + CFLAGS="$(HOST_CFLAGS)" \ + CPPFLAGS="$(HOST_CPPFLAGS)" \ + LDFLAGS="$(HOST_LDFLAGS)" \ + LIBS="$(HOST_LIBS)" + +.PHONY += run +run: edk2-ovmf $(IMG) + qemu-system-$(ARCH) \ + -M q35 \ + -drive if=pflash,unit=0,format=raw,file=edk2-ovmf/ovmf-code-$(ARCH).fd,readonly=on \ + -nographic \ + -cdrom $(IMG) \ + $(QEMUFLAGS) + +.PHONY += debug +debug: edk2-ovmf $(IMG) + qemu-system-$(ARCH) \ + -S -s \ + -M q35 \ + -drive if=pflash,unit=0,format=raw,file=edk2-ovmf/ovmf-code-$(ARCH).fd,readonly=on \ + -nographic \ + -cdrom $(IMG) \ + $(QEMUFLAGS) + +edk2-ovmf: + curl -L https://github.com/osdev0/edk2-ovmf-nightly/releases/latest/download/edk2-ovmf.tar.gz | gunzip | tar -xf - + +.PHONY += distclean +distclean: + make clean + rm -rf limine diff --git a/scripts/config.sh b/scripts/config.sh index e8db8e5..441f666 100755 --- a/scripts/config.sh +++ b/scripts/config.sh @@ -48,10 +48,7 @@ run_menuconfig() { # --- How you use it --- # Format: "VARIABLE_NAME" "Human Readable Description" MY_FEATURES=( - "DRIVER_USB" "Include USB Driver Support" - "FS_EXT4" "Enable EXT4 Filesystem" - "NET_WIFI" "Wireless Networking Support" - "DEBUG_SYMBOLS" "Compile with Debug Symbols" + "TEST_FEATURE" "TEST_FEATURE" ) run_menuconfig "System Features" "${MY_FEATURES[@]}"