From 3428808f83451b06b18bac312fcef82915e4a137 Mon Sep 17 00:00:00 2001 From: Patedam Date: Tue, 3 Mar 2026 00:36:01 -0500 Subject: [PATCH] Fixing various build errors. Activated minimal build --- Provider/CMakeLists.txt | 1 + Provider/main/CMakeLists.txt | 6 +++++- Provider/main/main.cpp | 1 - 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Provider/CMakeLists.txt b/Provider/CMakeLists.txt index 4354294..a502184 100644 --- a/Provider/CMakeLists.txt +++ b/Provider/CMakeLists.txt @@ -3,4 +3,5 @@ cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) +idf_build_set_property(MINIMAL_BUILD ON) project(Provider) diff --git a/Provider/main/CMakeLists.txt b/Provider/main/CMakeLists.txt index ec4d230..8e06816 100644 --- a/Provider/main/CMakeLists.txt +++ b/Provider/main/CMakeLists.txt @@ -1,5 +1,9 @@ idf_component_register(SRCS "main.cpp" - INCLUDE_DIRS ".") + # Needed as we use minimal build + PRIV_REQUIRES esp_http_server esp_eth + esp_wifi nvs_flash esp_netif vfs + json app_update esp_timer + INCLUDE_DIRS ".") if(CONFIG_CALENDINK_DEPLOY_WEB_PAGES) set(WEB_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../frontend") diff --git a/Provider/main/main.cpp b/Provider/main/main.cpp index 42fee23..3ceb6d9 100644 --- a/Provider/main/main.cpp +++ b/Provider/main/main.cpp @@ -2,7 +2,6 @@ #include // SDK -#include "driver/gpio.h" #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h"