Ninja buildsystem produces working bootloader

This commit is contained in:
Justin C. Miller
2019-02-02 18:24:58 -08:00
parent a1fe745a53
commit acdca19f59
6 changed files with 47 additions and 9 deletions

View File

@@ -0,0 +1,35 @@
{% extends "target.default.ninja.j2" %}
{% block binaries %}
ld = ld
cc = clang
cxx = clang++
nasm = nasm
{% endblock %}
{% block variables %}
ccflags = $ccflags $
-ggdb $
-nostdlib $
-ffreestanding $
-nodefaultlibs $
-fno-builtin $
-mno-sse $
-fno-omit-frame-pointer $
-mno-red-zone
cxxflags = $cxxflags $
-nostdlibinc $
-isystem${srcroot}/sysroot/include/c++/v1 $
-fno-exceptions $
-fno-rtti
ldflags = $ldflags $
-g $
-nostdlib $
-znocombreloc $
-Bsymbolic $
-nostartfiles
{% endblock %}