Skip to content

Commit 262a2e1

Browse files
authored
Merge pull request wolfSSL#10662 from Frauschi/zephyr_4_4_fixes
Fixes for Zephyr 4.4
2 parents e032486 + c73afe6 commit 262a2e1

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/scripts/zephyr-4.x/zephyr-test.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ select_docker_image() {
7070
local minor="${ver#*.}"
7171
minor="${minor%%.*}"
7272

73-
if [[ "$major" -ge 4 && "$minor" -ge 2 ]]; then
74-
# Zephyr 4.2+ needs SDK 0.17.x (v0.28.7 image)
75-
echo "${GHCR}:v0.28.7"
73+
if [[ "$major" -ge 4 && "$minor" -ge 4 ]]; then
74+
# Zephyr 4.4+ needs SDK 1.x (v0.29.2 image)
75+
echo "${GHCR}:v0.29.2"
76+
elif [[ "$major" -ge 4 && "$minor" -ge 2 ]]; then
77+
# Zephyr 4.2+ needs SDK 0.17.x (v0.28.8 image)
78+
echo "${GHCR}:v0.28.8"
7679
elif [[ "$major" -ge 4 ]]; then
7780
# Zephyr 4.0-4.1 needs SDK 0.17.0 (v0.27.4 image; v0.26.18/v0.28.7 picolibc is incompatible)
7881
echo "${GHCR}:v0.27.4"

.github/workflows/zephyr-4.x.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
zephyr-ref: [ v4.1.0, v4.3.0 ]
25+
zephyr-ref: [ v4.1.0, v4.3.0, v4.4.0 ]
2626
board: [ native_sim, frdm_rw612/rw612 ]
2727
sample: [ wolfssl_tls_sock, wolfssl_test, wolfssl_benchmark ]
2828
extra-conf: [ '', external_libc.conf ]

wolfssl/test.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@
203203
#include <zephyr/posix/netdb.h>
204204
#include <zephyr/posix/sys/socket.h>
205205
#include <zephyr/posix/sys/select.h>
206+
#include <zephyr/posix/arpa/inet.h>
206207
#endif
207208
#else
208209
#include <net/socket.h>

wolfssl/wolfio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
#endif
192192
#if KERNEL_VERSION_NUMBER >= 0x30100
193193
#include <zephyr/net/socket.h>
194-
#ifdef CONFIG_POSIX_API
194+
#if defined(CONFIG_POSIX_API) && KERNEL_VERSION_NUMBER < 0x40400
195195
#include <zephyr/posix/sys/socket.h>
196196
#endif
197197
#else

zephyr/samples/wolfssl_tls_sock/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
CONFIG_MAIN_STACK_SIZE=16384
33
CONFIG_ENTROPY_GENERATOR=y
44
CONFIG_INIT_STACKS=y
5-
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=8192
5+
CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=131072
66

77
# Networking config
88
CONFIG_NETWORKING=y

0 commit comments

Comments
 (0)