From 062d82d01135fdc23d60f895735efb7543f6bbe4 Mon Sep 17 00:00:00 2001 From: Tommi Kangas Date: Thu, 31 Oct 2024 09:35:35 +0200 Subject: [PATCH] ext: curl: fix compilation with nRF92 Fixed compilation with nRF92. Signed-off-by: Tommi Kangas --- ext/curl/lib/url.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/curl/lib/url.h b/ext/curl/lib/url.h index a701406c3538..db99865db387 100644 --- a/ext/curl/lib/url.h +++ b/ext/curl/lib/url.h @@ -43,7 +43,11 @@ #if defined(CONFIG_NRF_CURL_INTEGRATION) /* In embedded this needs to be a lot of smaller */ #define UPLOADBUFFER_DEFAULT (708) +#if defined(CONFIG_SOC_SERIES_NRF92X) +#define UPLOADBUFFER_MAX (DT_REG_ADDR(DT_NODELABEL(cpuapp_cpucell_ipc_shm_heap))) +#else #define UPLOADBUFFER_MAX (CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE) +#endif #define UPLOADBUFFER_MIN (CURL_MAX_WRITE_SIZE) #else #define UPLOADBUFFER_DEFAULT 65536