2021-04-14 17:10:05 +02:00
|
|
|
# Copyright 2014-present PlatformIO <contact@platformio.org>
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
"""
|
|
|
|
Arduino
|
|
|
|
|
|
|
|
Arduino Wiring-based Framework allows writing cross-platform software to
|
|
|
|
control devices attached to a wide range of Arduino boards to create all
|
|
|
|
kinds of creative coding, interactive objects, spaces or physical experiences.
|
|
|
|
|
|
|
|
http://arduino.cc/en/Reference/HomePage
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
|
|
|
|
|
|
|
|
from os.path import abspath, isdir, isfile, join, basename
|
|
|
|
|
|
|
|
from SCons.Script import DefaultEnvironment
|
|
|
|
|
|
|
|
env = DefaultEnvironment()
|
|
|
|
platform = env.PioPlatform()
|
|
|
|
|
|
|
|
FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")
|
|
|
|
assert isdir(FRAMEWORK_DIR)
|
|
|
|
|
|
|
|
env.Append(
|
|
|
|
ASFLAGS=[
|
|
|
|
"-x", "assembler-with-cpp"
|
|
|
|
],
|
|
|
|
|
|
|
|
CFLAGS=[
|
|
|
|
"-march=rv32imc",
|
|
|
|
"-std=gnu99",
|
|
|
|
"-Wno-old-style-declaration"
|
|
|
|
],
|
|
|
|
|
|
|
|
CXXFLAGS=[
|
|
|
|
"-march=rv32imc",
|
|
|
|
"-std=gnu++11",
|
|
|
|
"-fno-exceptions",
|
|
|
|
"-fno-rtti"
|
|
|
|
],
|
|
|
|
|
|
|
|
CCFLAGS=[
|
|
|
|
"-ffunction-sections",
|
|
|
|
"-fdata-sections",
|
|
|
|
"-Wno-error=unused-function",
|
|
|
|
"-Wno-error=unused-variable",
|
|
|
|
"-Wno-error=deprecated-declarations",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
"-Wno-sign-compare",
|
|
|
|
"-ggdb",
|
|
|
|
"-Wno-error=format=",
|
|
|
|
"-nostartfiles",
|
|
|
|
"-Wno-format",
|
|
|
|
"-Og",
|
|
|
|
"-fstrict-volatile-bitfields",
|
|
|
|
"-Wno-error=unused-but-set-variable",
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
"-fno-jump-tables",
|
|
|
|
"-fno-tree-switch-conversion",
|
2021-04-14 17:10:05 +02:00
|
|
|
"-MMD"
|
|
|
|
],
|
|
|
|
|
|
|
|
LINKFLAGS=[
|
|
|
|
"-nostartfiles",
|
|
|
|
"-march=rv32imc",
|
|
|
|
"--specs=nosys.specs",
|
|
|
|
"-Wl,--cref",
|
|
|
|
"-Wl,--gc-sections",
|
|
|
|
"-fno-rtti",
|
|
|
|
"-fno-lto",
|
|
|
|
"-Wl,--wrap=mbedtls_mpi_exp_mod",
|
|
|
|
"-Wl,--undefined=uxTopUsedPriority",
|
2021-05-31 15:32:51 +02:00
|
|
|
"-Wl,--wrap=_Unwind_SetEnableExceptionFdeSorting",
|
|
|
|
"-Wl,--wrap=__register_frame_info_bases",
|
|
|
|
"-Wl,--wrap=__register_frame_info",
|
|
|
|
"-Wl,--wrap=__register_frame",
|
|
|
|
"-Wl,--wrap=__register_frame_info_table_bases",
|
|
|
|
"-Wl,--wrap=__register_frame_info_table",
|
|
|
|
"-Wl,--wrap=__register_frame_table",
|
|
|
|
"-Wl,--wrap=__deregister_frame_info_bases",
|
|
|
|
"-Wl,--wrap=__deregister_frame_info",
|
|
|
|
"-Wl,--wrap=_Unwind_Find_FDE",
|
|
|
|
"-Wl,--wrap=_Unwind_GetGR",
|
|
|
|
"-Wl,--wrap=_Unwind_GetCFA",
|
|
|
|
"-Wl,--wrap=_Unwind_GetIP",
|
|
|
|
"-Wl,--wrap=_Unwind_GetIPInfo",
|
|
|
|
"-Wl,--wrap=_Unwind_GetRegionStart",
|
|
|
|
"-Wl,--wrap=_Unwind_GetDataRelBase",
|
|
|
|
"-Wl,--wrap=_Unwind_GetTextRelBase",
|
|
|
|
"-Wl,--wrap=_Unwind_SetIP",
|
|
|
|
"-Wl,--wrap=_Unwind_SetGR",
|
|
|
|
"-Wl,--wrap=_Unwind_GetLanguageSpecificData",
|
|
|
|
"-Wl,--wrap=_Unwind_FindEnclosingFunction",
|
|
|
|
"-Wl,--wrap=_Unwind_Resume",
|
|
|
|
"-Wl,--wrap=_Unwind_RaiseException",
|
|
|
|
"-Wl,--wrap=_Unwind_DeleteException",
|
|
|
|
"-Wl,--wrap=_Unwind_ForcedUnwind",
|
|
|
|
"-Wl,--wrap=_Unwind_Resume_or_Rethrow",
|
|
|
|
"-Wl,--wrap=_Unwind_Backtrace",
|
|
|
|
"-Wl,--wrap=__cxa_call_unexpected",
|
|
|
|
"-Wl,--wrap=__gxx_personality_v0",
|
2021-04-14 17:10:05 +02:00
|
|
|
"-T", "esp32c3.rom.ld",
|
|
|
|
"-T", "esp32c3.rom.api.ld",
|
|
|
|
"-T", "esp32c3.rom.libgcc.ld",
|
|
|
|
"-T", "esp32c3.rom.newlib.ld",
|
|
|
|
"-T", "esp32c3.rom.version.ld",
|
|
|
|
"-T", "esp32c3_out.ld",
|
|
|
|
"-T", "esp32c3.project.ld",
|
|
|
|
"-T", "esp32c3.peripherals.ld",
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
"-u", "_Z5setupv",
|
|
|
|
"-u", "_Z4loopv",
|
2021-04-14 17:10:05 +02:00
|
|
|
"-u", "esp_app_desc",
|
|
|
|
"-u", "pthread_include_pthread_impl",
|
|
|
|
"-u", "pthread_include_pthread_cond_impl",
|
|
|
|
"-u", "pthread_include_pthread_local_storage_impl",
|
|
|
|
"-u", "start_app",
|
2021-05-31 15:32:51 +02:00
|
|
|
"-u", "__ubsan_include",
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
"-u", "__assert_func",
|
2021-04-14 17:10:05 +02:00
|
|
|
"-u", "vfs_include_syscalls_impl",
|
|
|
|
"-u", "call_user_start_cpu0",
|
|
|
|
"-u", "app_main",
|
|
|
|
"-u", "newlib_include_heap_impl",
|
|
|
|
"-u", "newlib_include_syscalls_impl",
|
|
|
|
"-u", "newlib_include_pthread_impl",
|
|
|
|
"-u", "__cxa_guard_dummy",
|
|
|
|
"-u", "__cxx_fatal_exception",
|
|
|
|
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
|
|
|
|
],
|
|
|
|
|
|
|
|
CPPPATH=[
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "config"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "newlib", "platform_include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "freertos", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "freertos", "port", "riscv", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_hw_support", "include"),
|
2021-04-17 14:28:16 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_hw_support", "include", "soc"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_hw_support", "port", "esp32c3"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_hw_support", "port", "esp32c3", "private_include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "heap", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "log", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "lwip", "include", "apps"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "lwip", "include", "apps", "sntp"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "lwip", "lwip", "src", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "lwip", "port", "esp32", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "lwip", "port", "esp32", "include", "arch"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "soc", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "soc", "esp32c3"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "soc", "esp32c3", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "hal", "esp32c3", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "hal", "include"),
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "hal", "platform_port", "include"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_rom", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_rom", "esp32c3"),
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_rom", "include", "esp32c3"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_common", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_system", "include"),
|
2021-04-17 14:28:16 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_system", "port", "soc"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_system", "port", "public_compat"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp32c3", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "driver", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "driver", "esp32c3", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_pm", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_ringbuf", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "efuse", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "efuse", "esp32c3", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "riscv", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "vfs", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_wifi", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_event", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_netif", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_eth", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "tcpip_adapter", "include"),
|
2021-06-09 12:12:47 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_phy", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_phy", "esp32c3", "include"),
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "app_trace", "include"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_timer", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "mbedtls", "port", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "mbedtls", "mbedtls", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "mbedtls", "esp_crt_bundle", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "app_update", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "spi_flash", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "bootloader_support", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_ipc", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "nvs_flash", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "pthread", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_gdbstub", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_gdbstub", "riscv"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_gdbstub", "esp32c3"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "espcoredump", "include"),
|
2021-04-17 14:28:16 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "espcoredump", "include", "port", "riscv"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "wpa_supplicant", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "wpa_supplicant", "port", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "wpa_supplicant", "include", "esp_supplicant"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "asio", "asio", "asio", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "asio", "port", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "bt", "common", "osi", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "bt", "include", "esp32c3", "include"),
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "bt", "common", "api", "include", "api"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "bt", "common", "btc", "profile", "esp", "blufi", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "bt", "common", "btc", "profile", "esp", "include"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "bt", "host", "bluedroid", "api", "include", "api"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "cbor", "port", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "unity", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "unity", "unity", "src"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "cmock", "CMock", "src"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "coap", "port", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "coap", "port", "include", "coap"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "coap", "libcoap", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "coap", "libcoap", "include", "coap2"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "console"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "nghttp", "port", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "nghttp", "nghttp2", "lib", "includes"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp-tls"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp-tls", "esp-tls-crypto"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_adc_cal", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_hid", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "tcp_transport", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_http_client", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_http_server", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_https_ota", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_https_server", "include"),
|
2021-05-31 15:32:51 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_lcd", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_lcd", "interface"),
|
2021-04-14 17:10:05 +02:00
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "protobuf-c", "protobuf-c"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "protocomm", "include", "common"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "protocomm", "include", "security"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "protocomm", "include", "transports"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "mdns", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_local_ctrl", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "sdmmc", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_serial_slave_link", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_websocket_client", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "expat", "expat", "expat", "lib"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "expat", "port", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "wear_levelling", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "fatfs", "diskio"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "fatfs", "vfs"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "fatfs", "src"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "freemodbus", "common", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "idf_test", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "idf_test", "include", "esp32c3"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "jsmn", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "json", "cJSON"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "libsodium", "libsodium", "src", "libsodium", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "libsodium", "port_include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "mqtt", "esp-mqtt", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "openssl", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "spiffs", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "wifi_provisioning", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_littlefs", "src"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "esp_littlefs", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "include", "fb_gfx", "include"),
|
|
|
|
join(FRAMEWORK_DIR, "cores", env.BoardConfig().get("build.core"))
|
|
|
|
],
|
|
|
|
|
|
|
|
LIBPATH=[
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "lib"),
|
|
|
|
join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "ld")
|
|
|
|
],
|
|
|
|
|
|
|
|
LIBS=[
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
"-lmbedtls", "-lefuse", "-lapp_update", "-lbootloader_support", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_gdbstub", "-lespcoredump", "-lesp_phy", "-lesp_system", "-lesp_rom", "-lhal", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lsoc", "-lesp_hw_support", "-lesp_pm", "-lesp_ringbuf", "-ldriver", "-lriscv", "-lesp32c3", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lasio", "-lbt", "-lcbor", "-lunity", "-lcmock", "-lcoap", "-lconsole", "-lnghttp", "-lesp-tls", "-lesp_adc_cal", "-lesp_hid", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lesp_https_server", "-lesp_lcd", "-lprotobuf-c", "-lprotocomm", "-lmdns", "-lesp_local_ctrl", "-lsdmmc", "-lesp_serial_slave_link", "-lesp_websocket_client", "-lexpat", "-lwear_levelling", "-lfatfs", "-lfreemodbus", "-ljsmn", "-ljson", "-llibsodium", "-lmqtt", "-lopenssl", "-lspiffs", "-lwifi_provisioning", "-lesp_littlefs", "-lfb_gfx", "-lasio", "-lcbor", "-lcmock", "-lunity", "-lcoap", "-lesp_hid", "-lesp_lcd", "-lesp_local_ctrl", "-lesp_https_server", "-lesp_websocket_client", "-lexpat", "-lfreemodbus", "-ljsmn", "-llibsodium", "-lmqtt", "-lesp_adc_cal", "-lfatfs", "-lwear_levelling", "-lopenssl", "-lspiffs", "-lwifi_provisioning", "-lprotocomm", "-lbt", "-lbtdm_app", "-lprotobuf-c", "-lmdns", "-lconsole", "-ljson", "-lmbedtls", "-lefuse", "-lapp_update", "-lbootloader_support", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_gdbstub", "-lespcoredump", "-lesp_phy", "-lesp_system", "-lesp_rom", "-lhal", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lsoc", "-lesp_hw_support", "-lesp_pm", "-lesp_ringbuf", "-ldriver", "-lriscv", "-lesp32c3", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lsmartconfig", "-lwapi", "-lmbedtls", "-lefuse", "-lapp_update", "-lbootloader_support", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_gdbstub", "-lespcoredump", "-lesp_phy", "-lesp_system", "-lesp_rom", "-lhal", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lsoc", "-lesp_hw_support", "-lesp_pm", "-lesp_ringbuf", "-ldriver", "-lriscv", "-lesp32c3", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lsmartconfig", "-lwapi", "-lmbedtls", "-lefuse", "-lapp_update", "-lbootloader_support", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_gdbstub", "-lespcoredump", "-lesp_phy", "-lesp_system", "-lesp_rom", "-lhal", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp_netif", "-lesp_event", "-lwpa_supplicant", "-lesp_wifi", "-llwip", "-llog", "-lheap", "-lsoc", "-lesp_hw_support", "-lesp_pm", "-lesp_ringbuf", "-ldriver", "-lriscv", "-lesp32c3", "-lesp_common", "-lesp_timer", "-lfreertos", "-lnewlib", "-lcxx", "-lapp_trace", "-lnghttp", "-lesp-tls", "-ltcp_transport", "-lesp_http_client", "-lesp_http_server", "-lesp_https_ota", "-lsdmmc", "-lesp_serial_slave_link", "-lmbedtls", "-lmbedcrypto", "-lmbedx509", "-lcoexist", "-lcore", "-lespnow", "-lmesh", "-lnet80211", "-lpp", "-lsmartconfig", "-lwapi", "-lmbedtls", "-lefuse", "-lapp_update", "-lbootloader_support", "-lesp_ipc", "-lspi_flash", "-lnvs_flash", "-lpthread", "-lesp_gdbstub", "-lespcoredump", "-lesp_phy", "-lesp_system", "-lesp_rom", "-lhal", "-lvfs", "-lesp_eth", "-ltcpip_adapter", "-lesp
|
2021-04-14 17:10:05 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
CPPDEFINES=[
|
|
|
|
"HAVE_CONFIG_H",
|
|
|
|
("MBEDTLS_CONFIG_FILE", '\\"mbedtls/esp_config.h\\"'),
|
|
|
|
"UNITY_INCLUDE_CONFIG_H",
|
|
|
|
"WITH_POSIX",
|
|
|
|
"_GNU_SOURCE",
|
IDF master d93887f9f (#5336)
* Update toolchain
* Update package_esp32_index.template.json
* add optional component dependencies after Kconfig options are known (#5404)
Until this commit, Kconfig options (e.g. CONFIG_TINYUSB_ENABLED) were
used in conditions preceding idf_component_register to determine which
components need to be added to `arduino` component requirements.
However the Kconfig options aren't known at the early expansion stage,
when the component CMakeLists.txt files are expanded the first time
and requirements are evaluated. So all the conditions evaluated as if
the options were not set.
This commit changes the logic to only add these components as
dependencies when the Kconfig options are known. Dependencies become
"weak", which means that if one of the components isn't included into
the build for some reason, it is not added as a dependency.
This may happen, for example, if the component is not present in the
`components` directory or is excluded by setting `COMPONENTS` variable
in the project CMakeLists.txt file.
This also ensures that if the component is not present, it will not be
added as a dependency, and this will allow the build to proceed.
Follow-up to https://github.com/espressif/arduino-esp32/pull/5391.
Closes https://github.com/espressif/arduino-esp32/issues/5319.
* IDF master d93887f9f
* PlatformIO updates for CI (#5387)
* Update PlatformIO CI build script
- Switch to the latest toolchains 8.4.0 for ESP32, ESP32S2, ESP32C3
- Use PlatformIO from master branch for better robustness
* Update package.json for PlatformIO
Co-authored-by: Ivan Grokhotkov <ivan@espressif.com>
Co-authored-by: Valerii Koval <valeros@users.noreply.github.com>
2021-07-17 00:57:49 +02:00
|
|
|
("IDF_VER", '\\"v4.4-dev-2030-gd93887f9f-dirty\\"'),
|
2021-04-14 17:10:05 +02:00
|
|
|
"ESP_PLATFORM",
|
|
|
|
"ARDUINO_ARCH_ESP32",
|
|
|
|
"ESP32",
|
|
|
|
("F_CPU", "$BOARD_F_CPU"),
|
|
|
|
("ARDUINO", 10812),
|
|
|
|
("ARDUINO_VARIANT", '\\"%s\\"' % env.BoardConfig().get("build.variant").replace('"', "")),
|
|
|
|
("ARDUINO_BOARD", '\\"%s\\"' % env.BoardConfig().get("name").replace('"', ""))
|
|
|
|
],
|
|
|
|
|
|
|
|
LIBSOURCE_DIRS=[
|
|
|
|
join(FRAMEWORK_DIR, "libraries")
|
|
|
|
],
|
|
|
|
|
|
|
|
FLASH_EXTRA_IMAGES=[
|
2021-04-14 17:18:48 +02:00
|
|
|
("0x0000", join(FRAMEWORK_DIR, "tools", "sdk", "esp32c3", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin")),
|
2021-04-14 17:10:05 +02:00
|
|
|
("0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin")),
|
|
|
|
("0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"))
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Target: Build Core Library
|
|
|
|
#
|
|
|
|
|
|
|
|
libs = []
|
|
|
|
|
|
|
|
variants_dir = join(FRAMEWORK_DIR, "variants")
|
|
|
|
|
|
|
|
if "build.variants_dir" in env.BoardConfig():
|
|
|
|
variants_dir = join("$PROJECT_DIR", env.BoardConfig().get("build.variants_dir"))
|
|
|
|
|
|
|
|
if "build.variant" in env.BoardConfig():
|
|
|
|
env.Append(
|
|
|
|
CPPPATH=[
|
|
|
|
join(variants_dir, env.BoardConfig().get("build.variant"))
|
|
|
|
]
|
|
|
|
)
|
|
|
|
libs.append(env.BuildLibrary(
|
|
|
|
join("$BUILD_DIR", "FrameworkArduinoVariant"),
|
|
|
|
join(variants_dir, env.BoardConfig().get("build.variant"))
|
|
|
|
))
|
|
|
|
|
|
|
|
envsafe = env.Clone()
|
|
|
|
|
|
|
|
libs.append(envsafe.BuildLibrary(
|
|
|
|
join("$BUILD_DIR", "FrameworkArduino"),
|
|
|
|
join(FRAMEWORK_DIR, "cores", env.BoardConfig().get("build.core"))
|
|
|
|
))
|
|
|
|
|
|
|
|
env.Prepend(LIBS=libs)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate partition table
|
|
|
|
#
|
|
|
|
|
|
|
|
fwpartitions_dir = join(FRAMEWORK_DIR, "tools", "partitions")
|
|
|
|
partitions_csv = env.BoardConfig().get("build.partitions", "default.csv")
|
|
|
|
env.Replace(
|
|
|
|
PARTITIONS_TABLE_CSV=abspath(
|
|
|
|
join(fwpartitions_dir, partitions_csv) if isfile(
|
|
|
|
join(fwpartitions_dir, partitions_csv)) else partitions_csv))
|
|
|
|
|
|
|
|
partition_table = env.Command(
|
|
|
|
join("$BUILD_DIR", "partitions.bin"),
|
|
|
|
"$PARTITIONS_TABLE_CSV",
|
|
|
|
env.VerboseAction('"$PYTHONEXE" "%s" -q $SOURCE $TARGET' % join(
|
|
|
|
FRAMEWORK_DIR, "tools", "gen_esp32part.py"),
|
|
|
|
"Generating partitions $TARGET"))
|
|
|
|
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", partition_table)
|