diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-03-28 05:17:08 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-03-28 05:17:08 +0100 |
| commit | 9034d32c7b60dedbdbdb66f42d9b147cb2aa9a60 (patch) | |
| tree | fda5dfa8ab557954c16ce052f867679ee3dc38f4 /dev/boot/modules/NetBoot/NetBoot.cc | |
| parent | 4966ca284132e4e52a9bee6f582527aa7f784ef6 (diff) | |
bootz: rename NetBoot module to BootNet
Rename the NetBoot module to BootNet to avoid confusion with Apple's
NetBoot and better reflect the module's role within BootZ.
Updates include:
- Renamed module directory: NetBoot/ → BootNet/
- Renamed files and headers: NetBoot.cc → BootNet.cc, etc.
- Updated build output: netboot.sys → bootnet.sys
- Replaced all references in build scripts, source includes, and user-visible strings
- Fixed typo in SysChk.cc copyright
This unifies naming across modules and reinforces BootZ's modular identity.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/modules/NetBoot/NetBoot.cc')
| -rw-r--r-- | dev/boot/modules/NetBoot/NetBoot.cc | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/dev/boot/modules/NetBoot/NetBoot.cc b/dev/boot/modules/NetBoot/NetBoot.cc deleted file mode 100644 index 4a169d33..00000000 --- a/dev/boot/modules/NetBoot/NetBoot.cc +++ /dev/null @@ -1,50 +0,0 @@ -/* - * ======================================================== - * - * NetBoot - * Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - * - * ======================================================== - */ - -#include <modules/NetBoot/NetBoot.h> -#include <BootKit/BootKit.h> -#include <BootKit/BootThread.h> - -EXTERN_C Int32 ModuleMain(NeOS::HEL::BootInfoHeader* handover) -{ - NETBOOT_INTERNET_HEADER inet{}; - - memset(&inet, 0, sizeof(NETBOOT_INTERNET_HEADER)); - - /// TODO: Read packet from JSON file 'netboot.json' - - if (inet.PatchLength < 1) - { - Boot::BootTextWriter writer; - writer.Write("NetBootLauncher: No executable attached to the packet, aborting.\r"); - - return kEfiFail; - } - - if (!inet.EEPROM) - { - Boot::BootThread thread(inet.PatchData); - - if (thread.IsValid()) - return thread.Start(handover, YES); - - return kEfiFail; - } - else - { - Boot::BootTextWriter writer; - writer.Write("NetBootLauncher: EEPROM flash is not available as of right now.\r"); - - /// TODO: Program new firmware to EEPROM (if crc and size matches) - - return kEfiFail; // TODO: Add support for EEPROM firmware update. - } - - return kEfiFail; -} |
