metal-cos/sbin/newfs_o2fs/SConscript
2023-09-10 21:03:01 -04:00

23 lines
502 B
Python

import sys
Import('toolenv')
Import('env')
newfs_env = env.Clone()
if (env["TOOLCHAINBUILD"] == "TRUE"):
newfs_env = toolenv.Clone()
src = [
"newfs_o2fs.c"
]
if env["TOOLCHAINBUILD"] != "TRUE":
newfs_env.Append(LINKFLAGS = ['-nostdlib'])
newfs_env.Append(CPPFLAGS = ['-nostdinc'])
newfs_env.Append(LIBPATH = ['#build/lib/libc'], LIBS = ['c'])
newfs_env.Append(CPPPATH = ['#build/include'])
newfs_env.Append(CPPPATH = ['#sys/fs/o2fs'])
newfs_env.Program("newfs_o2fs", src)