1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

core: generate moduledefs.h for micropython

This commit is contained in:
Jan Pochyla 2019-12-17 19:24:08 +01:00
parent 62bee620cc
commit 5aca68e50c
2 changed files with 38 additions and 18 deletions

View File

@ -401,15 +401,6 @@ env.Replace(
MPY_CROSS='vendor/micropython/mpy-cross/mpy-cross -O' + PYOPT MPY_CROSS='vendor/micropython/mpy-cross/mpy-cross -O' + PYOPT
) )
#
# Micropython version
#
hdr_version = env.Command(
target='genhdr/mpversion.h',
source='',
action='$MAKEVERSIONHDR $TARGET', )
# #
# Qstrings # Qstrings
# #
@ -428,6 +419,25 @@ qstr_generated = env.GenerateQstrDefs(
env.Ignore(qstr_collected, qstr_generated) env.Ignore(qstr_collected, qstr_generated)
#
# Micropython version and modules
#
hdr_version = env.Command(
target='genhdr/mpversion.h',
source='',
action='$MAKEVERSIONHDR $TARGET', )
hdr_moduledefs = env.Command(
target='genhdr/moduledefs.h',
source=SOURCE_QSTR,
action='$MAKEMODULEDEFS --vpath="." $SOURCES > $TARGET', )
env.Ignore(hdr_moduledefs, hdr_moduledefs)
env.Ignore(hdr_moduledefs, qstr_collected)
env.Ignore(hdr_moduledefs, qstr_preprocessed)
env.Ignore(hdr_moduledefs, qstr_generated)
# #
# Frozen modules # Frozen modules
# #

View File

@ -364,15 +364,6 @@ env.Replace(
MPY_CROSS='vendor/micropython/mpy-cross/mpy-cross -O' + PYOPT MPY_CROSS='vendor/micropython/mpy-cross/mpy-cross -O' + PYOPT
) )
#
# Micropython version
#
hdr_version = env.Command(
target='genhdr/mpversion.h',
source='',
action='$MAKEVERSIONHDR $TARGET', )
# #
# Qstrings # Qstrings
# #
@ -391,6 +382,25 @@ qstr_generated = env.GenerateQstrDefs(
env.Ignore(qstr_collected, qstr_generated) env.Ignore(qstr_collected, qstr_generated)
#
# Micropython version and modules
#
hdr_version = env.Command(
target='genhdr/mpversion.h',
source='',
action='$MAKEVERSIONHDR $TARGET', )
hdr_moduledefs = env.Command(
target='genhdr/moduledefs.h',
source=SOURCE_QSTR,
action='$MAKEMODULEDEFS --vpath="." $SOURCES > $TARGET', )
env.Ignore(hdr_moduledefs, hdr_moduledefs)
env.Ignore(hdr_moduledefs, qstr_collected)
env.Ignore(hdr_moduledefs, qstr_preprocessed)
env.Ignore(hdr_moduledefs, qstr_generated)
# #
# Frozen modules # Frozen modules
# #