Skip to content

Commit 4c82755

Browse files
Merge pull request #125 from LedgerHQ/cev/fix_nanosp_guideline-enforcer
Fix nanos+ nanos2 to nanosp for Target selection
2 parents d9cfe23 + ee78d70 commit 4c82755

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/check_all.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ call_step() {
167167
"manifest")
168168
if [[ -n ${MANIFEST_FILE} ]]; then
169169
log_bold "********* Processing target: ${TARGET}"
170-
eval BOLOS_SDK="$(echo "\$${TARGET}" | tr '[:lower:]' '[:upper:]')_SDK"
170+
eval BOLOS_SDK="$(echo "\$${TARGET}" | sed 's/[2+]/p/' | tr '[:lower:]' '[:upper:]')_SDK"
171171
if [[ "${IS_RUST}" == true ]]; then
172172
COMMAND="(cd ${APP_DIR} && python3 ${dirName}/cargo_metadata_dump.py --device ${TARGET} --app_build_path ${BUILD_DIR} --json_path ${MANIFEST_FILE})"
173173
else
174174
COMMAND="(cd ${APP_DIR} && python3 ${dirName}/makefile_dump.py --app_build_path ${BUILD_DIR} --json_path ${MANIFEST_FILE})"
175175
fi
176176
else
177177
log_step "Get ${step} (All targets)"
178-
ALL_TARGETS=$(ledger-manifest --output-devices ledger_app.toml | tail -n +2 | awk -F" " '{print $2}' | sed 's/+/p/')
178+
ALL_TARGETS=$(ledger-manifest --output-devices ledger_app.toml | tail -n +2 | awk -F" " '{print $2}' | sed 's/[2+]/p/')
179179
for tgt in ${ALL_TARGETS}; do
180180
log_bold "********* Processing target: ${tgt}"
181181
eval BOLOS_SDK="$(echo "\$${tgt}" | tr '[:lower:]' '[:upper:]')_SDK"
@@ -212,15 +212,15 @@ call_step() {
212212
"scan")
213213
if [[ -n ${TARGET} ]]; then
214214
log_bold "********* Processing target: ${TARGET}"
215-
eval BOLOS_SDK="$(echo "\$${TARGET}" | tr '[:lower:]' '[:upper:]')_SDK"
215+
eval BOLOS_SDK="$(echo "\$${TARGET}" | sed 's/[2+]/p/' | tr '[:lower:]' '[:upper:]')_SDK"
216216
if [[ "${IS_RUST}" == true ]]; then
217217
COMMAND="(cd ${APP_DIR}/${BUILD_DIR} && cargo +$RUST_NIGHTLY clippy --target ${TARGET/nanosp/nanosplus} -- -Dwarnings)"
218218
else
219219
COMMAND="make ${make_option[*]} ENABLE_SDK_WERROR=1 scan-build"
220220
fi
221221
else
222222
log_step "Check ${step} (All targets)"
223-
ALL_TARGETS=$(ledger-manifest --output-devices ledger_app.toml | tail -n +2 | awk -F" " '{print $2}' | sed 's/+/p/')
223+
ALL_TARGETS=$(ledger-manifest --output-devices ledger_app.toml | tail -n +2 | awk -F" " '{print $2}' | sed 's/[2+]/p/')
224224
for tgt in ${ALL_TARGETS}; do
225225
log_bold "********* Processing target: ${tgt}"
226226
eval BOLOS_SDK="$(echo "\$${tgt}" | tr '[:lower:]' '[:upper:]')_SDK"

0 commit comments

Comments
 (0)