mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
18 lines
363 B
Python
18 lines
363 B
Python
|
|
Import('config', 'env', 'contid')
|
|
|
|
import os, sys
|
|
|
|
arch = config.arch
|
|
|
|
src = [Glob('*.c') + Glob('src/*.c') + Glob('src/arch/arm/*.c') + Glob('src/memfs/*.c') + Glob('src/lib/*.c')]
|
|
|
|
e = env.Clone()
|
|
e.Append(LIBS = 'posix')
|
|
e.Append(LINKFLAGS = ['-T' + "fs0/include/linker.lds", '-u_start'])
|
|
|
|
objs = e.Object(src)
|
|
fs0 = e.Program('fs0.elf', objs)
|
|
|
|
Return('fs0')
|