Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: build_all.sh
- Revision:
- 132:aaca1dbbd021
- Parent:
- 120:1f3dd60107dd
- Child:
- 136:6c5fb286ea4c
diff -r 0ad5711929ab -r aaca1dbbd021 build_all.sh
--- a/build_all.sh Mon Feb 12 19:00:07 2018 +0000
+++ b/build_all.sh Mon Feb 12 21:15:06 2018 +0000
@@ -3,6 +3,15 @@
set -e
TOOL=GCC_ARM
+# Hook point for your wifi SSID and password
+WIFI_SSID="ssid"
+WIFI_PASS="password"
+
+function patch_wifi {
+ sed -i -e "s/SSID/${WIFI_SSID}/g" mbed_app.json
+ sed -i -e "s/Password/${WIFI_PASS}/g" mbed_app.json
+}
+
echo Compiling with $TOOL
echo Ethernet v4
cp configs/eth_v4.json ./mbed_app.json
@@ -23,7 +32,6 @@
echo Ethernet v6
cp configs/eth_v6.json ./mbed_app.json
cp configs/eth-wifi-mbedignore ./.mbedignore
-
BOARD=K64F
mbed compile -m $BOARD -t $TOOL
cp BUILD/$BOARD/$TOOL/mbed-os-example-client.bin $BOARD-$TOOL-eth-v6.bin
@@ -41,6 +49,7 @@
cp configs/wifi_esp8266_v4.json ./mbed_app.json
cp configs/eth-wifi-mbedignore ./.mbedignore
BOARD=K64F
+patch_wifi
mbed compile -m $BOARD -t $TOOL
cp BUILD/$BOARD/$TOOL/mbed-os-example-client.bin $BOARD-$TOOL-esp-wifi-v4.bin
@@ -51,6 +60,7 @@
echo WIFI - ODIN for UBLOX_EVK_ODIN_W2
cp configs/wifi_odin_v4.json ./mbed_app.json
cp configs/eth-wifi-mbedignore ./.mbedignore
+patch_wifi
BOARD=UBLOX_EVK_ODIN_W2
mbed compile -m $BOARD -t $TOOL
cp ./BUILD/$BOARD/$TOOL/mbed-os-example-client.bin $BOARD-$TOOL-wifi-v4.bin
@@ -87,6 +97,7 @@
echo WiFi-X-Nucleo
cp configs/wifi_idw01m1_v4.json mbed_app.json
cp configs/eth-wifi-mbedignore ./.mbedignore
+patch_wifi
BOARD=NUCLEO_F401RE
mbed compile -m $BOARD -t $TOOL
cp ./BUILD/$BOARD/$TOOL/mbed-os-example-client.bin $BOARD-$TOOL-WifiXNucleo.bin
@@ -94,5 +105,6 @@
echo Realtek RTL8195AM WiFi
BOARD=REALTEK_RTL8195AM
cp configs/wifi_rtw_v4.json mbed_app.json
+patch_wifi
mbed compile -m $BOARD -t $TOOL
cp ./BUILD/$BOARD/$TOOL/mbed-os-example-client.bin $BOARD-$TOOL-Wifi.bin
Wiznet Wi-Fi WizFi310