Angus Gratton
f9552baf97
Merge branch 'feature/dfu_build_flash_s2' into 'master'
...
Add build system support for programming ESP32-S2 using DFU utils
Closes IDF-579
See merge request espressif/esp-idf!8294
2020-05-04 14:57:51 +08:00
Roland Dobai
ab9f714248
Add build system support for programming ESP32-S2 using DFU utils
2020-04-30 07:59:18 +02:00
Ivan Grokhotkov
7b79b52062
tools: allow alternative spellings of target name (ESP32-S2, ESP32S2)
...
by ignoring character case and hyphens in target name.
2020-04-29 23:42:18 +02:00
Sergei Silnov
44d77c7100
Fix cmake component management test on shell runners
2020-04-20 09:25:03 +02:00
Ivan Grokhotkov
98185db8ad
ci: use default Bash version in macOS test
2020-04-07 09:50:59 +02:00
Ivan Grokhotkov
e94288da31
global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs
...
Using the method from @cemeyer
(https://github.com/espressif/esp-idf/pull/3166 ):
find . -name \*.sh -exec sed -i "" -e 's|^#!.*bin/bash|#!/usr/bin/env bash|' {} +
Closes https://github.com/espressif/esp-idf/pull/3166 .
2020-04-03 01:10:02 +02:00
Jeroen Domburg
419848549e
Add fixes for gcc8 psram fix improvement
2020-03-27 20:04:47 +07:00
morris
46ea7d815d
parttool: don't print target name
2020-03-09 15:05:04 +08:00
Roland Dobai
c35538ecee
tools: fix idf.py to be able to select a generator for build
2020-03-06 10:41:09 +01:00
Renz Bagaporo
b239070442
ci: add test for partition_table target
2020-03-05 11:04:09 +08:00
Ivan Grokhotkov
b97b9418f8
Merge branch 'bugfix/improve_component_manager_test_output' into 'master'
...
Improve message for component manager tests
See merge request espressif/esp-idf!7765
2020-03-03 19:02:31 +08:00
Sergei Silnov
47bfd337d2
Improve message for component manager tests
2020-02-25 09:22:52 +01:00
Ivan Grokhotkov
627d9b3142
ci: test_build_system_cmake: ensure sdkconfig timestamp changes
...
idf.py bootloader runs very quickly on some build servers, so when
sdkconfig is modified, the next idf.py invocation doesn't pick up the
timestamp difference. Add some delays to make sure the change is
noticed.
2020-02-07 09:35:41 +01:00
Ivan Grokhotkov
902024f980
ci: fix build system test on macOS
...
Replaces ${var^^} expansion supported with Bash >= 4 with 'tr'
2020-02-05 19:05:04 +01:00
Ivan Grokhotkov
9bff344ef5
idf.py: fail and show instructions on IDF_TARGET mismatch
...
Closes IDF-869
2020-01-31 11:08:22 +01:00
Ivan Grokhotkov
a1c1af72bf
idf.py: guess IDF_TARGET from sdkconfig if CMakeCache doesn't exist
...
This solves the issue that target is changed to the default one after
idf.py fullclean.
Also allow setting the default target using sdkconfig.defaults, e.g.
CONFIG_IDF_TARGET="esp32s2"
Closes IDF-1040
2020-01-30 19:09:37 +01:00
Ivan Grokhotkov
ac1834e288
Merge branch 'feature/freertos_xtensa_folder' into 'master'
...
freertos: moved all xtensa specific files into a separated folder
See merge request espressif/esp-idf!7377
2020-01-29 17:04:34 +08:00
Felipe Neves
429712c6eb
freertos: moved all xtensa specific files into a separated folder
2020-01-27 16:05:30 -03:00
Ivan Grokhotkov
cbb6beccd9
ci: add build system tests for bootloader flash mode/freq/size
2020-01-23 17:03:52 +01:00
morris
e30cd361a8
global: rename esp32s2beta to esp32s2
2020-01-22 12:14:38 +08:00
KonstantinKondrashov
b49a657448
build: Add CONFIG_APP_PROJECT_VER to set the project version from Kconfig
2020-01-15 11:02:27 +00:00
Angus Gratton
b63d28730c
ci: Use real esp32s2beta target for all tests
2020-01-08 18:23:29 +11:00
Angus Gratton
f616d2f2de
esp_wifi: Move wifi OS adapter structures into esp_wifi component
2020-01-08 18:13:12 +11:00
Sergei Silnov
dfafa98253
Use component manager if available as python package
2019-12-19 16:48:36 +01:00
Renz Christian Bagaporo
17876d3d73
cmake: some optimizations to build system tests
2019-12-11 16:43:47 +08:00
Ivan Grokhotkov
562a3980b2
idf.py: fix fallback to build system target
2019-12-04 07:13:31 +00:00
Sergei Silnov
506c46fddc
idf.py: add exit_with_error for deprecation
2019-12-02 10:41:23 +01:00
Renz Christian Bagaporo
9d33ad5e25
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-05 15:32:35 +08:00
Renz Christian Bagaporo
2dd74d4b7a
ci: remove semicolon for cmake build system test
2019-11-03 16:52:06 +08:00
Renz Christian Bagaporo
b0bb53de06
ci: test multiple sdkconfig defaults
2019-11-03 16:43:58 +08:00
Ivan Grokhotkov
88b5a9c4d6
ci: fix regression in build system tests
...
On macOS, rsync --exclude option accepts absolute paths as well as
relative ones. On Linux, it doesn't, which results in endless recursive
copying of test_build_system directory.
2019-11-01 15:43:21 +01:00
Ivan Grokhotkov
9ffd444e52
Merge branch 'feature/ci_macos_build_system_test' into 'master'
...
ci: add CMake build system test for macOS
See merge request espressif/esp-idf!6552
2019-11-01 18:41:30 +08:00
Ivan Grokhotkov
058d13c351
ci: fixes for CMake build system test on macOS
2019-10-30 18:59:38 +01:00
Ivan Grokhotkov
92d4b86182
ci: add tests for sdkconfig.defaults.IDF_TARGET
2019-10-30 10:43:37 +01:00
Angus Gratton
5ce95f2bfd
Merge branch 'bugfix/ci_weekend_test_update' into 'master'
...
CI: weekend test fixes
See merge request espressif/esp-idf!6235
2019-10-14 15:30:33 +08:00
Roland Dobai
15857d9cbb
Handle deprecated values in sdkconfig.defaults
...
The issue was pointed out also in
https://github.com/espressif/esp-idf/issues/4092
2019-10-02 16:29:25 +00:00
David Cermak
b494ffaf5b
ci: fix test build system when using template repository from a
...
different branch then master
2019-09-30 09:54:24 +02:00
suda-morris
dc5b8a9a8f
ethernet: test apps can build with ethernet disabled
2019-09-19 09:41:21 +00:00
Sergei Silnov
1faa69a01b
idf.py: Fix execution order for dependent tasks
...
Closes https://github.com/espressif/esp-idf/issues/3948
Add tests for idf.py
Move param check from cmake to idf_py test
Refactor task processing for idf.py
Add code comments
Fix an issue when options for dependent tasks are ignored
Add check for dupes in command list
2019-09-16 22:48:57 +08:00
Angus Gratton
146a0f8e14
Merge branch 'feature/idf_py_depeprecation_parameter_flag' into 'master'
...
idf.py: Add support for deprecation of command/options
See merge request espressif/esp-idf!5433
2019-09-13 14:30:27 +08:00
Angus Gratton
9a7ab28cc2
idf.py: Add environment variable to enable ccache by default
2019-09-03 10:25:28 +10:00
Sergei Silnov
58418c790a
idf.py: Add support for deprecation of command/options
2019-08-20 16:10:25 +02:00
Michael (XIAO Xufeng)
026ec388a6
idf_py: support new command set-target
...
Instead of using -DIDF_TARGET, this command is more intuitive:
1. Can limit the choice of targets
2. Easy to understand this is a destructive command
3. Easy to remember, and have an entry in the --help menu
2019-08-17 00:06:14 +08:00
Renz Christian Bagaporo
87ebdaa74e
cmake: set component properties
2019-08-09 20:51:20 +08:00
Renz Christian Bagaporo
72a5762525
cmake: make use of ccache opt-in
2019-06-29 00:22:57 +00:00
Sergei Silnov
56db269fb5
idf.py: Fix subcommand options
2019-06-28 10:07:38 +02:00
Renz Christian Bagaporo
67909fe2a0
ci: test fail on build time works
2019-06-28 10:54:21 +08:00
Sergei Silnov
aecd0f9ae4
Add subcomand options that become global
2019-06-26 10:00:21 +02:00
suda-morris
c5c716e9d7
esp_wifi: fix wrong path of phy_init_data
...
Closes https://github.com/espressif/esp-idf/issues/3482
2019-06-18 11:29:09 +08:00
Ivan Grokhotkov
b2bfa8ed95
ci: fix idf.py syntax in new build system tests
2019-06-07 22:03:15 +08:00
Angus Gratton
50d2e6b69b
Merge branch 'bugfix/cmake_extra_component_dirs' into 'master'
...
CI: additional CMake build system tests wrt EXTRA_COMPONENT_DIRS
See merge request idf/esp-idf!5104
2019-06-07 07:49:30 +08:00
Renz Christian Bagaporo
c308d7bed6
ci: additional Cmake tests for EXTRA_COMPONENT_DIRS
...
Tests from
https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/4253
2019-06-04 13:37:19 +08:00
Sergei Silnov
20156f9702
idf.py: Add support for action specific options
...
Changes argument parsing mechanism from argparse to a new one, that provides better support for extensions and options that are only applicable to specific subcommands,
Breaking changes:
1. All global options should go before subcommands, i.e. `idf.py build -C ~/some/project` will not work anymore, only `idf.py -C ~/some/project build` is acceptable
2. To provide multiple values to an option like `--define-cache-entry` it's necessary to repeat option many times, i.e. `idf.py -D entry1 entry2 entry3` will not work, right way is: `idf.py -D entry1 -D entry2 -D entry3`
At the moment there are 3 options like this: `--define-cache-entry` in base list and `--test-components` and `--test-exclude-components` in the unit test extensions
3. Drops `defconfig` and `bootloader-clean` subcommands
Closes https://github.com/espressif/esp-idf/issues/3570
Closes https://github.com/espressif/esp-idf/issues/3571
2019-06-03 13:07:02 +02:00
Angus Gratton
801f5d6e82
Merge branch 'bugfix/more_cmake_fixes' into 'master'
...
More CMake fixes
See merge request idf/esp-idf!5060
2019-05-27 15:48:25 +08:00
Renz Christian Bagaporo
f125a9aaf4
cmake: restore creation of kconfig_menus.json
2019-05-23 18:39:31 +08:00
Roland Dobai
a52451258e
Fix cmake confserver target
2019-05-23 08:29:05 +02:00
Roland Dobai
0ae53691ba
Rename Kconfig options (components/esp32)
2019-05-21 09:09:01 +02:00
Renz Christian Bagaporo
1cf6964386
ci: check that custom bootloader overrides original
2019-05-17 15:17:54 +08:00
Renz Christian Bagaporo
477fa49fc0
examples: update idf_as_lib example to use new api
2019-05-14 18:01:14 +08:00
Renz Christian Bagaporo
d214bb912f
examples: update with build system changes
2019-05-14 18:01:14 +08:00
Renz Christian Bagaporo
afe57d6ff4
ci: check that build uses ccache when present
2019-05-07 12:00:41 +08:00
Roland Dobai
23ee93ea76
Rename deprecated Kconfig options in a backward compatible way
2019-04-24 12:53:02 +02:00
morris
dbdb299bb1
create xtensa component
...
1. move xtensa specific files out of esp32 component
2. merge xtensa-debug-module component into xtensa
2019-03-27 20:24:28 +08:00
morris
c159984264
separate rom from esp32 component to esp_rom
...
1. separate rom include files and linkscript to esp_rom
2. modefiy "include rom/xxx.h" to "include esp32/rom/xxx.h"
3. Forward compatible
4. update mqtt
2019-03-21 18:51:45 +08:00
Ivan Grokhotkov
416b756ea4
Merge branch 'bugfix/name_conflict_esp32_project_ld' into 'master'
...
esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading
See merge request idf/esp-idf!4484
2019-03-15 11:42:20 +08:00
Angus Gratton
a79c5b8271
esp32: Rename esp32.common.ld to esp32.project.ld to avoid build errors when downgrading
...
Linker script generator produces build/esp32/esp32.common.ld from
components/esp32/ld/esp32.common.ld.in
This works fine until IDF is downgraded to V3.1 which uses components/esp32/ld/esp32.common.ld and
doesn't track build/esp32/esp32.common.ld at all.
At this point, the linker runs in the build/esp32 directory and "-T esp32.common.ld" picks up the
linker script generated .ld file, which causes mis-builds.
As reported on forums: https://esp32.com/viewtopic.php?f=13&t=9684&p=40105
2019-03-14 09:59:31 +11:00
KonstantinKondrashov
126d6b2de2
tools/test_build_system: Add tests with long IDF_VER
2019-03-13 20:43:33 +08:00
Renz Christian Bagaporo
5fb1c1ad3e
ci: test full build never runs '/usr/bin/env python' or similar
2019-03-12 17:26:54 +08:00
morris
9297b07a97
cmake: add spaces2list for COMPONENT_SRCS
...
According to ESP-IDF Cmake build system document, COMPONENT_SRCS should support using spaces to sperate source files.
Closes https://github.com/espressif/esp-idf/issues/3130
2019-03-06 20:55:38 +08:00
Angus Gratton
da390618c2
cmake: Fix psram workaround compiler flag application
...
Previously, this compiler flag was not being applied
regardless of CONFIG_SPIRAM_CACHE_WORKAROUND setting.
Explanation: add_compile_options() only applies to
source files added after the function is run, or in
subdirectories added after the function is run. In
this case, no new source files were being added after
this function was run.
2019-02-26 04:07:51 +00:00
Renz Christian Bagaporo
24284b3afd
ldgen: remove resolution of template includes
2019-02-22 08:25:56 +08:00
Renz Christian Bagaporo
50e860fe8c
ci: test relink on template included file change
2019-02-14 18:58:48 +08:00
KonstantinKondrashov
3d1e064e1a
tools: Add unit tests
2019-01-24 12:13:38 +08:00
Angus Gratton
58acac883d
Merge branch 'bugfix/regenerate_sdkconfig_fails' into 'master'
...
Fix issues with regenerating sdkconfig on modification
Closes #58
See merge request idf/esp-idf!4115
2019-01-24 11:56:52 +08:00
Sagar Bijwe
05220d9cda
CMake: Make IDF_PATH available to Kconfiglib when not explicitly set.
...
When IDF_PATH is not set by the user, cmake infers the same through
other means and sets it as an environment variable. However, some
sub-invocation of cmake may not see this variable as it is not set
in the parent. This change adds a custom command for exporting IDF_PATH
just before invoking ldgen so that IDF_PATH can be used in Kconfig
without any errors.
2019-01-21 17:02:31 +05:30
KonstantinKondrashov
bf925869fe
tool: Add unit test for Kconfig gen
2019-01-16 08:16:09 +08:00
Angus Gratton
78487123bf
Merge branch 'feature/cut_len_for_header_struct' into 'master'
...
build: Add trimming PROJECT_VER and PROJECT_NAME vars
See merge request idf/esp-idf!3927
2018-12-21 07:45:22 +08:00
Renz Christian Bagaporo
5511541d20
ci: fix build test with IDF_PATH unset on Windows
2018-12-13 18:20:51 +08:00
Konstantin Kondrashov
c0f5e58bdc
build: Add trimming PROJECT_VER and PROJECT_NAME vars
2018-12-11 11:23:53 +08:00
Angus Gratton
54532c6189
build example tests: Use portable "sed -i" form
2018-12-06 15:28:18 +11:00
Angus Gratton
d50af8bd53
Merge branch 'bugfix/no_tests_for_unit_test_example' into 'master'
...
cmake: fix error in converting project variables to namespaced ones
See merge request idf/esp-idf!3887
2018-12-05 12:58:42 +08:00
Renz Christian Bagaporo
b11238df4d
ci: add test for setting EXTRA_COMPONENT_DIRS
2018-12-05 10:51:10 +08:00
Konstantin Kondrashov
3b9cb25fe1
esp32: Add firmware version to app
...
Added a new structure esp_app_desc_t. It has info about firmware:
version, secure_version, project_name, time/date build and IDF version.
Added the ability to add a custom structure with a description of the firmware.
The esp_app_desc_t is located in fixed place in start of ROM secotor. It is located after structures esp_image_header_t and esp_image_segment_header_t.
app_version is filed from PROJECT_VER variable (if set in custom make file) or PROJECT_PATH/version.txt or git repo (git describe).
Add API to get app_desc from partition.
2018-12-03 16:52:04 +08:00
Mahavir Jain
a3785792eb
tools/ci: add test case for convert_to_cmake script
...
Following issue was already fixed with earlier commit-id f4cfca4353
Here additional build test case is added and marking issue as closed.
Closes: https://github.com/espressif/esp-idf/issues/2660
2018-11-29 15:15:13 +05:30
Renz Christian Bagaporo
f1f0bd4b1c
ci: update for running cmake examples
2018-11-27 19:56:52 +08:00
Renz Bagaporo
63411fc556
tools: implement linker script generation
2018-11-16 12:42:02 +08:00
Mahavir Jain
79043882d9
tools: fix cmake build script for sdkconfig test
2018-11-14 22:50:12 +08:00
Ivan Grokhotkov
ccfa134533
build system: support for multiple targets
2018-11-11 21:46:02 +08:00
Renz Christian Bagaporo
d9939cedd9
cmake: make main a component again
2018-09-11 09:44:12 +08:00
Angus Gratton
bf10447b82
cmake: Fix issues when IDF_PATH is not set in environment
...
Support cases where IDF_PATH may be passed in on the cmake command line,
or inferred from a (hardcoded absolute or relative) path to project.cmake
2018-06-18 14:48:03 +10:00
Angus Gratton
fdccc19485
cmake build system test: Fix path to sdkconfig.h
2018-05-31 14:46:39 +10:00
Angus Gratton
526496ba20
ci: Allow bot to control branch used for esp-idf-template
2018-05-08 14:44:25 +08:00
Angus Gratton
858b95a924
cmake: Add build system tests
2018-04-30 09:59:20 +10:00