Remove old build script

This commit is contained in:
flysand7 2023-09-09 12:36:10 +11:00
parent c1e3d72d2f
commit afa8017b5b
1 changed files with 0 additions and 24 deletions

View File

@ -1,24 +0,0 @@
loader_flags = [
'-Wl,-e,_dlstart',
'-Wl,--sort-section,alignment',
'-Wl,--sort-common',
'-Wl,--gc-sections',
'-Wl,--hash-style=both',
'-Wl,--no-undefined',
'-Wl,--exclude-libs=ALL'
]
def build(toolchain):
toolchain.compiler.flags.append('-fno-stack-protector')
toolchain.assembler.flags.append('-f "elf64"')
compiler = toolchain.compiler
assembler = toolchain.assembler
archiver = toolchain.archiver
# Build dynamic loader
toolchain.step("lib/ld-cia.so")
assembler.obj('bin/loader-entry.o', ['loader/loader-entry.asm'])
compiler.shared('lib/ld-cia.so', ['bin/loader-entry.c','loader/loader-self-reloc.c','loader/loader.c'], loader_flags)
# Build the crt
toolchain.step('crt.lib')
compiler.obj('')