mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
firmware: reuse SOURCE_PY_DIR where possible
This commit is contained in:
parent
398f1557d6
commit
c58c4a94d8
@ -276,12 +276,12 @@ SOURCE_TREZORHAL = [
|
||||
SOURCE_QSTR = SOURCE_MOD + SOURCE_MICROPYTHON + SOURCE_MICROPYTHON_SPEED
|
||||
|
||||
# TODO: recursive Glob
|
||||
SOURCE_PY = Glob('src/*.py')
|
||||
SOURCE_PY.extend(Glob('src/*/*.py'))
|
||||
SOURCE_PY.extend(Glob('src/*/*/*.py'))
|
||||
SOURCE_PY.extend(Glob('src/*/*/*/*.py'))
|
||||
SOURCE_PY.extend(Glob('src/*/*/*/*/*.py'))
|
||||
SOURCE_PY_DIR = 'src/'
|
||||
SOURCE_PY = Glob(SOURCE_PY_DIR + '*.py')
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR+'*/*.py'))
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR+'*/*/*.py'))
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR+'*/*/*/*.py'))
|
||||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR+'*/*/*/*/*.py'))
|
||||
|
||||
env = Environment(ENV=os.environ, CFLAGS='%s -DPRODUCTION=%s -DPYOPT=%s' % (ARGUMENTS.get('CFLAGS', ''), ARGUMENTS.get('PRODUCTION', '0'), PYOPT))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user