Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
bump Zephyr to tip of main (post 3.2.0-rc2)
Browse files Browse the repository at this point in the history
Newest Zephyr has fixes for:
 * `esp32` platform running `samples/dfu/`,
 * `mimxrt1060_evkb` platform running `samples/settings/`,

`esp32` platform requires now to enable `wifi` node in DT in order to start
using WiFi driver. This WiFi driver is now enabled by default when
mentioned node has status "okay".

CONFIG_ESP32_WIFI_{SSID,PSK} options exist, but they are not used by Zephyr
anymore. This means that configuring them (indirectly by
CONFIG_GOLIOTH_SAMPLE_WIFI_{SSID,PSK}) is no longer resulting in automatic
connection attempt to Access Point. However, ESP32 WiFi driver supports now
Zephyr WiFi MGMT APIs, which allows to utilize CONFIG_GOLIOTH_SAMPLE_WIFI
and `net_connect()` function which is called from within every sample. This
makes `esp32` WiFi setup work similar as `nrf52840dk_nrf52840`, which is
obviously a positive thing (code deduplication).

As newest Zephyr require SDK 0.15.0, it is now time to bump Docker CI
images. Use the same Docker CI image as Zephyr is using now, which is
0.24.2.

For NCS twister build time tests, use 0.23.3 for now, so that newest
GCC (contained in SDK 0.15.0) will not trigger build time errors from
warnings treated as errors (which is the default twister behavior). An
alternative would be to disable warnings as errors for NCS builds, but that
could potentially introduce build time warnings unrelated to GCC change in
subsequent commits.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
  • Loading branch information
mniestroj committed Sep 20, 2022
1 parent 006b014 commit d986092
Show file tree
Hide file tree
Showing 41 changed files with 91 additions and 192 deletions.
4 changes: 2 additions & 2 deletions .github/disabled_workflows/test_mimxrt1060.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

container:
image: zephyrprojectrtos/ci:v0.23.3
image: zephyrprojectrtos/ci:v0.24.2

env:
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.14.2
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.15.0

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/disabled_workflows/test_nrf9160dk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest

container:
image: zephyrprojectrtos/ci:v0.23.3
image: zephyrprojectrtos/ci:v0.24.2

env:
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.14.2
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.15.0

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

container:
image: zephyrprojectrtos/ci:v0.23.3
image: zephyrprojectrtos/ci:v0.24.2

env:
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.14.2
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.15.0

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checkpatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: zephyrprojectrtos/ci:v0.23.3
image: zephyrprojectrtos/ci:v0.24.2

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_nrf52840dk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest

container:
image: zephyrprojectrtos/ci:v0.23.3
image: zephyrprojectrtos/ci:v0.24.2

env:
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.14.2
ZEPHYR_SDK_INSTALL_DIR: /opt/toolchains/zephyr-sdk-0.15.0

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: zephyrprojectrtos/ci:v0.23.3
image: zephyrprojectrtos/ci:v0.24.2

variables:
WEST_MANIFEST: west-zephyr.yml
Expand Down Expand Up @@ -139,7 +139,7 @@ twister:
twister-esp:
extends: .twister
script:
- west espressif update
- west blobs fetch hal_espressif
- >
zephyr/scripts/twister
-p esp32
Expand All @@ -148,6 +148,7 @@ twister-esp:
twister-ncs:
extends: .twister
image: zephyrprojectrtos/ci:v0.23.3
variables:
WEST_MANIFEST: west-ncs.yml
script:
Expand Down
4 changes: 2 additions & 2 deletions samples/common/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ config GOLIOTH_SAMPLE_WIFI_SETTINGS
Load WiFi SSID and PSK from settings subsystem, from 'wifi/ssid' and
'wifi/psk' entries.

if (GOLIOTH_SAMPLE_WIFI && !GOLIOTH_SAMPLE_WIFI_SETTINGS) || WIFI_ESP32
if GOLIOTH_SAMPLE_WIFI && !GOLIOTH_SAMPLE_WIFI_SETTINGS

config GOLIOTH_SAMPLE_WIFI_SSID
string "WiFi SSID"
Expand All @@ -64,6 +64,6 @@ config GOLIOTH_SAMPLE_WIFI_PSK
WiFi PSK used when connecting to WiFi AP. Leave empty if connecting to
unsecure (open) AP.

endif # (GOLIOTH_SAMPLE_WIFI && !GOLIOTH_SAMPLE_WIFI_SETTINGS) || WIFI_ESP32
endif # GOLIOTH_SAMPLE_WIFI && !GOLIOTH_SAMPLE_WIFI_SETTINGS

endif # GOLIOTH_SAMPLES_COMMON
10 changes: 0 additions & 10 deletions samples/dfu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@

mainmenu "Golioth application options"

if WIFI_ESP32

config ESP32_WIFI_SSID
default GOLIOTH_SAMPLE_WIFI_SSID

config ESP32_WIFI_PASSWORD
default GOLIOTH_SAMPLE_WIFI_PSK

endif # WIFI_ESP32

if DNS_RESOLVER

config DNS_SERVER_IP_ADDRESSES
Expand Down
4 changes: 2 additions & 2 deletions samples/dfu/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ by adding these lines to configuration file (e.g. ``prj.conf`` or

.. code-block:: cfg
CONFIG_ESP32_WIFI_SSID="my-wifi"
CONFIG_ESP32_WIFI_PSK="my-psk"
CONFIG_GOLIOTH_SAMPLE_WIFI_SSID="my-wifi"
CONFIG_GOLIOTH_SAMPLE_WIFI_PSK="my-psk"
On your host computer open a terminal window, locate the source code of this
sample application (i.e., ``samples/dfu``) and type:
Expand Down
10 changes: 4 additions & 6 deletions samples/dfu/boards/esp32.conf
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP32=y
CONFIG_HEAP_MEM_POOL_SIZE=98304

CONFIG_NET_L2_ETHERNET=y

CONFIG_NET_DHCPV4=y

CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y

CONFIG_MBEDTLS_ENTROPY_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_ECP_ALL_ENABLED=y

CONFIG_ESP32_WIFI_STA_AUTO=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y

CONFIG_NET_L2_WIFI_SHELL=y
CONFIG_GOLIOTH_SAMPLE_WIFI=y

# Do not sign image by default, as that rebuild and overwrites signed image
# after it was signed manually (which is what README.rst tells to do).
Expand Down
3 changes: 3 additions & 0 deletions samples/dfu/boards/esp32.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&wifi {
status = "okay";
};
10 changes: 0 additions & 10 deletions samples/hello/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@

mainmenu "Golioth application options"

if WIFI_ESP32

config ESP32_WIFI_SSID
default GOLIOTH_SAMPLE_WIFI_SSID

config ESP32_WIFI_PASSWORD
default GOLIOTH_SAMPLE_WIFI_PSK

endif # WIFI_ESP32

if DNS_RESOLVER

config DNS_SERVER_IP_ADDRESSES
Expand Down
10 changes: 4 additions & 6 deletions samples/hello/boards/esp32.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP32=y
CONFIG_HEAP_MEM_POOL_SIZE=98304

CONFIG_NET_L2_ETHERNET=y

CONFIG_NET_DHCPV4=y

CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y

CONFIG_MBEDTLS_ENTROPY_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_ECP_ALL_ENABLED=y

CONFIG_ESP32_WIFI_STA_AUTO=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y

CONFIG_NET_L2_WIFI_SHELL=y
CONFIG_GOLIOTH_SAMPLE_WIFI=y
10 changes: 0 additions & 10 deletions samples/hello_sporadic/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,4 @@

mainmenu "Golioth application options"

if WIFI_ESP32

config ESP32_WIFI_SSID
default GOLIOTH_SAMPLE_WIFI_SSID

config ESP32_WIFI_PASSWORD
default GOLIOTH_SAMPLE_WIFI_PSK

endif # WIFI_ESP32

source "Kconfig.zephyr"
10 changes: 4 additions & 6 deletions samples/hello_sporadic/boards/esp32.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP32=y
CONFIG_HEAP_MEM_POOL_SIZE=98304

CONFIG_NET_L2_ETHERNET=y

CONFIG_NET_DHCPV4=y

CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y

CONFIG_MBEDTLS_ENTROPY_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_ECP_ALL_ENABLED=y

CONFIG_ESP32_WIFI_STA_AUTO=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y

CONFIG_NET_L2_WIFI_SHELL=y
CONFIG_GOLIOTH_SAMPLE_WIFI=y
3 changes: 3 additions & 0 deletions samples/hello_sporadic/boards/esp32.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&wifi {
status = "okay";
};
10 changes: 0 additions & 10 deletions samples/lightdb/get/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@

mainmenu "Golioth application options"

if WIFI_ESP32

config ESP32_WIFI_SSID
default GOLIOTH_SAMPLE_WIFI_SSID

config ESP32_WIFI_PASSWORD
default GOLIOTH_SAMPLE_WIFI_PSK

endif # WIFI_ESP32

if DNS_RESOLVER

config DNS_SERVER_IP_ADDRESSES
Expand Down
10 changes: 4 additions & 6 deletions samples/lightdb/get/boards/esp32.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP32=y
CONFIG_HEAP_MEM_POOL_SIZE=98304

CONFIG_NET_L2_ETHERNET=y

CONFIG_NET_DHCPV4=y

CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y

CONFIG_MBEDTLS_ENTROPY_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_ECP_ALL_ENABLED=y

CONFIG_ESP32_WIFI_STA_AUTO=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y

CONFIG_NET_L2_WIFI_SHELL=y
CONFIG_GOLIOTH_SAMPLE_WIFI=y
3 changes: 3 additions & 0 deletions samples/lightdb/get/boards/esp32.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&wifi {
status = "okay";
};
10 changes: 0 additions & 10 deletions samples/lightdb/observe/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@

mainmenu "Golioth application options"

if WIFI_ESP32

config ESP32_WIFI_SSID
default GOLIOTH_SAMPLE_WIFI_SSID

config ESP32_WIFI_PASSWORD
default GOLIOTH_SAMPLE_WIFI_PSK

endif # WIFI_ESP32

if DNS_RESOLVER

config DNS_SERVER_IP_ADDRESSES
Expand Down
10 changes: 4 additions & 6 deletions samples/lightdb/observe/boards/esp32.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP32=y
CONFIG_HEAP_MEM_POOL_SIZE=98304

CONFIG_NET_L2_ETHERNET=y

CONFIG_NET_DHCPV4=y

CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y

CONFIG_MBEDTLS_ENTROPY_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_ECP_ALL_ENABLED=y

CONFIG_ESP32_WIFI_STA_AUTO=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y

CONFIG_NET_L2_WIFI_SHELL=y
CONFIG_GOLIOTH_SAMPLE_WIFI=y
3 changes: 3 additions & 0 deletions samples/lightdb/observe/boards/esp32.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&wifi {
status = "okay";
};
10 changes: 0 additions & 10 deletions samples/lightdb/set/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@

mainmenu "Golioth application options"

if WIFI_ESP32

config ESP32_WIFI_SSID
default GOLIOTH_SAMPLE_WIFI_SSID

config ESP32_WIFI_PASSWORD
default GOLIOTH_SAMPLE_WIFI_PSK

endif # WIFI_ESP32

if DNS_RESOLVER

config DNS_SERVER_IP_ADDRESSES
Expand Down
10 changes: 4 additions & 6 deletions samples/lightdb/set/boards/esp32.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
CONFIG_WIFI=y
CONFIG_WIFI_ESP32=y
CONFIG_HEAP_MEM_POOL_SIZE=98304

CONFIG_NET_L2_ETHERNET=y

CONFIG_NET_DHCPV4=y

CONFIG_NET_CONFIG_LOG_LEVEL_DBG=y
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y

CONFIG_MBEDTLS_ENTROPY_ENABLED=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED=y
CONFIG_MBEDTLS_ECP_ALL_ENABLED=y

CONFIG_ESP32_WIFI_STA_AUTO=y
CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y

CONFIG_NET_L2_WIFI_SHELL=y
CONFIG_GOLIOTH_SAMPLE_WIFI=y
3 changes: 3 additions & 0 deletions samples/lightdb/set/boards/esp32.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
&wifi {
status = "okay";
};
10 changes: 0 additions & 10 deletions samples/lightdb_led/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@

mainmenu "Golioth application options"

if WIFI_ESP32

config ESP32_WIFI_SSID
default GOLIOTH_SAMPLE_WIFI_SSID

config ESP32_WIFI_PASSWORD
default GOLIOTH_SAMPLE_WIFI_PSK

endif # WIFI_ESP32

if DNS_RESOLVER

config DNS_SERVER_IP_ADDRESSES
Expand Down
Loading

0 comments on commit d986092

Please sign in to comment.