summaryrefslogtreecommitdiffhomepage
path: root/Private/makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-22 09:57:35 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-04-22 09:57:35 +0200
commit76c0c6b21532aee82df5bd62cd886bc63d933899 (patch)
tree2df231f8601402147514572120f762c69bf5c84a /Private/makefile
parente548e79578d692dce885e7ef3cb38d993e90e07f (diff)
MHR-5: Fix BootFileReader on EFI platforms (AMD64), also added CoreBoot
directory for CoreBoot API (NeWS) Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/makefile')
-rw-r--r--Private/makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Private/makefile b/Private/makefile
index 4d871c82..128ccc55 100644
--- a/Private/makefile
+++ b/Private/makefile
@@ -56,9 +56,16 @@ newos-amd64-epm: clean
OBJCOPY=x86_64-w64-mingw32-objcopy
+KERNEL_OBJ=kernel.bin
+DD=dd
+IMG_CREATE=qemu-img
+MAX_KERNEL_SIZE=1024K
+
.PHONY: link-amd64-epm
link-amd64-epm:
- $(LD) $(LDFLAGS) $(LDOBJ) -o $(KERNEL)
+ $(LD) $(LDFLAGS) $(LDOBJ) -o $(KERNEL_OBJ)
+ $(IMG_CREATE) create -f raw $(KERNEL) $(MAX_KERNEL_SIZE)
+ $(DD) if=$(KERNEL_OBJ) of=$(KERNEL) bs=1 seek=0 conv=notrunc
$(COPY) $(KERNEL) Root/Boot
.PHONY: all