Skip to content

Commit 36b30a8

Browse files
committed
[Build] Make sure SDFS and LittleFS are not linked in the build
See: esp8266/Arduino#8483
1 parent 779ae24 commit 36b30a8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

platformio_core_defs.ini

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ build_flags = -DNDEBUG
5050
-DPUYA_SUPPORT=1
5151
-DCORE_POST_2_5_0
5252
-fno-strict-aliasing
53+
-DFS_NO_GLOBALS
5354
lib_ignore = ${esp82xx_defaults.lib_ignore}
5455

5556
[esp82xx_2_6_x]

src/ESPEasy_common.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ namespace std
6666
#include "src/Globals/RamTracker.h"
6767

6868

69-
#define FS_NO_GLOBALS
69+
#ifndef FS_NO_GLOBALS
70+
#define FS_NO_GLOBALS
71+
#endif
7072
#if defined(ESP8266)
7173

7274
#ifndef CORE_POST_3_0_0

src/src/Helpers/FS_Helper.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// Macro used to make file system operations a bit more readable.
99
#define SPIFFS_CHECK(result, fname) if (!(result)) { return(FileError(__LINE__, fname)); }
1010

11-
#define FS_NO_GLOBALS
11+
#ifndef FS_NO_GLOBALS
12+
#define FS_NO_GLOBALS
13+
#endif
1214
#if defined(ESP8266)
1315
extern "C" {
1416
#include <spi_flash.h>

0 commit comments

Comments
 (0)