24 lines
656 B
Python
24 lines
656 B
Python
|
|
Import('env')
|
|
|
|
init_sources = Split('''
|
|
src/main.cpp
|
|
''')
|
|
|
|
init_env = env.Clone()
|
|
init_env['AS'] = 'x86_64-elf-baos-as'
|
|
init_env['CC'] = 'x86_64-elf-baos-gcc'
|
|
init_env['CXX'] = 'x86_64-elf-baos-g++'
|
|
init_env['LD'] = 'x86_64-elf-baos-g++'
|
|
init_env.Append(CXXFLAGS = ['-fno-exceptions', '-fno-rtti', '-std=c++20'])
|
|
init_env.Append(CPPPATH = ['#targets/_any/bastl/include', '#targets/_any/stdlib/include', '#targets/_any/kernel/include'])
|
|
|
|
prog_init = init_env.Program(
|
|
target = f'#sysroot_{init_env["TARGET_ARCH"]}/bin/init',
|
|
source = init_sources,
|
|
LIBS = [init_env.File('#stdlib/libc.a')]
|
|
)
|
|
init_env.Alias('init', prog_init)
|
|
|
|
Return('env')
|