mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Back to a basic UEFI stub
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user