-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #354 from adafruit/upgrade-idf-v5.1
Upgrade idf v5.1
- Loading branch information
Showing
259 changed files
with
2,961 additions
and
2,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# See: https://github.com/codespell-project/codespell#using-a-config-file | ||
[codespell] | ||
# In the event of a false positive, add the problematic word, in all lowercase, to 'ignore-words.txt' (one word per line). | ||
# Or copy & paste the whole problematic line to 'exclude-file.txt' | ||
ignore-words = tools/codespell/ignore-words.txt | ||
exclude-file = tools/codespell/exclude-file.txt | ||
check-filenames = | ||
check-hidden = | ||
count = | ||
skip = .git,./lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: pre-commit | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# SPDX-FileCopyrightText: 2020 Diego Elio Pettenò | ||
# | ||
# SPDX-License-Identifier: Unlicense | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
exclude: | | ||
(?x)^( | ||
lib/| | ||
ports/espressif/components/bootloader/subproject/components | ||
) | ||
- id: end-of-file-fixer | ||
exclude: | | ||
(?x)^( | ||
lib/| | ||
.idea/ | ||
) | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
args: [-w] | ||
exclude: | | ||
(?x)^( | ||
lib/ | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule esp-idf
deleted from
bbe2a1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
# The following five 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) | ||
|
||
# Check for -DBOARD= | ||
if(NOT (DEFINED BOARD AND EXISTS "${CMAKE_SOURCE_DIR}/../../boards/${BOARD}/board.h") ) | ||
file(GLOB BOARD_LIST RELATIVE ${CMAKE_SOURCE_DIR}/../../boards "boards/*/board.h") | ||
|
||
message("Please specify `-DBOARD=` with one of supported boards") | ||
foreach(board IN LISTS BOARD_LIST) | ||
string(REPLACE "/board.h" "" board ${board}) | ||
message("- ${board}") | ||
endforeach() | ||
|
||
message(FATAL_ERROR "Invalid BOARD specified") | ||
endif() | ||
|
||
include(${CMAKE_SOURCE_DIR}/../../boards/${BOARD}/board.cmake) | ||
|
||
# TOP is absolute path to root directory | ||
set(TOP "../../../..") | ||
get_filename_component(TOP "${TOP}" REALPATH) | ||
|
||
set(EXTRA_COMPONENT_DIRS "${TOP}/apps/self_update" "../../boards" "../../components") | ||
|
||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
|
||
add_compile_definitions(TINYUF2_SELF_UPDATE) | ||
|
||
project(update-tinyuf2) | ||
# The following five 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.17) | ||
|
||
include(${CMAKE_CURRENT_LIST_DIR}/../../../family_support.cmake) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../boards/${BOARD}/board.cmake) | ||
|
||
# Must be set before including IDF project.cmake | ||
set(EXTRA_COMPONENT_DIRS "../../boards" "../../components") | ||
|
||
set(SELFUPDATE_BUILD 1) | ||
include($ENV{IDF_PATH}/tools/cmake/project.cmake) | ||
|
||
add_compile_definitions(TINYUF2_SELF_UPDATE) | ||
|
||
project(update-tinyuf2) | ||
|
||
add_custom_command(TARGET app POST_BUILD | ||
COMMAND ${Python_EXECUTABLE} ${UF2CONV_PY} -f ${UF2_FAMILY_ID_${IDF_TARGET}} -b 0x0 -c -o ${CMAKE_BINARY_DIR}/update-tinyuf2.uf2 ${CMAKE_BINARY_DIR}/update-tinyuf2.bin | ||
VERBATIM | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Note: bootloader_bin.c is generated by tinyuf2 app target | ||
idf_component_register(SRCS ${TOP}/apps/self_update/self_update.c bootloader_bin.c | ||
INCLUDE_DIRS ${TOP}/src | ||
REQUIRES boards) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
CONFIG_IDF_CMAKE=y | ||
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y | ||
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y | ||
# Compiler options | ||
CONFIG_COMPILER_OPTIMIZATION_SIZE=y | ||
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y | ||
# Newlib | ||
CONFIG_NEWLIB_NANO_FORMAT=y | ||
# Virtual file system | ||
CONFIG_VFS_SUPPORT_IO=n | ||
# Compatibility options | ||
CONFIG_FLASHMODE_QIO=y | ||
CONFIG_IDF_CMAKE=y | ||
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y | ||
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y | ||
|
||
# Compiler options | ||
CONFIG_COMPILER_OPTIMIZATION_SIZE=y | ||
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y | ||
|
||
# Newlib | ||
CONFIG_NEWLIB_NANO_FORMAT=y | ||
|
||
# Virtual file system | ||
CONFIG_VFS_SUPPORT_IO=n | ||
|
||
# Compatibility options | ||
CONFIG_FLASHMODE_QIO=y |
Oops, something went wrong.