Skip to content

Commit 617857c

Browse files
committed
移除目录
1 parent c0ef7b2 commit 617857c

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

SConscript

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
21
from building import *
3-
Import('rtconfig')
42

53
src = []
64
cwd = GetCurrentDir()
7-
group = []
8-
CPPPATH = []
5+
include_path = [cwd]
96

107
# add kernel samples.
118

129
if GetDepend('PERIPHERAL_SAMPLES_USING_I2C'):
13-
src += Glob('i2c/*.c')
14-
CPPPATH += [cwd + '/i2c']
10+
src += ['i2c_aht10_sample.c']
1511

1612
if GetDepend('PERIPHERAL_SAMPLES_USING_PIN'):
17-
src += Glob('pin/*.c')
18-
CPPPATH += [cwd + '/pin']
13+
src += Glob('pin_beep_sample.c')
1914

2015
if GetDepend('PERIPHERAL_SAMPLES_USING_SERIAL'):
21-
src += Glob('serial/*.c')
22-
CPPPATH += [cwd + '/serial']
16+
src += Glob('uart_sample.c')
2317

2418
if GetDepend('PERIPHERAL_SAMPLES_USING_SPI'):
25-
src += Glob('spi/*.c')
26-
CPPPATH += [cwd + '/spi']
19+
src += Glob('spi_w25q_sample.c')
2720

28-
group = DefineGroup('peripheral-samples', src, depend = ['PKG_USING_PERIPHERAL_SAMPLES'], CPPPATH = CPPPATH)
21+
group = DefineGroup('peripheral-samples', src, depend = ['PKG_USING_PERIPHERAL_SAMPLES'], CPPPATH = include_path)
2922

3023
Return('group')
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)