Back to a basic UEFI stub

This commit is contained in:
Justin C. Miller
2020-02-22 01:54:00 -08:00
parent bc5115b9ea
commit 521c132801
10 changed files with 323 additions and 168 deletions

View File

@@ -4,22 +4,8 @@
ccflags = $ccflags $
-DKERNEL_FILENAME=L\"jsix.elf\" $
-DGNU_EFI_USE_MS_ABI $
-DHAVE_USE_MS_ABI $
-DEFI_DEBUG=0 $
-DEFI_DEBUG_CLEAR_MEMORY=0 $
-DBOOTLOADER_DEBUG
ldflags = $ldflags $
-T ${srcroot}/src/arch/x86_64/boot.ld $
-shared
{% endblock %}
{% block extra %}
build $builddir/boot.efi : makeefi ${builddir}/{{ module.output }}
name = boot.efi
-I${srcroot}/external/include $
-I${srcroot}/external/include/X64
{% endblock %}

View File

@@ -3,7 +3,7 @@
{% block binaries %}
cc = clang
cxx = clang++
ld = ld
ld = clang++
ar = ar
nasm = nasm
objcopy = objcopy
@@ -12,27 +12,24 @@ objcopy = objcopy
{% block variables %}
ccflags = $ccflags $
-ggdb $
-nostdlib $
--target=x86_64-unknown-windows $
-ffreestanding $
-nodefaultlibs $
-fno-builtin $
-mno-sse $
-fno-omit-frame-pointer $
-mno-red-zone $
-fshort-wchar $
-D__ELF__ $
-fPIC
-fno-omit-frame-pointer $
-ggdb
cxxflags = $cxxflags $
-fno-exceptions $
-fno-rtti $
-fno-rtti $
-fno-exceptions
ldflags = $ldflags $
-g $
--target=x86_64-unknown-windows $
-nostdlib $
-Bsymbolic $
-nostartfiles
-Wl,-entry:efi_main $
-Wl,-subsystem:efi_application $
-fuse-ld=lld-link $
-g
{% endblock %}