summaryrefslogtreecommitdiffhomepage
path: root/Private
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-03-05 17:11:44 +0000
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-03-05 17:11:44 +0000
commitce2b172601f3dbefdc52420d04aad0d0940a5b58 (patch)
treea35be7c7629a1bd2f9235116b5814eee90636c66 /Private
parente430bfff418489e34b37653b85ce358e0df7fd51 (diff)
Update toolchain to better work on windows.
Diffstat (limited to 'Private')
-rw-r--r--Private/NewBoot/Source/makefile2
-rw-r--r--Private/NewBoot/download-edk.cmd2
-rw-r--r--Private/makefile2
3 files changed, 4 insertions, 2 deletions
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile
index 2d3dc777..c3b02fc6 100644
--- a/Private/NewBoot/Source/makefile
+++ b/Private/NewBoot/Source/makefile
@@ -13,7 +13,7 @@ REM=rm
REM_FLAG=-f
FLAG_ASM=-f win64
-FLAG_GNU=-fshort-wchar -DkBootKrnlSections=9 -mgeneral-regs-only -mno-red-zone -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I./ -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__HCORE__ -D__BOOTLOADER__ -I./ -I$(HOME)/
+FLAG_GNU=-fshort-wchar -DkBootKrnlSections=9 -mgeneral-regs-only -mno-red-zone -DEFI_FUNCTION_WRAPPER -I../ -I../../ -I./ -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__HCORE__ -D__BOOTLOADER__ -I./
.PHONY: invalid-recipe
invalid-recipe:
diff --git a/Private/NewBoot/download-edk.cmd b/Private/NewBoot/download-edk.cmd
new file mode 100644
index 00000000..d19432a6
--- /dev/null
+++ b/Private/NewBoot/download-edk.cmd
@@ -0,0 +1,2 @@
+$client = new-object System.Net.WebClient
+$client.DownloadFile("https://retrage.github.io/edk2-nightly/bin/DEBUGX64_OVMF.fd","C:\micro-kernel-Amllx-trunk-patch-989e\Private\NewBoot\Source\OVMF.fd") \ No newline at end of file
diff --git a/Private/makefile b/Private/makefile
index 8c721dc3..e9c116ae 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -5,7 +5,7 @@
CC = x86_64-w64-mingw32-gcc
LD = x86_64-w64-mingw32-ld
-CCFLAGS = -c -ffreestanding -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./ -I$(HOME)/
+CCFLAGS = -c -ffreestanding -mgeneral-regs-only -mno-red-zone -fno-rtti -fno-exceptions -std=c++20 -D__FSKIT_NEWFS__ -D__HAVE_HCORE_APIS__ -D__HCORE__ -I../ -I./
ASM = nasm
ASMFLAGS = -f win64
LDFLAGS = -e Main --subsystem=17