Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make examples/storage/littlefs support for ESP-IDF versions below 5.2 (IDFGH-11806) #12901

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion examples/storage/littlefs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.16)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)

idf_build_get_property(IDF_MAJOR IDF_VERSION_MAJOR)
idf_build_get_property(IDF_MINOR IDF_VERSION_MINOR)
idf_build_get_property(IDF_PATCH IDF_VERSION_PATCH)
set(IDF_RELEASE_VERSION "${IDF_MAJOR}.${IDF_MINOR}.${IDF_PATCH}")

if(IDF_RELEASE_VERSION VERSION_LESS "5.2")
# "Add partition sub-type `littlefs` (0x83) for ESP-IDF versions below 5.2"
idf_build_set_property(EXTRA_PARTITION_SUBTYPES "data, littlefs, 0x83" APPEND)
endif()

project(littlefs_example)
4 changes: 2 additions & 2 deletions examples/storage/littlefs/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## IDF Component Manager Manifest File
dependencies:
joltwallet/littlefs: "==1.5.5"
joltwallet/littlefs: "==1.12.1"
## Required IDF version
idf:
version: ">=5.2.0"
version: ">=5.0.0"