summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-21 07:55:20 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-21 07:55:20 +0200
commitbc4f32c10a34c6bded98f378004f7435deede43b (patch)
tree31aedfebcaef1c3b045f1c19a48792ba8e77cf01
parent155971914073bedfa585a0be4d14a40bd23e3b8f (diff)
MHR-5: Fix: not using buggy wildcard anymore.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
-rw-r--r--Private/Drivers/Bonjour/Bonjour.c (renamed from Private/Drivers/Bonjour/SampleDriver.c)4
-rw-r--r--Private/Drivers/Bonjour/makefile2
-rw-r--r--Private/Drivers/SampleDriver/makefile2
-rw-r--r--Private/NewBoot/Source/makefile5
-rw-r--r--Private/makefile3
-rw-r--r--Public/Developer/DriverLib/.gitkeep0
-rw-r--r--Public/Developer/SystemLib/Sources/File.c3
7 files changed, 9 insertions, 10 deletions
diff --git a/Private/Drivers/Bonjour/SampleDriver.c b/Private/Drivers/Bonjour/Bonjour.c
index 8289fcbc..dba649c9 100644
--- a/Private/Drivers/Bonjour/SampleDriver.c
+++ b/Private/Drivers/Bonjour/Bonjour.c
@@ -8,11 +8,11 @@
#include <DriverKit/KernelPrint.h>
int __ImageStart(void) {
- kernelPrintStr("SampleDriver: Starting up...\r\n");
+ kernelPrintStr("Bonjour: Starting up zeroconf...\r\n");
return 0;
}
int __ImageEnd(void) {
- kernelPrintStr("SampleDriver: Shutting down...\r\n");
+ kernelPrintStr("Bonjour: Shutting down zeroconf...\r\n");
return 0;
}
diff --git a/Private/Drivers/Bonjour/makefile b/Private/Drivers/Bonjour/makefile
index e1cdba67..b98d9ff9 100644
--- a/Private/Drivers/Bonjour/makefile
+++ b/Private/Drivers/Bonjour/makefile
@@ -24,7 +24,7 @@ EMU_FLAGS=-net none -smp 4 -m 4G -M q35 -bios OVMF.fd -device piix3-ide,id=ide -
LD_FLAGS=-e __ImageStart --subsystem=17
-OBJ=$(wildcard *.o) $(wildcard HEL/AMD64/*.obj)
+OBJ=*.o
REM=rm
diff --git a/Private/Drivers/SampleDriver/makefile b/Private/Drivers/SampleDriver/makefile
index 637be18d..2433aa51 100644
--- a/Private/Drivers/SampleDriver/makefile
+++ b/Private/Drivers/SampleDriver/makefile
@@ -24,7 +24,7 @@ EMU_FLAGS=-net none -smp 4 -m 4G -M q35 -bios OVMF.fd -device piix3-ide,id=ide -
LD_FLAGS=-e __ImageStart --subsystem=17
-OBJ=$(wildcard *.o) $(wildcard HEL/AMD64/*.obj)
+OBJ=*.o
REM=rm
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile
index 03bb9248..25eb04c0 100644
--- a/Private/NewBoot/Source/makefile
+++ b/Private/NewBoot/Source/makefile
@@ -24,8 +24,7 @@ EMU_FLAGS=-net none -smp 4 -m 4G -M q35 -bios OVMF.fd -device piix3-ide,id=ide -
LD_FLAGS=-e Main --subsystem=10
-OBJ=$(wildcard *.o) $(wildcard HEL/AMD64/*.obj)
-
+OBJ=*.o
REM=rm
REM_FLAG=-f
@@ -68,7 +67,7 @@ download-edk:
.PHONY: clean
clean:
- $(REM) $(REM_FLAG) $(OBJ) NewBoot.exe NewKernel.exe OVMF.fd
+ $(REM) $(REM_FLAG) $(OBJ) NewBoot.exe NewKernel.exe OVMF.fd $(IMG) $(IMG_2)
.PHONY: help
help:
diff --git a/Private/makefile b/Private/makefile
index b166990e..4d871c82 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -39,7 +39,7 @@ SCRIPT = --script=Linker/Platforms/PC.lds
.PHONY: error
error:
- @echo "Use a specific target."
+ @echo "=> Use a specific target."
MOVEALL=./MoveAll.sh
WINDRES=x86_64-w64-mingw32-windres
@@ -58,7 +58,6 @@ OBJCOPY=x86_64-w64-mingw32-objcopy
.PHONY: link-amd64-epm
link-amd64-epm:
- $(SLEEP)
$(LD) $(LDFLAGS) $(LDOBJ) -o $(KERNEL)
$(COPY) $(KERNEL) Root/Boot
diff --git a/Public/Developer/DriverLib/.gitkeep b/Public/Developer/DriverLib/.gitkeep
deleted file mode 100644
index e69de29b..00000000
--- a/Public/Developer/DriverLib/.gitkeep
+++ /dev/null
diff --git a/Public/Developer/SystemLib/Sources/File.c b/Public/Developer/SystemLib/Sources/File.c
index 39a4aff0..6e4a7440 100644
--- a/Public/Developer/SystemLib/Sources/File.c
+++ b/Public/Developer/SystemLib/Sources/File.c
@@ -25,7 +25,8 @@ CA_EXTERN_C FSRef FsOpenFile(const CharacterTypeUTF8* path,
CA_MUST_PASS(path && FsIsValidPath(path) == Yes);
CA_MUST_PASS(rest);
- return kSharedApplication->Invoke(kSharedApplication, kCallOpenFile, path, rest);
+ return kSharedApplication->Invoke(kSharedApplication, kCallOpenFile, path,
+ rest);
}
/// @brief Closes the file and flushes it to the said file.