summaryrefslogtreecommitdiffhomepage
path: root/Boot/NetBoot
diff options
context:
space:
mode:
authorAmlal <amlal@zka.com>2024-07-12 01:03:21 +0200
committerAmlal <amlal@zka.com>2024-07-12 01:03:21 +0200
commita268a7d3551523fb82b1495808f3ea2516b6fdaa (patch)
tree0a7fab583aafca52bccf5bac143517f559b3a247 /Boot/NetBoot
parent0a076b2bcc21d4fc94b83569e1b5198f9e4acd0b (diff)
[IMP && FIX] Various patches and implementations.
Most importantly: - JSON parser. Signed-off-by: Amlal <amlal@zka.com>
Diffstat (limited to 'Boot/NetBoot')
-rw-r--r--Boot/NetBoot/NetBoot.hxx16
-rw-r--r--Boot/NetBoot/compile_flags.txt8
-rw-r--r--Boot/NetBoot/manifest.json4
3 files changed, 18 insertions, 10 deletions
diff --git a/Boot/NetBoot/NetBoot.hxx b/Boot/NetBoot/NetBoot.hxx
index a3039838..1a474501 100644
--- a/Boot/NetBoot/NetBoot.hxx
+++ b/Boot/NetBoot/NetBoot.hxx
@@ -14,13 +14,13 @@
/// @brief the internet header is used to download updates OTA.
typedef struct NetBootInternetHeader
{
- CharacterTypeUTF8 NB1; /// magic char 1 'N'
- CharacterTypeUTF8 NB2; /// magic char 2 'E'
- CharacterTypeUTF8 NB3; /// magic char 3 'T'
- CharacterTypeUTF8 NB4; /// magic char 4 'B'
+ Kernel::Char NB1; /// magic char 1 'N'
+ Kernel::Char NB2; /// magic char 2 'E'
+ Kernel::Char NB3; /// magic char 3 'T'
+ Kernel::Char NB4; /// magic char 4 'B'
- CharacterTypeUTF8 PatchName[255]; /// example: ColdChoco
- Kernel::Int32 PatchLength; /// the patch length.
- CharacterTypeUTF8 PatchTarget[255]; /// the target file.
- Kernel::Boolean ImpliesROM; /// does it implies EEPROM patching?
+ Kernel::Char PatchName[255]; /// example: ColdChoco
+ Kernel::Int32 PatchLength; /// the patch length.
+ Kernel::Char PatchTarget[255]; /// the target file.
+ Kernel::Boolean ImpliesROM; /// does it imply an EEPROM reprogram?
} NetBootInternetHeader;
diff --git a/Boot/NetBoot/compile_flags.txt b/Boot/NetBoot/compile_flags.txt
new file mode 100644
index 00000000..f9ca281f
--- /dev/null
+++ b/Boot/NetBoot/compile_flags.txt
@@ -0,0 +1,8 @@
+-std=c++20
+-I../
+-I../../
+-I../../Kernel
+-D__NEWOS_AMD64__
+-std=c++20
+-D__x86_64__
+-D__NEWOS_OTA__
diff --git a/Boot/NetBoot/manifest.json b/Boot/NetBoot/manifest.json
index 8486cfc1..825677f7 100644
--- a/Boot/NetBoot/manifest.json
+++ b/Boot/NetBoot/manifest.json
@@ -1,4 +1,4 @@
{
- "pluginName": "interBoot",
- "description": "Boot your device from your network infra."
+ "pluginName": "iBoot",
+ "description": "Boot your device from your network infrastructure."
}