From ee4519d23822d3b1db4e278e03bed55e0bc4fac8 Mon Sep 17 00:00:00 2001 From: srningap <107042150+srningap@users.noreply.github.com> Date: Fri, 21 Apr 2023 18:22:28 +0530 Subject: [PATCH] [Silabs] WiFi- Addressed build failures with wiseMCU package v1.0.1.4 (#26161) * Adds declarations for 917SoC which causing the build failure with 1.0.1.4 WisemcuSDK * removed a macro redefinition * adding warnings flags back, which removed for 1.0.18 package --- examples/platform/silabs/SiWx917/LEDWidget.h | 4 +++- third_party/silabs/SiWx917_sdk.gni | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/platform/silabs/SiWx917/LEDWidget.h b/examples/platform/silabs/SiWx917/LEDWidget.h index f033cb26c50f64..596f64af094d7a 100644 --- a/examples/platform/silabs/SiWx917/LEDWidget.h +++ b/examples/platform/silabs/SiWx917/LEDWidget.h @@ -19,9 +19,11 @@ #pragma once -#include "rsi_board.h" #include +extern "C" void RSI_Board_LED_Set(int, int); +extern "C" void RSI_Board_LED_Toggle(int); + class LEDWidget { public: diff --git a/third_party/silabs/SiWx917_sdk.gni b/third_party/silabs/SiWx917_sdk.gni index 22a24c9fa69215..75d776b720b8fe 100644 --- a/third_party/silabs/SiWx917_sdk.gni +++ b/third_party/silabs/SiWx917_sdk.gni @@ -128,7 +128,6 @@ template("siwx917_sdk") { "LWIP_ICMP=1", "LWIP_IGMP=1", "LWIP_DHCP=1", - "LWIP_DNS=0", ] } else { defines += [ "LWIP_IPV4=0" ] @@ -181,7 +180,14 @@ template("siwx917_sdk") { cflags += [ "-Wno-maybe-uninitialized", "-Wno-shadow", + "-Wno-empty-body", + "-Wno-cpp", + "-Wno-missing-braces", + "-Wno-sign-compare", "-Wno-error", + "-Wno-unknown-warning-option", + "-Wno-unused-variable", + "-Wno-unused-function", ] if (defined(invoker.defines)) {