|
94 | 94 | $(error "The following non-existing features are listed in FEATURES_OPTIONAL: $(FEATURES_NONEXISTING)") |
95 | 95 | endif |
96 | 96 |
|
97 | | - # Warn about telnet |
98 | | - ifneq (,$(filter auto_init_telnet,$(USEMODULE))) |
99 | | - ifneq (1,$(I_UNDERSTAND_THAT_TELNET_IS_INSECURE)) |
100 | | - $(shell $(COLOR_ECHO) "$(COLOR_RED)Telnet will be started automatically, "\ |
101 | | - "make sure you understand why this almost certainly "\ |
102 | | - "is a REALLY BAD idea before proceeding!$(COLOR_RESET)" 1>&2) |
103 | | - $(error I_UNDERSTAND_THAT_TELNET_IS_INSECURE must be set to 1 to proceed) |
104 | | - else |
105 | | - $(shell $(COLOR_ECHO) "$(COLOR_YELLOW)Telnet will be started automatically,"\ |
106 | | - "don't run this on public networks!$(COLOR_RESET)" 1>&2) |
| 97 | + # Don't show warnings for info targets |
| 98 | + ifeq (,$(filter info-%,$(MAKECMDGOALS))) |
| 99 | + # Warn about telnet |
| 100 | + ifneq (,$(filter auto_init_telnet,$(USEMODULE))) |
| 101 | + ifneq (1,$(I_UNDERSTAND_THAT_TELNET_IS_INSECURE)) |
| 102 | + $(shell $(COLOR_ECHO) "$(COLOR_RED)Telnet will be started automatically, "\ |
| 103 | + "make sure you understand why this almost certainly "\ |
| 104 | + "is a REALLY BAD idea before proceeding!$(COLOR_RESET)" 1>&2) |
| 105 | + $(error I_UNDERSTAND_THAT_TELNET_IS_INSECURE must be set to 1 to proceed) |
| 106 | + else |
| 107 | + $(shell $(COLOR_ECHO) "$(COLOR_YELLOW)Telnet will be started automatically,"\ |
| 108 | + "don't run this on public networks!$(COLOR_RESET)" 1>&2) |
| 109 | + endif |
107 | 110 | endif |
108 | | - endif |
109 | 111 |
|
110 | | - # Warn about STDIO UDP |
111 | | - ifneq (,$(filter stdio_udp,$(USEMODULE))) |
112 | | - ifneq (1,$(I_UNDERSTAND_THAT_STDIO_UDP_IS_INSECURE)) |
113 | | - $(shell $(COLOR_ECHO) "$(COLOR_RED)stdio via UDP will be started automatically,"\ |
114 | | - "make sure you understand why this almost certainly"\ |
115 | | - "is a REALLY BAD idea before proceeding!$(COLOR_RESET)" 1>&2) |
116 | | - $(error I_UNDERSTAND_THAT_STDIO_UDP_IS_INSECURE must be set to 1 to proceed) |
117 | | - else |
118 | | - $(shell $(COLOR_ECHO) "$(COLOR_YELLOW)stdio via UDP will be started automatically,"\ |
119 | | - "don't run this on public networks!$(COLOR_RESET)" 1>&2) |
| 112 | + # Warn about STDIO UDP |
| 113 | + ifneq (,$(filter stdio_udp,$(USEMODULE))) |
| 114 | + ifneq (1,$(I_UNDERSTAND_THAT_STDIO_UDP_IS_INSECURE)) |
| 115 | + $(shell $(COLOR_ECHO) "$(COLOR_RED)stdio via UDP will be started automatically,"\ |
| 116 | + "make sure you understand why this almost certainly"\ |
| 117 | + "is a REALLY BAD idea before proceeding!$(COLOR_RESET)" 1>&2) |
| 118 | + $(error I_UNDERSTAND_THAT_STDIO_UDP_IS_INSECURE must be set to 1 to proceed) |
| 119 | + else |
| 120 | + $(shell $(COLOR_ECHO) "$(COLOR_YELLOW)stdio via UDP will be started automatically,"\ |
| 121 | + "don't run this on public networks!$(COLOR_RESET)" 1>&2) |
| 122 | + endif |
120 | 123 | endif |
121 | | - endif |
122 | 124 |
|
123 | | - # Warn about PSA Crypto |
124 | | - ifneq (,$(filter psa_crypto,$(USEMODULE))) |
125 | | - $(shell $(COLOR_ECHO) "$(COLOR_YELLOW) You are going to use the PSA Crypto module,"\ |
126 | | - "which is only partly implemented and not yet thouroughly tested.\n"\ |
127 | | - "Please do not use this module in production, as it may introduce"\ |
128 | | - "security issues!$(COLOR_RESET)" 1>&2) |
| 125 | + # Warn about PSA Crypto |
| 126 | + ifneq (,$(filter psa_crypto,$(USEMODULE))) |
| 127 | + $(shell $(COLOR_ECHO) "$(COLOR_YELLOW) You are going to use the PSA Crypto module,"\ |
| 128 | + "which is only partly implemented and not yet thouroughly tested.\n"\ |
| 129 | + "Please do not use this module in production, as it may introduce"\ |
| 130 | + "security issues!$(COLOR_RESET)" 1>&2) |
| 131 | + endif |
129 | 132 | endif |
130 | 133 | endif |
0 commit comments