mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
core: generate moduledefs.h for micropython
This commit is contained in:
parent
62bee620cc
commit
5aca68e50c
@ -401,15 +401,6 @@ env.Replace(
|
||||
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
|
||||
#
|
||||
@ -428,6 +419,25 @@ qstr_generated = env.GenerateQstrDefs(
|
||||
|
||||
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
|
||||
#
|
||||
|
@ -364,15 +364,6 @@ env.Replace(
|
||||
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
|
||||
#
|
||||
@ -391,6 +382,25 @@ qstr_generated = env.GenerateQstrDefs(
|
||||
|
||||
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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user