Ivan Grokhotkov
68ad6ad63a
tools/docker: use correct branch and commit of IDF when building
2019-11-12 09:57:15 +01:00
Ivan Grokhotkov
981b2496cb
tools: export IDF_CCACHE_ENABLE on Windows by default
2019-11-12 09:54:57 +01:00
Renz Christian Bagaporo
e4137cc6ca
cmake: support git worktree
...
Use rev-parse to get the HEAD directory instead of manually looking for
it. This method works in the main repository, worktrees and submodules.
Closes https://github.com/espressif/esp-idf/issues/4136
2019-11-11 18:09:15 +08:00
Renz Christian Bagaporo
308e4fcce1
cmake: do not check if sdkconfig exists
2019-11-11 18:06:48 +08:00
Renz Christian Bagaporo
95b5745c3c
cmake: treat unregistered components as unresolved
2019-11-11 18:03:26 +08:00
Renz Christian Bagaporo
ecce2bc926
cmake: introduce BUILD_COMPONENT_ALIASES
...
This commit makes it so that BUILD_COMPONENT holds only the component,
and a new property BUILD_COMPONENT_ALIASES hold the full name of the
component.
This also removes erroneous check for duplicate components, as this can
never happen:
(1) if two components have the same name but different prefixes,
the internal names are still unique between them
(2)if two components happen to have the same name and same prefix, the
latter would override the former
2019-11-11 18:01:00 +08:00
Renz Christian Bagaporo
b69898257a
cmake: make build components available before immediately
...
Previous implementation only builds list of components included in the
build during component registration.
Since the build components is known as the requirements expansion is
ongoing, update the list here instead.
2019-11-11 18:00:50 +08:00
Renz Christian Bagaporo
22548d0ea4
cmake: hide internal targets
...
Use imported library, which does not create additional rules, but still
allows attaching arbitraty properties instead of custom targets. This
allows the targets to not appear in the target list of IDEs such as
CLion.
2019-11-11 17:58:02 +08:00
Michael (XIAO Xufeng)
f54cab62a2
ci: fix one ut issue when using Wrover-B module with newer ver of PSRAM
...
The workaround for PSRAM that will occupy an SPI bus is enabled only when:
1. used on 32MBit ver 0 PSRAM.
2. work at 80MHz.
The test used to only check 32MBit by the config option, but for PSRAM
on Wrover-B module seems to use a newer version of 32MBit PSRAM. So it
expects the workaround to be enabled, but actually not.
This commit split the unit test into two parts:
1. check all SPI buses are available, for all configs except psram_hspi
and psram_vspi, run on regular runners (including Wrover and Wrover-B).
a hidden option is enabled so that the compiler knows it's not building
psram_hspi or psram_vspi.
2. check the specified bus are acquired, for config psram_hspi and
psram_vspi. This only run on special runner (legacy Wrover module).
2019-11-08 08:25:35 +00:00
Angus Gratton
90568fbf00
secure boot: Fix bug where verification key was not embedded in app
2019-11-08 11:39:01 +08:00
tatsutaigu
6f6629e568
idf.py: Add --before flag to esptool.py call
...
Merges https://github.com/espressif/esp-idf/pull/4125
2019-11-07 17:37:18 +01:00
Anton Maklakov
2cd3018c0a
Introduce esp-2019r2 toolchain
2019-11-04 16:21:56 +07:00
Jiang Jiang Jian
62a609190d
Merge branch 'feature/idf_tools_installer_v2.1_v4.0' into 'release/v4.0'
...
IDF tools installer: extra fixes, bump version to v2.1 (backport 4.0)
See merge request espressif/esp-idf!6401
2019-10-21 10:49:12 +08:00
Jiang Jiang Jian
9f1d992ef9
Merge branch 'bugfix/idf_py_fix_property_dict_v4.0' into 'release/v4.0'
...
idf.py: Fix PropertyDict implementation (v4.0)
See merge request espressif/esp-idf!6249
2019-10-21 10:37:31 +08:00
Jiang Jiang Jian
2056b891d3
Merge branch 'bugfix/ext_flash_load_partitions_v4.0' into 'release/v4.0'
...
spi_flash: ensure partition table loaded when esp_partition_register_external is called (backport v4.0)
See merge request espressif/esp-idf!6402
2019-10-21 10:33:01 +08:00
Jiang Jiang Jian
c6a6740e3f
Merge branch 'feature/cxx_rtti_preparation_v2_v4.0' into 'release/v4.0'
...
C++: add provisions for optional RTTI support (backport v4.0)
See merge request espressif/esp-idf!6403
2019-10-21 10:31:52 +08:00
Ajita Chavan
32b8b60dc5
flash_ops: fix spi_flash_read with source buffer not from internal memory and size < 16
...
Closes https://github.com/espressif/esp-idf/issues/4010
2019-10-19 15:00:00 +08:00
Ivan Grokhotkov
3d0466ccd1
C++: add provisions for optional RTTI support
...
Ref. https://github.com/espressif/esp-idf/issues/1684
This change allows RTTI to be enabled in menuconfig. For full RTTI
support, libstdc++.a in the toolchain should be built without
-fno-rtti, as it is done now.
Generally if libstdc++.a is built with RTTI, applications which do not
use RTTI (and build with -fno-rtti) could still include typeinfo
structures referenced from STL classes’ vtables. This change works
around this, by moving all typeinfo structures from libstdc++.a into
a non-loadable section, placed into a non-existent memory region
starting at address 0. This can be done because when the application
is compiled with -fno-rtti, typeinfo structures are not used at run
time. This way, typeinfo structures do not contribute to the
application binary size.
If the application is build with RTTI support, typeinfo structures are
linked into the application .rodata section as usual.
Note that this commit does not actually enable RTTI support.
The respective Kconfig option is hidden, and will be made visible when
the toolchain is updated.
2019-10-18 11:22:39 +02:00
Ivan Grokhotkov
92adc524a2
examples/ext_flash_fatfs: print out data partitions, add CI test
2019-10-18 11:15:10 +02:00
Ivan Grokhotkov
3a115a1ad2
tools: bump windows tools installer version to v2.1
...
Includes the following changes:
80ad09f23
allow changing the installation path
(a fix for https://github.com/espressif/esp-idf/issues/3806 )
9c5284e7b
verify that IDF_PATH doesn't contain spaces
aaf3dcbda
fix quoting of IDF_TOOLS_PATH
(a fix for https://github.com/espressif/esp-idf/issues/3807 )
e6e179294
tools: update idf_exe to 1.0.1
76dc87e9a
idf_exe: fix NULL pointer passed to WriteFile
(fixes for https://github.com/espressif/esp-idf/issues/3740 )
2019-10-18 11:10:41 +02:00
Ivan Grokhotkov
019c72e4fc
tools: update Windows installer build script
...
Replace the outdated build_installer.sh with the steps used in CI,
call build_installer.sh from CI. Move the signing part into the new
script, sign_installer.sh.
2019-10-18 11:10:41 +02:00
Ivan Grokhotkov
21ecf51a40
idf_tools.py: add workaround for PermissionError in os.rename
...
Closes https://github.com/espressif/esp-idf/issues/4063
Closes https://github.com/espressif/esp-idf/issues/3819
2019-10-18 11:10:41 +02:00
X-Ryl669
3c97f7e42e
idf_tools.py: pass --work-tree instead of -C option to git
...
Older versions of git do not support -C option. Use --work-tree option
instead.
Closes https://github.com/espressif/esp-idf/issues/4018
Merges https://github.com/espressif/esp-idf/pull/4019
2019-10-18 11:10:40 +02:00
Angus Gratton
2cde888a6d
Merge branch 'feature/enable_ethernet_unit_test_4.0' into 'release/v4.0'
...
ethernet: enable unit test (v4.0)
See merge request espressif/esp-idf!6220
2019-10-17 12:54:53 +08:00
Jiang Jiang Jian
128d650d7d
Merge branch 'bugfix/alt_exit_idf_monitor_v4.0' into 'release/v4.0'
...
idf_monitor: Exit with CTRL+X in menu (v4.0)
See merge request espressif/esp-idf!6289
2019-10-14 21:46:32 +08:00
Roland Dobai
783ef22dd3
Fix cmake typo
2019-10-10 09:11:01 +02:00
Roland Dobai
4f193dfa71
tools: Fix idf.py menuconfig characters in MSYS2
2019-10-10 09:11:01 +02:00
suda-morris
cf5331b9f1
ethernet: enable unit test
2019-10-10 10:42:48 +08:00
Per-Olov Jernberg
34a327791c
idf_monitor: Exit with CTRL+X in menu
...
Currently, the only way of exiting the idf_monitor program is to hit the CTRL+] button, if your keyboard doesn't have that key unless you hit another modifier key, it's not super trivial to exit.
This change adds the option to exit with CTRL+T (for menu) then hitting X (or CTRL+X) for exiting.
Closes https://github.com/espressif/esp-idf/pull/4167
Closes https://github.com/espressif/esp-idf/issues/4129
2019-10-09 10:27:50 +02:00
Roland Dobai
dedaf624db
Handle deprecated values in sdkconfig.defaults
...
The issue was pointed out also in
https://github.com/espressif/esp-idf/issues/4092
2019-10-03 10:13:42 +02:00
Sergei Silnov
9ca33a260f
idf.py: Fix PropertyDict implementation
2019-10-01 17:49:51 +02:00
Ivan Grokhotkov
96748f3037
Merge branch 'refactor/update_spi_ethernet_api_v4.0' into 'release/v4.0'
...
update spi ethernet api (v4.0)
See merge request espressif/esp-idf!6177
2019-09-27 19:43:15 +08:00
Jiang Jiang Jian
899957f521
Merge branch 'feature/cmake_check_mconf_version_v4.0' into 'release/v4.0'
...
cmake: check mconf-idf binary version (backport v4.0)
See merge request espressif/esp-idf!6067
2019-09-25 16:15:26 +08:00
suda-morris
ebffa5f9f2
ethernet: test apps can build with ethernet disabled
2019-09-25 06:34:39 +00:00
Prasad Alatkar
daa65b6f91
NimBLE: Add optional mbedTLS support to NimBLE (backport)
...
- NimBLE: Additional menuconfig option to enable mbedTLS instead of Tinycrypt from
NimBLE, changes `component.mk` & `CMakeLists.txt` for the same.
- Addition of NimBLE stack size configuration and misc changes.
- mbedTLS: Addition of `CMAC` and `ECP_RESTARTABLE` to mbedTLS menuconfig option and
`esp_config.h`.
- Example: Minor changes to `app_mesh.c` application.
2019-09-23 21:37:40 +08:00
Roland Dobai
a6fc9bf246
Use kconfiglib from $IDF_PATH/tools/kconfig_new
2019-09-11 14:28:39 +02:00
Ivan Grokhotkov
f3fc4916d2
ci: add jobs for flash encryption tests
2019-09-10 17:20:19 +02:00
Ivan Grokhotkov
b17ca9cb38
unit-test-app: add config with flash encryption enabled
2019-09-10 17:20:19 +02:00
Ivan Grokhotkov
a37694741c
tiny-test-fw: support testing apps with flash encryption
...
If CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT is set, pass
--encrypted flag to esptool.py.
2019-09-10 17:18:51 +02:00
Ivan Grokhotkov
da8c09c463
cmake: check mconf-idf binary version
...
Print a warning if an outdated version of mconf-idf is found in
the PATH.
2019-09-10 17:15:15 +02:00
Roland Dobai
1402e78844
Fix error code collision and CI check
2019-09-03 08:07:16 +02:00
Angus Gratton
ebb9384681
Merge branch 'bugfix/various_cmake_fixes_v4.0' into 'release/v4.0'
...
CMake: Various backports
See merge request espressif/esp-idf!5933
2019-09-02 12:46:40 +08:00
Jiang Jiang Jian
0d3fde04ff
Merge branch 'bugfix_kconfig_deps_missing_v4.0' into 'release/v4.0'
...
kconfig: Add -MP option so .d files include empty targets (v4.0)
See merge request espressif/esp-idf!5845
2019-09-02 12:43:28 +08:00
Roland Dobai
64bece146c
Fix path in the Efuse table test
2019-08-29 09:50:38 +02:00
Renz Christian Bagaporo
e71e4da388
cmake: check include directories
2019-08-28 10:28:17 +08:00
Renz Christian Bagaporo
3f1ec39a8d
cmake: fix issue with checking build process args
2019-08-28 10:28:17 +08:00
Renz Christian Bagaporo
f62798cb8b
cmake: make default version 1
2019-08-28 10:28:17 +08:00
Renz Christian Bagaporo
b6c89984a9
cmake: fix build failure when git repo is initialized but no first commit
...
Closes https://github.com/espressif/esp-idf/issues/3920
2019-08-28 10:28:17 +08:00
Per Malmberg
b669495d97
Make sure ESP_PLATFORM is defined when processing CMake files.
2019-08-28 10:28:17 +08:00
Renz Christian Bagaporo
8778c551eb
cmake: set build dir for mconf-idf
...
Fixes an issue where if idf_build_process is called in a CMake
subdirectory, menuconfig looks for the mconf-idf binary in the wrong
place (in the subdirectory build dir instead of root binary dir).
2019-08-28 10:28:17 +08:00
Renz Christian Bagaporo
4c9f30a869
cmake: set component properties
2019-08-27 13:35:21 +08:00
Mahavir Jain
b72ff61899
cmake: fix issue with handling of EXCLUDE_SRCS
2019-08-26 11:49:30 +05:30
Angus Gratton
2264ea7714
kconfig: Add -MP option so .d files include empty targets
...
Prevents make-level errors when switching IDF versions, as headers may be removed.
Similar to some mentioned here:
https://github.com/espressif/esp-idf/issues/712
2019-08-21 18:20:47 +10:00
Angus Gratton
79afd2d580
confserver: Fix NamedTemporaryFile use on Windows
...
Can't have the file open twice, so need to close and delete after reopening.
2019-08-19 17:44:18 +10:00
Roland Dobai
a8e8919bbf
tools: Support sdkconfig.rename files from outside IDF in confgen.py
2019-08-19 17:44:18 +10:00
suda-morris
5c07acad46
idf_tool: fix unicode decode error
...
Closes https://github.com/espressif/esp-idf/issues/3841
2019-08-07 21:27:29 +08:00
Angus Gratton
8dbe1f024e
Merge branch 'bugfix/pthread_fixes' into 'master'
...
pthread fixes
Closes IDFGH-1437
See merge request espressif/esp-idf!5646
2019-07-30 09:41:31 +08:00
Angus Gratton
477c7bb789
Merge branch 'feature/idf_tools_installer_ci' into 'master'
...
Build Windows tools installer in CI
Closes IDF-201
See merge request espressif/esp-idf!5583
2019-07-29 19:16:18 +08:00
Ivan Grokhotkov
b1bb90a596
Merge branch 'bugfix/partition_tables_update_note' into 'master'
...
global: update note in the partition tables
See merge request espressif/esp-idf!5636
2019-07-29 19:00:44 +08:00
Ivan Grokhotkov
6cff19adb6
ci: add jobs to build idf_exe, cmdlinerunner, tools installer
2019-07-29 06:13:52 +02:00
Ivan Grokhotkov
3c63f49591
examples: remove non-existent options from sdkconfig.defaults
2019-07-29 04:57:38 +02:00
Ivan Grokhotkov
e9de7b1df3
pthread: remove ESP32_ prefix from Kconfig options
...
pthread implementation is not chip-specific, so this prefix is not
needed.
2019-07-29 04:43:49 +02:00
Ivan Grokhotkov
3e17c69e4f
tools: idf_tools.py: allow downloading for a different platform
2019-07-28 07:27:00 +02:00
Ivan Grokhotkov
26800ed71e
global: update note in the partition tables
...
The build system automatically determines offsets of partitions from
the partition table, so no manual changes are needed. Instead, add a
note that partition offsets may need to be updated when increasing
the bootloader size.
2019-07-27 10:28:16 +02:00
Ivan Grokhotkov
842432fb65
Merge branch 'bugfix/dont_rerun_reconfig_on_tests' into 'master'
...
Don't re-run reconfig on tests executed with same parameters
Closes IDF-732
See merge request espressif/esp-idf!5335
2019-07-25 12:24:03 +08:00
Ivan Grokhotkov
80ad09f230
tools: installer: allow changing installation path
...
Installation path can now be changed in a subsequent install,
without uninstalling and logging out.
The default value of the installation path is set to
IDF_TOOLS_PATH environment variable, if it was already set by the
previous installation, or by the user.
Closes https://github.com/espressif/esp-idf/issues/3806
2019-07-24 06:44:30 +02:00
Sergei Silnov
e36a76d940
idf_ext.py: don't rerun reconfig for tests when possible
2019-07-23 16:15:33 +02:00
Ivan Grokhotkov
1271008dd8
tools: tools.json: don't require ulp-binutils and openocd on x86 Linux
...
Fixes https://esp32.com/viewtopic.php?f=13&t=11540
2019-07-23 06:57:36 +02:00
Ivan Grokhotkov
b70ac4deb7
tools: idf_tools.py: improve error message when no downloads found
...
...for the given platform.
Previously would raise AssertionError.
2019-07-23 06:55:30 +02:00
Ivan Grokhotkov
9c5284e7b5
tools: installer: verify that IDF_PATH doesn't contain spaces
2019-07-22 09:29:49 +02:00
Ivan Grokhotkov
aaf3dcbda0
tools: installer: fix quoting of IDF_TOOLS_PATH
...
IDF_TOOLS_PATH may contain spaces, so needs to be properly quoted.
Closes https://github.com/espressif/esp-idf/issues/3807
2019-07-22 09:29:49 +02:00
Ivan Grokhotkov
024176c509
ci: build IDF docker image in CI
2019-07-18 06:18:04 +00:00
Ivan Grokhotkov
dd443f61e8
tools: add Dockerfile
2019-07-18 06:18:04 +00:00
Angus Gratton
56afdedf7c
Merge branch 'bugfix/do_not_require_new_target_link_library_signature' into 'master'
...
CMake: Do not force use of new target_link_libraries signature
See merge request espressif/esp-idf!5471
2019-07-16 13:36:35 +08:00
Renz Christian Bagaporo
d3e814fe19
cmake: set COMPONENT_DIR in early expansion
...
Gives same treatment to COMPONENT_DIR as COMPONENT_PATH in
https://gitlab.espressif.cn:6688/espressif/esp-idf/merge_requests/4557
Closes https://github.com/espressif/esp-idf/issues/3771
2019-07-12 16:22:18 +08:00
Ivan Grokhotkov
1ea68e6093
Merge branch 'feature/build_example_make_on_trigger' into 'master'
...
ci: don't build examples with Make in regular jobs
See merge request espressif/esp-idf!5498
2019-07-11 13:59:15 +08:00
He Yin Ling
663ed11509
unit-test-app: use stripped config name in test case ID:
...
We could split cases of same config into multiple binaries as we have limited rom space. So we should regard those configs like `default` and `default_2` as the same config.
2019-07-11 10:01:05 +08:00
Ivan Grokhotkov
edd7f90b77
ci: don't build examples with Make on pushes
...
Still build the examples with make on:
- triggered pipelines
- master, release branches, tags
- scheduled and manual (web) pipelines
2019-07-10 17:16:53 +02:00
Ivan Grokhotkov
56e3f2780d
ci: add unit test job
2019-07-10 22:44:11 +08:00
Ivan Grokhotkov
41b6811f45
unit-test-app: split default, release, single_core configs
2019-07-10 22:44:11 +08:00
Ivan Grokhotkov
847e00d17b
Merge branch 'bugfix/idf_exe_crash' into 'master'
...
tools: fix idf.py.exe crash on Windows 7
Closes IDFGH-1471
See merge request espressif/esp-idf!5484
2019-07-10 16:20:13 +08:00
Ivan Grokhotkov
e6e1792946
tools: update idf_exe to 1.0.1
2019-07-09 14:15:09 +02:00
Ivan Grokhotkov
15bcb79712
idf_exe: bump version to 1.0.1
2019-07-09 14:15:09 +02:00
Ivan Grokhotkov
76dc87e9ad
idf_exe: fix NULL pointer passed to WriteFile
...
For an unknown reason, passing NULL pointer instead of &written worked
on Windows 10 and on Windows 7 when stdout is not redirected.
Closes https://github.com/espressif/esp-idf/issues/3740
2019-07-09 14:15:09 +02:00
Ivan Grokhotkov
896d675248
idf_tools.py: add another platform string to handle Windows x86
2019-07-09 14:11:19 +02:00
Angus Gratton
222146845c
docs: Make CMake build system default, mark GNU Make as legacy option
...
All `-cmake` suffixes are removed
Where a GNU Make option is renamed, the `-legacy` suffix is used
2019-07-09 14:32:26 +10:00
Renz Christian Bagaporo
2a5b02097b
cmake: do not force use of new signature for target_link_libraries
2019-07-08 19:43:57 +08:00
Angus Gratton
47bbb107a8
build system: Use CMake-based build system as default when describing commands
2019-07-08 17:31:27 +10:00
Angus Gratton
c3cc096af0
Merge branch 'ci/cmake_examples_multichip_support' into 'master'
...
ci: multichip build support for examples
See merge request espressif/esp-idf!5384
2019-07-08 12:29:25 +08:00
Roland Dobai
f3d6219c46
tools: Fix indentation in confgen.py
2019-07-06 09:17:31 +02:00
Mahavir Jain
46c8497f01
Merge branch 'bugfix/prov_tool_desc_readme' into 'master'
...
esp_prov : Minor refactoring in argument dependent logic and other changes
See merge request espressif/esp-idf!5430
2019-07-05 17:18:32 +08:00
Michael (XIAO Xufeng)
181fd70a9a
ci: multichip build support for examples
2019-07-05 17:06:25 +08:00
Anton Maklakov
c9cf0afb6e
tools: Add a script for switching to real submodules in forks
2019-07-05 11:12:06 +07:00
Shivani Tipnis
cc75721f9c
mfg_util: Optimise by adding subparser changes w.r.t similar changes in nvs util changes
2019-07-05 01:13:27 +00:00
Shivani Tipnis
bfd1eeefa2
Add NimBLE bleprph,blecent,blehr example tests
2019-07-05 08:14:04 +08:00
Ivan Grokhotkov
cd89182458
Merge branch 'bugfix/confgen_avoid_write_to_conf' into 'master'
...
tools: avoid using directly _write_to_conf from Kconfiglib
Closes IDFGH-1246
See merge request espressif/esp-idf!5423
2019-07-04 22:36:23 +08:00
Ivan Grokhotkov
564dbabf49
Merge branch 'bugfix/confgen_hex_value' into 'master'
...
tools: Fix hex parsing in confgen.py
Closes IDFGH-1273
See merge request espressif/esp-idf!5439
2019-07-04 22:35:54 +08:00
Anurag Kar
61923d37b6
esp_prov : Minor refactoring in argument dependent logic
...
Other changes:
* Command line argument name and descriptions updated and formatted
* Some exception messages updated for clarity
* READMEs updated for tool and all provisioning examples
* Minor update in example test scripts due to change in esp_prov.get_transport() API
* Transport_HTTP now forces connect on initialization
2019-07-04 15:02:07 +05:30
Roland Dobai
510042160d
tools: avoid using directly _write_to_conf from kconfiglib
...
Closes https://github.com/espressif/esp-idf/issues/3543
2019-07-04 10:35:34 +02:00
Roland Dobai
3bd4003e98
tools: Fix hex parsing in confgen.py
...
Closes https://github.com/espressif/esp-idf/issues/3568
2019-07-04 10:35:03 +02:00