Nit - LFS include path

This commit is contained in:
cpq committed 2026-09-28 16:50:50 +01:00
1 parent 883e0a981f
commit 8e0c765c2c
4 files changed
+6 -7

No files matched your search

+2 -2
View File
@@ -1987,7 +1987,7 @@ extern const struct mg_mem_file mg_packed_files[];
#if MG_ENABLE_LFS #if MG_ENABLE_LFS
#include <fcntl.h> #include <fcntl.h>
#include <littlefs/lfs.h> #include <lfs.h>
#ifndef DT_DIR #ifndef DT_DIR
#define DT_DIR 4 #define DT_DIR 4
@@ -2001,7 +2001,7 @@ struct dirent {
unsigned char d_type; unsigned char d_type;
}; };
typedef struct mg_lfs_fd DIR; typedef struct mg_lfs_fd DIR;
#endif #endif
+2 -2
View File
@@ -2,7 +2,7 @@
#if MG_ENABLE_LFS #if MG_ENABLE_LFS
#include <fcntl.h> #include <fcntl.h>
#include <littlefs/lfs.h> #include <lfs.h>
#ifndef DT_DIR #ifndef DT_DIR
#define DT_DIR 4 #define DT_DIR 4
@@ -16,5 +16,5 @@ struct dirent {
unsigned char d_type; unsigned char d_type;
}; };
typedef struct mg_lfs_fd DIR; typedef struct mg_lfs_fd DIR;
#endif #endif
@@ -59,14 +59,13 @@ target_sources(${CMAKE_PROJECT_NAME} PRIVATE
${CMAKE_SOURCE_DIR}/littlefs/lfs.c ${CMAKE_SOURCE_DIR}/littlefs/lfs.c
${CMAKE_SOURCE_DIR}/littlefs/lfs_util.c ${CMAKE_SOURCE_DIR}/littlefs/lfs_util.c
# ${CMAKE_SOURCE_DIR}/littlefs/retarget_lfs.c
) )
# Add include paths # Add include paths
target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE target_include_directories(${CMAKE_PROJECT_NAME} PRIVATE
# Add user defined include paths # Add user defined include paths
${CMAKE_SOURCE_DIR}/mongoose/ ${CMAKE_SOURCE_DIR}/mongoose/
${CMAKE_SOURCE_DIR}/ ${CMAKE_SOURCE_DIR}/littlefs/
${CMAKE_SOURCE_DIR}/../../../.. ${CMAKE_SOURCE_DIR}/../../../..
) )
@@ -6,7 +6,7 @@ MGDIR = ../../../..
CFLAGS = -W -Wall -Wextra -Wundef -Wshadow -Wdouble-promotion CFLAGS = -W -Wall -Wextra -Wundef -Wshadow -Wdouble-promotion
CFLAGS += -Wformat-truncation -fno-common -Wconversion -Wno-sign-conversion CFLAGS += -Wformat-truncation -fno-common -Wconversion -Wno-sign-conversion
CFLAGS += -g3 -Os -ffunction-sections -fdata-sections CFLAGS += -g3 -Os -ffunction-sections -fdata-sections
CFLAGS += -I. -I$(MGDIR) -Icmsis_core/CMSIS/Core/Include -Icmsis_h5/Include -Imongoose CFLAGS += -I. -I$(MGDIR) -Icmsis_core/CMSIS/Core/Include -Icmsis_h5/Include -Imongoose -Ilittlefs
CFLAGS += -mcpu=cortex-m33 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard $(CFLAGS_EXTRA) CFLAGS += -mcpu=cortex-m33 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard $(CFLAGS_EXTRA)
LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nosys.specs -lc -lgcc -Wl,--gc-sections -Wl,-Map=$@.map LDFLAGS ?= -Tlink.ld -nostdlib -nostartfiles --specs nosys.specs -lc -lgcc -Wl,--gc-sections -Wl,-Map=$@.map