mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
fix(core/rust): convert bitcoin_only to an additive feature
universal_fw enables more features, as opposed to bitcoin_only removing features
This commit is contained in:
parent
a433f8f914
commit
ccf4b7e9eb
@ -216,7 +216,6 @@ def cargo_build():
|
||||
features = ["model_tr"]
|
||||
else:
|
||||
features = ["model_tt"]
|
||||
features.append("bitcoin_only")
|
||||
features.append("ui")
|
||||
features.append("bootloader")
|
||||
features.extend(FEATURES_AVAILABLE)
|
||||
|
@ -273,7 +273,6 @@ def cargo_build():
|
||||
if TREZOR_MODEL in ('R', '1'):
|
||||
features.append('button')
|
||||
|
||||
features.append("bitcoin_only")
|
||||
features.append("ui")
|
||||
features.append("bootloader")
|
||||
|
||||
|
@ -722,8 +722,8 @@ def cargo_build():
|
||||
profile = ''
|
||||
|
||||
features = ['micropython', 'protobuf', ui_layout_feature]
|
||||
if BITCOIN_ONLY == '1':
|
||||
features.append('bitcoin_only')
|
||||
if EVERYTHING:
|
||||
features.append('universal_fw')
|
||||
features.append('ui')
|
||||
features.append('translations')
|
||||
if PYOPT == '0':
|
||||
|
@ -803,8 +803,8 @@ RUST_LIBPATH = f'{RUST_LIBDIR}/lib{RUST_LIB}.a'
|
||||
|
||||
def cargo_build():
|
||||
features = ['micropython', 'protobuf', ui_layout_feature]
|
||||
if BITCOIN_ONLY == '1':
|
||||
features.append('bitcoin_only')
|
||||
if EVERYTHING:
|
||||
features.append('universal_fw')
|
||||
features.append('ui')
|
||||
features.append('translations')
|
||||
if PYOPT == '0':
|
||||
|
@ -7,7 +7,6 @@ build = "build.rs"
|
||||
|
||||
[features]
|
||||
default = ["model_tt"]
|
||||
bitcoin_only = []
|
||||
crypto = ["zeroize"]
|
||||
model_tt = ["jpeg"]
|
||||
model_tr = []
|
||||
@ -49,7 +48,9 @@ test = [
|
||||
"backlight",
|
||||
"optiga",
|
||||
"translations",
|
||||
"universal_fw",
|
||||
]
|
||||
universal_fw = []
|
||||
|
||||
[lib]
|
||||
crate-type = ["staticlib"]
|
||||
|
Loading…
Reference in New Issue
Block a user