forked from RT-Thread/rt-thread
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3,080 changed files
with
1,631,549 additions
and
1,631,549 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import rtconfig | ||
Import('RTT_ROOT') | ||
from building import * | ||
|
||
src_bsp = ['application.c', 'startup.c', 'board.c'] | ||
src_drv = ['console.c'] | ||
|
||
if GetDepend('RT_USING_LED'): | ||
src_drv += ['led.c'] | ||
|
||
if GetDepend('RT_USING_SDIO'): | ||
src_drv += ['at91_mci.c'] | ||
|
||
if GetDepend('RT_USING_LWIP'): | ||
src_drv += ['macb.c'] | ||
|
||
if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): | ||
src_drv += ['at91_i2c_gpio.c'] | ||
|
||
src = File(src_bsp + src_drv) | ||
CPPPATH = [RTT_ROOT + '/bsp/at91sam9260'] | ||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH) | ||
|
||
Return('group') | ||
import rtconfig | ||
Import('RTT_ROOT') | ||
from building import * | ||
|
||
src_bsp = ['application.c', 'startup.c', 'board.c'] | ||
src_drv = ['console.c'] | ||
|
||
if GetDepend('RT_USING_LED'): | ||
src_drv += ['led.c'] | ||
|
||
if GetDepend('RT_USING_SDIO'): | ||
src_drv += ['at91_mci.c'] | ||
|
||
if GetDepend('RT_USING_LWIP'): | ||
src_drv += ['macb.c'] | ||
|
||
if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): | ||
src_drv += ['at91_i2c_gpio.c'] | ||
|
||
src = File(src_bsp + src_drv) | ||
CPPPATH = [RTT_ROOT + '/bsp/at91sam9260'] | ||
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH) | ||
|
||
Return('group') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
import os | ||
import sys | ||
import rtconfig | ||
|
||
if os.getenv('RTT_ROOT'): | ||
RTT_ROOT = os.getenv('RTT_ROOT') | ||
else: | ||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') | ||
|
||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] | ||
from building import * | ||
|
||
TARGET = 'rtthread-at91sam9260.' + rtconfig.TARGET_EXT | ||
|
||
env = Environment(tools = ['mingw'], | ||
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, | ||
CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, | ||
AR = rtconfig.AR, ARFLAGS = '-rc', | ||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) | ||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) | ||
|
||
Export('RTT_ROOT') | ||
Export('rtconfig') | ||
|
||
# prepare building environment | ||
objs = PrepareBuilding(env, RTT_ROOT) | ||
|
||
if GetDepend('RT_USING_WEBSERVER'): | ||
objs = objs + SConscript(RTT_ROOT + '/components/net/webserver/SConscript', variant_dir='build/net/webserver', duplicate=0) | ||
|
||
if GetDepend('RT_USING_RTGUI'): | ||
objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) | ||
|
||
# libc testsuite | ||
objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) | ||
|
||
# build program | ||
env.Program(TARGET, objs) | ||
|
||
# end building | ||
EndBuilding(TARGET) | ||
import os | ||
import sys | ||
import rtconfig | ||
|
||
if os.getenv('RTT_ROOT'): | ||
RTT_ROOT = os.getenv('RTT_ROOT') | ||
else: | ||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') | ||
|
||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] | ||
from building import * | ||
|
||
TARGET = 'rtthread-at91sam9260.' + rtconfig.TARGET_EXT | ||
|
||
env = Environment(tools = ['mingw'], | ||
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, | ||
CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, | ||
AR = rtconfig.AR, ARFLAGS = '-rc', | ||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) | ||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) | ||
|
||
Export('RTT_ROOT') | ||
Export('rtconfig') | ||
|
||
# prepare building environment | ||
objs = PrepareBuilding(env, RTT_ROOT) | ||
|
||
if GetDepend('RT_USING_WEBSERVER'): | ||
objs = objs + SConscript(RTT_ROOT + '/components/net/webserver/SConscript', variant_dir='build/net/webserver', duplicate=0) | ||
|
||
if GetDepend('RT_USING_RTGUI'): | ||
objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) | ||
|
||
# libc testsuite | ||
objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) | ||
|
||
# build program | ||
env.Program(TARGET, objs) | ||
|
||
# end building | ||
EndBuilding(TARGET) |
Oops, something went wrong.