mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-27 20:48:29 +00:00
Restore logging, make WiFi creds settable from make
This commit is contained in:
1 parent
a9a94a6904
commit
b68da1548b
11 files changed
+74
-4
No files matched your search
@@ -16,3 +16,12 @@ pico_enable_stdio_usb(firmware 1) # Route stdio to USB
|
||||
|
||||
# Prevent extreme optimization from breaking OTA
|
||||
target_compile_options(firmware PRIVATE -fno-tree-loop-distribute-patterns)
|
||||
|
||||
# Wi-Fi credentials from the environment, e.g. make WIFI_NAME=... WIFI_PASS=...
|
||||
# Read when build/ is configured: run "make clean" after changing them
|
||||
if (DEFINED ENV{WIFI_NAME})
|
||||
target_compile_definitions(firmware PRIVATE "WIFI_SSID=\"$ENV{WIFI_NAME}\"")
|
||||
endif()
|
||||
if (DEFINED ENV{WIFI_PASS})
|
||||
target_compile_definitions(firmware PRIVATE "WIFI_PASS=\"$ENV{WIFI_PASS}\"")
|
||||
endif()
|
||||
Reference in new issue
Block a user