mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
cleanup scons building script
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1065 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
Import('env')
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src_local = Glob('*.c')
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [RTT_ROOT + '/components/libc/minilibc']
|
||||
group = DefineGroup('minilibc', src, depend = ['RT_USING_MINILIBC'], CPPPATH = CPPPATH)
|
||||
|
||||
env.Append(CPPPATH = RTT_ROOT + '/components/libc/minilibc', CPPDEFINES='RT_USING_MINILIBC')
|
||||
|
||||
obj = env.Object(src_local)
|
||||
Return('obj')
|
||||
Return('group')
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
Import('env')
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src_local = Glob('*.c')
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [RTT_ROOT + '/components/libc/newlib']
|
||||
group = DefineGroup('newlib', src, depend = ['RT_USING_NEWLIB'], CPPPATH = CPPPATH)
|
||||
|
||||
env.Append(CPPPATH = RTT_ROOT + '/components/libc/newlib')
|
||||
|
||||
obj = env.Object(src_local)
|
||||
Return('obj')
|
||||
Return('group')
|
||||
|
||||
@@ -201,12 +201,14 @@ _free_r (struct _reent *ptr, void *addr)
|
||||
rt_free (addr);
|
||||
}
|
||||
|
||||
#if 0
|
||||
void __assert(const char *file, int line, const char *failedexpr)
|
||||
{
|
||||
rt_kprintf("assertion \"%s\" failed: file \"%s\", line %d\n",
|
||||
failedexpr, file, line);
|
||||
RT_ASSERT(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
_exit (int status)
|
||||
|
||||
Reference in New Issue
Block a user