diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-28 14:23:37 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-28 14:23:37 +0100 |
| commit | b177e9c4c954170b590d777fe77442ff3a0cd8d7 (patch) | |
| tree | 7282e804cabc35d8b905aeb45a94c88cffd982fe /Private/NewBoot/Source/makefile | |
| parent | 89326d7a262b48701cec9dba71b43235d18c6e30 (diff) | |
HEL: Improve UEFI support, will add a EPM wrapper over it.
EPM will be used to load the Operating System and it's partitions.
It was originally meant for kickStart, but we'll it also here.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/Source/makefile')
| -rw-r--r-- | Private/NewBoot/Source/makefile | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Private/NewBoot/Source/makefile b/Private/NewBoot/Source/makefile index 911cdfef..75993507 100644 --- a/Private/NewBoot/Source/makefile +++ b/Private/NewBoot/Source/makefile @@ -1,18 +1,15 @@ -CC=gcc -CCFLAGS=-I../ -I../../ -std=c++20 -ffreestanding -nostdlib -c +# (C) Mahrouss Logic, 2024, all rights reserved. -.PHONY: arch-arc -arch-arc: - ${CC} ${CCFLAGS} Start.cxx - -CC_GNU=x86_64-elf-gcc +CC_GNU=x86_64-elf-g++ LD_GNU=x86_64-elf-ld -FLAG_GNU=-I../ -I../../../efiSDK/inc -c -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__hCore__ -I./ -I$(HOME)/ +OBJCOPY_GNU=x86_64-elf-objcopy +FLAG_GNU=-I../ -I../../ -I../../efiSDK/inc -I./ -c -fPIC -ffreestanding -fno-rtti -fno-exceptions -std=c++20 -D__HAVE_HCORE_APIS__ -D__hCore__ -I./ -I$(HOME)/ .PHONY: arch-amd64 arch-amd64: - $(CC_GNU) $(FLAG_GNU) -D__DBG__ HEL/AMD64/BootAMD64.cxx *.cxx - $(LD_GNU) *.o -e Main --oformat binary -o BootloaderStage2.bin + $(CC_GNU) $(FLAG_GNU) -D__DBG__ HEL/AMD64/*.cxx + $(LD_GNU) *.o -e Main -shared -o HCORELDR.ELF + $(OBJCOPY_GNU) -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel -j .rela -j .rel.* -j .rela.* -j .reloc --target efi-app-x86_64 --subsystem=10 HCORELDR.ELF HCORELDR.EFI .PHONY: clean clean: |
