Browse Source

Merge pull request #105 from joltwallet/new-idf

Add release-v5.0 to CI
Brian Pugh 1 year ago
parent
commit
f2a949fbb3
6 changed files with 11 additions and 6 deletions
  1. 1 1
      .bumpversion.cfg
  2. 1 0
      .github/workflows/pr.yml
  3. 5 1
      CMakeLists.txt
  4. 1 1
      README.md
  5. 1 1
      idf_component.yml
  6. 2 2
      include/esp_littlefs.h

+ 1 - 1
.bumpversion.cfg

@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 1.5.0
+current_version = 1.5.1
 commit = True
 tag = True
 

+ 1 - 0
.github/workflows/pr.yml

@@ -23,6 +23,7 @@ jobs:
             "release-v4.2",
             "release-v4.3",
             "release-v4.4",
+            "release-v5.0",
             "latest",
           ]
         idf_target: ["esp32"]

+ 5 - 1
CMakeLists.txt

@@ -3,11 +3,15 @@ cmake_minimum_required(VERSION 3.10)
 file(GLOB SOURCES src/littlefs/*.c)
 list(APPEND SOURCES src/esp_littlefs.c src/littlefs_api.c src/lfs_config.c)
 
+if(IDF_VERSION_MAJOR GREATER_EQUAL 5)
+    list(APPEND pr esp_partition)
+endif()
+
 idf_component_register(
     SRCS ${SOURCES}
     INCLUDE_DIRS include
     PRIV_INCLUDE_DIRS src
-    PRIV_REQUIRES esptool_py spi_flash vfs
+    PRIV_REQUIRES ${pr} esptool_py spi_flash vfs
 )
 
 set_source_files_properties(

+ 1 - 1
README.md

@@ -13,7 +13,7 @@ There are two ways to add this component to your project
 1. As a ESP-IDF managed component: In your project directory run
 
 ```
-idf.py add-dependency joltwallet/littlefs==1.5.0
+idf.py add-dependency joltwallet/littlefs==1.5.1
 ```
 
 2. As a submodule: In your project, add this as a submodule to your `components/` directory.

+ 1 - 1
idf_component.yml

@@ -1,4 +1,4 @@
-version: "1.5.0"
+version: "1.5.1"
 description: LittleFS is a small fail-safe filesystem for micro-controllers.
 url: https://github.com/joltwallet/esp_littlefs
 dependencies:

+ 2 - 2
include/esp_littlefs.h

@@ -8,10 +8,10 @@
 extern "C" {
 #endif
 
-#define ESP_LITTLEFS_VERSION_NUMBER "1.5.0"
+#define ESP_LITTLEFS_VERSION_NUMBER "1.5.1"
 #define ESP_LITTLEFS_VERSION_MAJOR 1
 #define ESP_LITTLEFS_VERSION_MINOR 5
-#define ESP_LITTLEFS_VERSION_PATCH 0
+#define ESP_LITTLEFS_VERSION_PATCH 1
 
 /**
  *Configuration structure for esp_vfs_littlefs_register.