Angus Gratton
6b9784cc45
Merge branch 'master' into feature/cmake_update
2018-05-31 14:46:23 +10:00
Ivan Grokhotkov
74928b9bcb
ci: check for executable flag on source files
2018-05-29 20:07:45 +08:00
Angus Gratton
c70f9db369
confgen: Don't write environment-loaded configuration items to sdkconfig
2018-05-29 16:34:45 +10:00
Angus Gratton
580cfeaaae
idf.py: Print flashing steps at the end of each build
2018-05-29 16:34:45 +10:00
Angus Gratton
f6cd55d2ac
config: Rename mconf to mconf-idf & conf to conf-idf
...
These versions of conf/mconf are forked from the upstream, and the CMake system allows mconf-idf to
be installed externally on the path. So the best option is to rename.
Includes changes to Windows installer for v1.1
2018-05-29 16:34:45 +10:00
Angus Gratton
61aff5162c
mconf: Don't print a recommendation to use 'make' if CMake build system is in use
...
Also add some cmake dependencies to rebuild mconf if its source files change.
2018-05-29 16:34:45 +10:00
Angus Gratton
be4956fe7c
docs: Add some tips about setting the Python interpreter, and a specific check in idf.py
...
Don't show the "Python 2 interpreter" option in menuconfig when using CMake.
This is a stop-gap until we support Python 2 & 3 together in ESP-IDF (soon).
Closes https://github.com/espressif/esp-idf/issues/1924
2018-05-29 16:34:45 +10:00
Angus Gratton
a1fac97f1a
cmake: Fix set_default using value from environment
...
Fixes issue with idf.py passing through Python interpreter, as reported in
https://github.com/espressif/esp-idf/issues/1924
2018-05-29 16:34:45 +10:00
Angus Gratton
cc104eb05b
cmake: Add sdkconfig.h directory to include paths list not just compiler args
...
Also move into 'build/config/' subdir, remove creation of empty include/config dir.
2018-05-29 16:34:45 +10:00
Angus Gratton
2f4079ebb2
cmake: Hide serial port settings in menuconfig when using cmake
2018-05-29 16:34:45 +10:00
Angus Gratton
10eab26854
unit test app: Require 4MB flash
...
PSRAM config unit tests had outgrown the 0x14000 byte allocated factory size.
2018-05-25 12:16:26 +10:00
He Yin Ling
1a1514b69c
unit-test-app: udpate CI related part to README
2018-05-24 03:40:03 +00:00
He Yin Ling
a68b93d6f3
tiny-test-fw: show descriptive error when test case assignment fails:
...
Will give hint when any job failed to assign:
```
Please add the following jobs to .gitlab-ci.yml with specific tags:
* Add job with: psram, ESP32_IDF, UT_T1_1
* Add job with: psram, ESP32_IDF, UT_T1_1
```
2018-05-24 03:40:03 +00:00
He Yin Ling
3b24bc42d2
CI: assign unit test cases according to sdkconfig:
...
We have built unit-test-app with different configs.
Currently we use the config name as tags to match runners.
It's not easy to add new configs (need to update tags to existed runners).
Now we'll parse required test runner tags from `sdkconfig` file.
For example, if config enables `CONFIG_SPIRAM_SUPPORT`, then it requires `psram` tag.
This will make adding new configs easier.
In this commit we change the one behavior of assign test: match keys of
cases should be exactly the same with job tags. This fixes cases select
jobs include their tags, and jobs requires those tags can't be assigned.
2018-05-24 03:40:03 +00:00
Angus Gratton
035dc66cce
Merge branch 'bugfix/esp_err_to_name_windows' into 'master'
...
gen_esp_err_to_name.py: Use normal file I/O instead of mmap()
See merge request idf/esp-idf!2425
2018-05-22 11:31:17 +08:00
Angus Gratton
e8525396dd
test: Allow per-unit-test timeouts
...
Work around for "(WL) write/read speed test" taking >30s in some configs
2018-05-21 12:27:10 +00:00
Angus Gratton
b14bbd4205
gen_esp_err_to_name.py: Use normal file I/O instead of mmap()
...
mmap is different on Python for Windows
2018-05-21 17:34:18 +10:00
Roland Dobai
18e83bcd53
Allow VFS file descriptors in select()
2018-05-18 08:06:33 +02:00
He Yin Ling
9e7a69be88
example test: integrate wifi throughput test to CI
2018-05-15 13:42:27 +08:00
He Yin Ling
2b068f3ceb
tiny-test-fw: fix misc bugs:
...
1. configs are not functional
* decorator will be executed when search case, need to set default config before search case.
2. fix DUT encode/decode errors
* python3 serial don't support write string/unicode, need to convert to bytes first.
* python2 string could failed to encode/decode non-acsii chars
3. fix bug that log folder not created
4. fix bug that test suite name is not correctly passed:
* the keyward arg should be `test_suite_name` not `test_name`
5. fix bug that test stopped on failed case
6. fix DUT `read` don't return all data cache
* `_DataCache.get_data` should first copy all data from queue to data cache and then return to user.
7. fix bug that `expect_all` failed even all expected item passed
8. optimize error info for expect
* print pattern for regular expression when match failed
9. fix bug that set default config doesn't work
2018-05-15 03:29:31 +00:00
He Yin Ling
98d1f05ab5
tiny-test-fw: add utilities:
...
1. Attenuator: control programmable attenuator
2. PowerControl: control APC PDU to power on/off devices
3. LineChart: use matplotlib to draw line chart
2018-05-15 03:29:31 +00:00
He Yin Ling
3b3a915552
tiny-test-fw: implement env.get_pc_nic_info
:
...
this method is used to get mac/ipv4/ipv6 address for one NIC
2018-05-15 03:29:31 +00:00
Ivan Grokhotkov
e9cbf96bd1
mbedtls: re-add version 2.9.0 as a submodule
2018-05-09 23:15:28 +08: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
6f31674b28
cmake: Add ESPORT/ESPBAUD environment variables to idf.py & docs
2018-05-07 18:45:49 +08:00
Angus Gratton
c7f19e76d7
docs: Move main docs to cover CMake
...
Add "GNU Make build system" doc with "cheat sheet" for moving to new system
2018-05-07 18:45:49 +08:00
Angus Gratton
8453806a8c
idf.py: Fix 'idf.py monitor' build & flash targets
2018-05-04 16:05:25 +10:00
Ivan Grokhotkov
0d65f3b7f9
Merge branch 'bugfix/light_sleep_fixes' into 'master'
...
light sleep fixes
See merge request idf/esp-idf!2242
2018-05-02 20:09:36 +08:00
Angus Gratton
9ec14decce
cmake: Fix idf_size.py merge errors
2018-05-01 17:27:39 +10:00
Angus Gratton
c7307de63e
cmake: Automatically pull in winpty for menuconfig, monitor if needed
2018-05-01 17:27:39 +10:00
Angus Gratton
c42b791aaa
cmake: Use prebuilt mconf on Windows
...
Closes https://github.com/espressif/esp-idf/issues/1905
2018-05-01 17:27:39 +10:00
Angus Gratton
99e02d4e42
windows: New ESP-IDF Tools Installer
...
Working on 64-bit Windows only due to Ninja binary.
2018-04-30 10:18:33 +10:00
Angus Gratton
381be65472
cmake: Build all examples in CI
...
Includes some fixes for compile errors/warnings in examples.
2018-04-30 10:18:33 +10:00
Angus Gratton
858b95a924
cmake: Add build system tests
2018-04-30 09:59:20 +10:00
Angus Gratton
1cb5712463
cmake: Add component dependency support
...
Components should set the COMPONENT_REQUIRES & COMPONENT_PRIVATE_REQUIRES variables to define their
requirements.
2018-04-30 09:59:20 +10:00
Angus Gratton
56902f0054
cmake: Write configuration & component metadata to project_description.json
2018-04-30 09:59:20 +10:00
Angus Gratton
f1d3bfc0c7
cmake: Add new flasher_args.json file for IDE parsing, document metadata files better
2018-04-30 09:59:20 +10:00
Angus Gratton
2a3e2b8eed
doc: Use confgen.py to build docs from same code path as config generation
2018-04-30 09:59:20 +10:00
Angus Gratton
b44c8b125f
cmake: Style cleanup, add cmake linter to gitlab CI
2018-04-30 09:59:20 +10:00
Angus Gratton
2ea359ad0c
cmake: Cleanups to work with Windows
2018-04-30 09:59:20 +10:00
Angus Gratton
6bdc49b6e4
cmake: set CCACHE_BASEDIR & CCACHE_NOHASHDIR when using ccache
...
Dramatically improves build performance when building multiple
projects in different directories.
2018-04-30 09:59:20 +10:00
Angus Gratton
9d88d13f77
cmake: convert_to_cmake.py script for converting IDF GNU Make projects
2018-04-30 09:59:20 +10:00
Angus Gratton
2816cf1d67
cmake: Change data_file_to_c to data_file_embed_asm for objcopy compatibility
...
Now generates _binary_filename_start / _binary_filename_end as well as more useful naming.
2018-04-30 09:59:20 +10:00
Angus Gratton
12be399762
cmake: Add link-time dependencies for linker script files
...
Requires some hackery around limitations in CMake's LINK_DEPENDS
2018-04-30 09:59:20 +10:00
Angus Gratton
88df8fd293
cmake: Use cmake_lint project, tidy up all CMake source files
2018-04-30 09:59:20 +10:00
Angus Gratton
15d5e88618
cmake: Automatically include ccache if it's on the path
2018-04-30 09:59:20 +10:00
Angus Gratton
9f8cdd3572
cmake: Add "Preview release" getting start guide & build system documentation
2018-04-30 09:59:20 +10:00
Angus Gratton
95e17d6d92
cmake: Allow GetGitRevisionDescription to take arbitrary directory paths
2018-04-30 09:59:20 +10:00
Angus Gratton
7d9ba66f83
idf.py: Add reconfigure command
2018-04-30 09:59:20 +10:00
Angus Gratton
4d7bc8e8ba
idf.py: Improve status output, error message output
2018-04-30 09:59:20 +10:00
Angus Gratton
abef220b13
cmake: Allow selecting toolchain file based on config
...
Refactor IDF "project" functionality under a wrapping of the default
"project" command, so we can tweak it a bit...
Will need more testing in other environments.
2018-04-30 09:59:20 +10:00
Angus Gratton
04a944598f
cmake: Export compile_commands.json as part of build
2018-04-30 09:59:20 +10:00
Angus Gratton
efb5928934
idf.py build & flash tool
...
Generate flasher args files & .json project info file as part of cmake build
2018-04-30 09:59:20 +10:00
Angus Gratton
7eaf2f4bdb
kconfig: Allow out of tree building, build under cmake build directory
2018-04-30 09:59:20 +10:00
Angus Gratton
cb99531d15
cmake: Generate PHY init data partition as part of the build
2018-04-30 09:59:20 +10:00
Angus Gratton
0bdc12256e
cmake: Add "size" target, update idf_size.py for different linker behaviour
2018-04-30 09:59:20 +10:00
Angus Gratton
1f8e07fd8f
cmake: Add sdkconfig.defaults support
2018-04-30 09:59:20 +10:00
Angus Gratton
be962a9444
cmake: Re-run cmake if submodule commits change or a submodule is deinit-ed
2018-04-30 09:59:20 +10:00
Angus Gratton
4f1a856dbf
cmake: Remove defaults for COMPONENT_SRCDIRS, COMPONENT_SRCS, COMPONENT_ADD_INCLUDEDIRS
...
* Philosophical: "explicit is better than implicit".
* Practical: Allows useful errors if invalid directories given in components as the defaults aren't
always used. Also trims the -I path from a number of components that have no actual include
directory.
* Simplifies knowing which components will be header-only and which won't
2018-04-30 09:59:20 +10:00
Angus Gratton
3fac2b2ddc
cmake: Refactor bootloader_subproject into the bootloader component itself
2018-04-30 09:59:20 +10:00
Angus Gratton
674d398c93
cmake: Add partition table, and .bin file targets
2018-04-30 09:59:20 +10:00
Angus Gratton
3ae4822115
cmake: Add partition table generation
2018-04-30 09:59:20 +10:00
Angus Gratton
ce6748873d
cmake: Add embedding files in components support
...
Add subscribe_publish AWS example and fixes to allow it to build.
2018-04-30 09:59:20 +10:00
Angus Gratton
134f2238bd
cmake: Refactor main cmake project logic
2018-04-30 09:59:20 +10:00
Angus Gratton
7f29593a7d
cmake: Bootloader subproject & "clean" cleanup
2018-04-30 09:59:20 +10:00
Angus Gratton
067a19ad88
cmake: Move global IDF-specific compiler/linker options out of the toolchain file
...
Should restore compatibility with cmake pre-v3.7
2018-04-30 09:59:20 +10:00
Angus Gratton
f04525095f
cmake: Move third-party cmake modules to their own directory
2018-04-30 09:59:20 +10:00
Angus Gratton
68e75dd0df
cmake: Detect missing or out of date submodules during cmake pass
2018-04-30 09:59:20 +10:00
Angus Gratton
35f521afb6
cmake: Add toolchain version check
2018-04-30 09:59:20 +10:00
Angus Gratton
99a2359c5c
confgen: Create config file if missing
2018-04-30 09:59:20 +10:00
Angus Gratton
c671a0c3eb
build system: Initial cmake support, work in progress
2018-04-30 09:59:20 +10:00
Angus Gratton
a538644560
config: Add new Python & kconfiglib-based config management tool
2018-04-30 09:59:20 +10:00
Ivan Grokhotkov
48379b8bbe
unit-test.py: increase timeout for test app start up
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
c61c2a63d0
unity: flush test name before starting the test, use printf everywhere
...
Unit test runner expects to see the test name echoed after test
selection is made. If the unit test immediately goes into sleep mode,
UART output will not be complete, and test runner will not see the
test name. This flushes the stream buffer and waits for UART FIFO to
be empty before starting the test.
Additionally some parts of code used unity_printf and some used
printf. Since unity_printf was only useful during very early tests
when newlib was not available, replace all its usages with printf.
2018-04-26 18:52:45 +08:00
Angus Gratton
fa3205737f
partition_table: Check configured flash size fits in partition table
...
Check happens at build time, so flash size config may need to be changed.
Also fixes MD5_OPT undefined warning, closes https://github.com/espressif/esp-idf/issues/1867
2018-04-26 09:51:55 +10:00
Ivan Grokhotkov
907248b6a7
Merge branch 'feature/nvs_coverage' into 'master'
...
NVS: add power off recovery and coverage test into CI
See merge request idf/esp-idf!2246
2018-04-24 23:42:00 +08:00
Ivan Grokhotkov
4e982d4b18
Merge branch 'feature/idf_size_report_symbols' into 'master'
...
Feature/idf-size: report per-archive symbols and their sizes
See merge request idf/esp-idf!1956
2018-04-20 23:55:19 +08:00
Ivan Grokhotkov
6185e722c3
Revert "Merge branch 'feature/vfs_select' into 'master'"
...
This reverts merge request !2074
2018-04-20 11:51:41 +08:00
Ivan Grokhotkov
9d0751e2b1
ci: support jobs which don’t run unless triggered by name
...
By default, any job will run unless a filter is given, in that case
the filter will determine if the job should run or not. Some jobs do
not need to be run by default, and should only be triggered using the
bot. For such jobs, BOT_NEEDS_TRIGGER_BY_NAME can added to
environment variables.
2018-04-19 15:08:08 +08:00
Ivan Grokhotkov
88d0d6ffb0
Merge branch 'feature/vfs_select' into 'master'
...
Allow VFS file descriptors in select()
See merge request idf/esp-idf!2074
2018-04-19 15:06:02 +08:00
Ivan Grokhotkov
96b4a45cde
Merge branch 'feature/remove_make_dependency_on_git' into 'master'
...
make: remove build system dependency on `git` using some hooks
See merge request idf/esp-idf!2211
2018-04-19 13:01:12 +08:00
Roland Dobai
6852d653bd
Allow VFS file descriptors in select()
2018-04-17 11:25:30 +02:00
Ivan Grokhotkov
790049b3dd
build: remove some debug lines printed when V=0
...
With V=0, build process would print “including .../Makefile.projbuild" lines, causing problems for print_flash_cmd target.
The issue was due to the way macro expansion works in make. To delay evaluation of info function until the execution of expanded block, two dollar signs are required.
Test for print_flash_cmd target added.
2018-04-17 08:04:38 +08:00
Mahavir Jain
4a7ca68596
tools/ci: add test case for build without dependency on git
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-13 17:15:17 +05:30
Ivan Grokhotkov
bcbcdf6f99
build: fix excluding source files outside of component root
...
Since !2190 , source files located outside of the component root
produce object files inside build directory. This change fixes
handling of COMPONENT_OBJEXCLUDE variable for such files. Tests are
added.
2018-04-12 14:28:54 +08:00
Roland Dobai
33480d1a2c
Enable -Wwrite-strings when compiling IDF's own C files
2018-04-10 08:53:33 +02:00
Angus Gratton
53234ef2bc
Merge branch 'refactor/rtc_split_module' into 'master'
...
bugfix(rtc): make sure peripherals (DAC, HALL) are turned off before conversion.
See merge request idf/esp-idf!1848
2018-04-04 09:00:58 +08:00
Ivan Grokhotkov
d7c8866896
Merge branch 'test/support_multi_stage_unit_test_case' into 'master'
...
unit-test-app: support multi stage unit test case
See merge request idf/esp-idf!2139
2018-04-03 18:20:16 +08:00
He Yin Ling
fee844d22c
unit-test-app: support multi stages test
2018-03-30 11:38:49 +08:00
Michael (Xiao Xufeng)
cef8baf424
bugfix(rtc): make sure peripherals (DAC, HALL) are turned off before conversion.
...
refactor structure of ``rtc_module.c`` to make it more clearly.
Closes https://github.com/espressif/esp-idf/issues/1517
2018-03-28 17:10:01 +08:00
Anton Maklakov
f3d61015f7
build: Fix problems with building kconfig and generating sdkconfig
...
We had some problems:
simultaneous compiling of kconfig in the same tree;
attempt to use menuconfig in some examples and ut in batch mode (w/o interactive console)
Also increase debug abilities in CI:
force non-interactive building;
add variable DEBUG_SHELL to toggle verbosity of scripts
2018-03-28 10:39:20 +08:00
Angus Gratton
6acb38af4c
Merge branch 'bugfix/idf_monitor_windows10' into 'master'
...
idf_monitor: Fix bug with Windows 10 sometimes printing a character twice
See merge request idf/esp-idf!1964
2018-02-27 06:21:53 +08:00
Angus Gratton
672f8b057e
Merge branch 'feature/idf_size_sort_archives' into 'master'
...
Feature/idf size sort on size
See merge request idf/esp-idf!1957
2018-02-22 07:31:56 +08:00
Angus Gratton
3e83cfd77c
idf_monitor: Fix bug with Windows 10 sometimes printing a character twice
...
Turns out when IOError is thrown by the console, the character is
also successfully displayed.
Revisits fix from https://github.com/espressif/esp-idf/issues/1136
As reported https://esp32.com/viewtopic.php?f=14&t=4766&p=20637
2018-02-21 08:35:43 +11:00
Kedar Sovani
c8ef747c0a
idf_size: Report per-symbol size from the map file
...
Report as per the relevant sections output in the 'archives' output
2018-02-19 17:13:56 +05:30
Kedar Sovani
c9e6ed7d60
idf_size: Sort output on total-size instead of filename
2018-02-19 11:50:46 +05:30
Roland Dobai
4322e31c98
Make it easier to look up error messages
...
tools/gen_esp_err_to_name.py generates
components/esp32/esp_err_to_name.c for lookup of the error codes from
all of the IDF project and easily identify all codes in one place
2018-02-15 14:19:03 +01:00
He Yin Ling
532107c958
Merge branch 'test/ut_script' into 'master'
...
test: use the tiny-test-fw to run the unit test in CI
See merge request idf/esp-idf!1558
2018-02-06 18:03:22 +08:00
Ivan Grokhotkov
7ade59db6a
Merge branch 'bugfix/idf_monitor_fixes' into 'master'
...
idf_monitor bug fixes
See merge request idf/esp-idf!1889
2018-02-05 20:59:33 +08:00
houchenyao
5b8a9478a3
CI: new CI ut framework, and can run it in local PC
2018-02-05 06:58:22 +00:00