Skip to content

Commit 02e85d1

Browse files
author
Seppo Takalo
committed
Don't try to retarget console to serial.
In bootloader, we have already dropped a support for formatted prints. Therefore targeting console to serial just brings in extra code that never gets called. Configure all targets to target console to dummy Sink device which is smaller in code size.
1 parent 833ca0b commit 02e85d1

10 files changed

+10
-0
lines changed

configs/external_kvstore_with_qspif.json

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
],
8888
"target_overrides": {
8989
"*": {
90+
"target.console-uart" : false,
9091
"target.c_lib" : "small",
9192
"platform.use-mpu" : false,
9293
"platform.default-serial-baud-rate" : 115200,

configs/external_kvstore_with_spif.json

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
],
8888
"target_overrides": {
8989
"*": {
90+
"target.console-uart" : false,
9091
"target.c_lib" : "small",
9192
"platform.use-mpu" : false,
9293
"platform.default-serial-baud-rate" : 115200,

configs/internal_flash_no_rot.json

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
],
8383
"target_overrides": {
8484
"*": {
85+
"target.console-uart" : false,
8586
"target.c_lib" : "small",
8687
"platform.default-serial-baud-rate" : 115200,
8788
"update-client.firmware-header-version" : "2",

configs/internal_kvstore_with_qspif.json

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
],
8383
"target_overrides": {
8484
"*": {
85+
"target.console-uart" : false,
8586
"target.c_lib" : "small",
8687
"platform.use-mpu" : false,
8788
"platform.default-serial-baud-rate" : 115200,

configs/internal_kvstore_with_sd.json

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
],
8484
"target_overrides": {
8585
"*": {
86+
"target.console-uart" : false,
8687
"target.c_lib" : "small",
8788
"platform.use-mpu" : false,
8889
"platform.default-serial-baud-rate" : 115200,

configs/internal_kvstore_with_spif.json

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
],
8484
"target_overrides": {
8585
"*": {
86+
"target.console-uart" : false,
8687
"target.c_lib" : "small",
8788
"platform.use-mpu" : false,
8889
"platform.default-serial-baud-rate" : 115200,

configs/kvstore_and_fw_candidate_on_sd.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
],
7676
"target_overrides": {
7777
"*": {
78+
"target.console-uart" : false,
7879
"target.c_lib" : "small",
7980
"platform.use-mpu" : false,
8081
"platform.default-serial-baud-rate" : 115200,

configs/psa.json

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
],
7474
"target_overrides": {
7575
"*": {
76+
"target.console-uart" : false,
7677
"target.c_lib" : "small",
7778
"platform.use-mpu" : false,
7879
"platform.default-serial-baud-rate" : 115200,

configs/spif_kvstore.json

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
],
5757
"target_overrides": {
5858
"*": {
59+
"target.console-uart" : false,
5960
"target.c_lib" : "small",
6061
"platform.use-mpu" : false,
6162
"platform.default-serial-baud-rate" : 115200,

mbed_app.json

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
],
7070
"target_overrides": {
7171
"*": {
72+
"target.console-uart" : false,
7273
"target.c_lib" : "small",
7374
"platform.use-mpu" : false,
7475
"platform.default-serial-baud-rate" : 115200,

0 commit comments

Comments
 (0)