Ivan Grokhotkov
89e0ecc272
build system: add IDF_VER environment variable and preprocessor define
2017-01-11 00:24:50 +08:00
Wu Jian Gang
e387a16e51
Merge branch 'feature/Add_OTA_Demo' into 'master'
...
esp32 examples: Add OTA Demo
this demo would show you an OTA workflow and how to make it run.
See merge request !324
2017-01-06 16:15:14 +08:00
Ivan Grokhotkov
6f578796d3
Merge branch 'bugfix/ci_build_example_failures' into 'master'
...
Fix CI build example not failing on errors
See merge request !357
2017-01-05 00:48:27 +08:00
Angus Gratton
03551ec2da
build system: Add 'make monitor' target from arduino-esp32
...
Originally added to arduino-esp32 by @me-no-dev. It's so useful, we
want it in esp-idf as well! :)
2017-01-03 10:59:10 +11:00
Angus Gratton
6b87419d42
CI build_examples: Don't stop on first failed example, print failure summary
2016-12-30 17:21:16 +11:00
Angus Gratton
79d6d9f701
CI build_examples: Correctly detect example build failures
...
"pipefail" regression when fail-on-warnings was added...
2016-12-30 16:52:58 +11:00
Angus Gratton
2350288a33
examples: Move sdkconfig.defaults support into build system
...
Is used fairly widely, and a little bit buggy in the form
where it was in each Makefile (didn't always get copied in place).
2016-12-29 17:37:30 +08:00
Ivan Grokhotkov
05fcdcfedb
Merge branch 'bugfix/make_erase_flash' into 'master'
...
build system: Fix bug where erase_flash was always invoked for flash
Order-only prerequisites do not work for phony targets!
See merge request !337
2016-12-25 09:13:58 +08:00
Angus Gratton
abb7668af7
build system: Fix bug where erase_flash was always invoked for flash
...
Order-only prerequisites do not work for phony targets!
2016-12-22 16:37:28 +11:00
Angus Gratton
578b627d9b
Merge branch 'bugfix/build_system_tilde' into 'master'
...
Build system: Allow IDF_PATH to contain ~ or C:/
See github issues
* https://github.com/espressif/esp-idf/issues/118
* https://github.com/espressif/esp-idf/issues/166
(This is easier to work around in the build system than to document.)
See merge request !315
2016-12-22 12:14:16 +08:00
Ivan Grokhotkov
a760eb3980
Merge branch 'feature/erase_flash' into 'master'
...
Build system: Add `make erase_flash` target
See merge request !328
2016-12-22 09:53:25 +08:00
Angus Gratton
de8ecdd3c1
build system: Fix Windows case when IDF_PATH contains colons (ie C:/)
...
Closes github #166 https://github.com/espressif/esp-idf/issues/166
2016-12-22 10:36:25 +11:00
Angus Gratton
59e0f63d37
Build system: Add make erase_flash
target
2016-12-20 10:00:04 +11:00
Angus Gratton
d6fafd00db
Secure boot: Option for app & partition table signing to happen outside build system
2016-12-19 13:12:05 +11:00
Angus Gratton
9d8e110202
Build system: Deal with the case where IDF_PATH contains ~
...
See github issue https://github.com/espressif/esp-idf/issues/118
(This is easier to work around in the build system than to document.)
2016-12-16 11:30:37 +11:00
Angus Gratton
4f637034e8
build system tests: Add test case for sdkconfig-triggered recompilation
2016-12-15 08:45:32 +11:00
Angus Gratton
49be64a716
build system: Generate dependency make rules for assembler source
...
Was previously only C, C++.
2016-12-15 08:44:48 +11:00
Angus Gratton
487548e7dd
Merge branch 'bugfix/build_system_linker_script_deps' into 'master'
...
build system: Linker scripts or binary libraries should trigger a re-link
Add binary libraries and linker scripts to the list of dependencies for the ELF file.
Fixes TW7816.
See merge request !307
2016-12-15 05:38:54 +08:00
Angus Gratton
311b7040d5
Merge branch 'feature/make_size' into 'master'
...
Add the size target to project Makefile
Github pull request https://github.com/espressif/esp-idf/pull/154
See merge request !305
2016-12-13 07:25:35 +08:00
Jonathan Dumaresq
2a22dc082b
Add the size target to project Makefile
2016-12-13 10:03:51 +11:00
Angus Gratton
bbe1bceda8
build system: Project ELF should depend on linker scripts, binary libraries
...
TW#7816
2016-12-12 15:58:53 +11:00
Angus Gratton
9a378bca0e
build system: Be specific about esp-idf submodule update warnings
2016-12-12 15:58:50 +11:00
Angus Gratton
bab1d49f1f
Merge branch 'feature/esptool_flash_encryption' into 'master'
...
Flash encryption support
Flash encryption support in build system, tooling
To come in future MR:
* On-device key generation on first boot (for production devices), need to finalise testing of bootloader entropy seeding.
* spi_flash_encrypted_write to support non-32-byte block writes (at least optionally.)
* I think a lot of the bootloader_support component can possibly be rolled into "spiflash" and other components, to use a common API.
See merge request !240
2016-12-12 06:50:46 +08:00
Angus Gratton
94d2f77643
build system: Remove FLAGS_XXX variable option, replace with per-target overrides
...
Use for targeted disabling of warnings in LWIP.
2016-12-07 13:49:09 -08:00
Angus Gratton
1613c180e0
CI build_examples.sh: Fail on warnings, even with -Wno-error
2016-12-06 10:39:56 -08:00
Angus Gratton
506c8cd964
secure boot & flash encryption: Rework configuration options
...
Add UART bootloader disable options for flash encryption
2016-12-01 23:49:12 -08:00
Angus Gratton
d0801fdbab
Merge branch 'feature/sha_tls_integration' into 'master'
...
SHA acceleration integrated to mbedTLS incl. TLS sessions
Uses hardware SHA acceleration where available, fails over to software where not available.
Ref TW7112
See merge request !232
2016-11-25 10:12:29 +08:00
Ivan Grokhotkov
137c027274
Merge branch 'feature/integrate_unit_tests' into 'master'
...
Integrate unit tests into build system
This MR moves unit tests from esp-idf-tests repository into 'test' subdirectories of respective components.
Tests are run using a runner app in tools/unit-test-app.
This needs a bit of cleanup:
1. remove extra newlines added to makefiles,
2. re-format unit tests code which has tabs
3. write a document on using this test app
4. maybe some refactoring in project.mk
I think 1&2&4 need to be done in this MR, while 3 may be done in a follow-up one.
See merge request !221
2016-11-23 12:13:39 +08:00
antti
15d96eccdb
add build all unit tests in project.mk and update doc
2016-11-23 11:42:12 +08:00
Angus Gratton
0b75ff5a6d
Merge branch 'bugfix/build_system_secure_boot_embed' into 'master'
...
Build system: Fix a bug with embedding binaries in object files
Sometimes paths were generated absolute, need to keep those as-is
See merge request !228
2016-11-23 11:35:22 +08:00
Angus Gratton
5ac7810480
build system: Fix null-terminating of text files for embedding on OS X
...
Ref github #112
2016-11-23 08:49:15 +11:00
Angus Gratton
c48612e516
mbedTLS SHA acceleration: Allow concurrent digest calculation, works with TLS
...
SHA hardware allows each of SHA1, SHA256, SHA384&SHA512 to calculate digests
concurrently.
Currently incompatible with AES acceleration due to a hardware reset problem.
Ref TW7111.
2016-11-22 20:42:38 +11:00
antti
d390449371
add unit tests to esp-idf
...
rename nvs host test folder, modify .gitlab-ci.yml
remove unit-test-app build
re-format unit test files
remove extra newlines in project.mk
some refactoring for unit test part in project.mk
add build files of unit-test-app in gitignore
add README.md for unit test app
correct headings in README.md
remove files and make minor tweaks in unit test app
update .gitlab-ci.yml to use unit test app
delete unused lines in component_wrapper.mk
delete periph_i2s.h and lcd test
add text floating point in components/esp32/test/Kconfig
correct idf test build paths in .gitlab-ci.yml
2016-11-22 14:45:50 +08:00
Angus Gratton
4261fc5ef7
build system: If esp-idf makefiles or component.mk changes, recompile source
2016-11-21 20:56:40 +11:00
Angus Gratton
ed0612c56b
Build system: Fix a bug with embedding binaries in object files
...
Sometimes paths were generated absolute, need to keep those as-is
2016-11-21 17:45:28 +11:00
Angus Gratton
12dd886ee1
build system: Use correct objcopy arguments for object format
...
Avoid ambiguous argument error on some platforms
Ref internal discussion !198
squash! build system: Use correct objcopy --input-target argument not --input
2016-11-17 14:32:56 +11:00
Angus Gratton
872a481cf1
build system: When embedding binary files, fix re-generating on partial builds
...
When embedding a generated file (ie secure boot public key data), the
file was being re-generated each time.
2016-11-17 09:18:51 +11:00
Angus Gratton
24b4c17ead
build system: Refactor SubmoduleCheck to work project-wide
...
Required at project level because some components use header files in
other components' submodules, and one component with a
submodule (esptool.py) doesn't have or need a component.mk.
2016-11-17 09:18:51 +11:00
Angus Gratton
4eeb2bc41e
build system: Fix embedding files which are themselves generated by the
...
build system
Used by secure boot, which generates the secure boot signing key inside build/.
2016-11-17 09:18:51 +11:00
Angus Gratton
60f29236f6
Build system: Raise warning level
...
Default esp-idf builds now show -Wextra warnings (except for a few:
signed/unsigned comparison, unused parameters, old-style C declarations.)
CI building of examples runs with that level raised to -Werror, to catch
those changes going into the main repo.
2016-11-16 15:57:34 +11:00
Angus Gratton
c04f05ee84
build examples: Only build verbose on failure, save on log output
2016-11-14 15:29:27 +11:00
Angus Gratton
c15024e629
Merge branch 'master' into feature/build_component_project_vars
2016-11-14 14:54:41 +11:00
Angus Gratton
ea4005e673
Merge branch 'feature/esptool_secure_boot' into 'master'
...
Secure boot support
Also includes a lot of esptool.py changes (two new command line tools, espefuse.py and espsecure.py)
https://github.com/themadinventor/esptool/compare/feature/esp32_v20_refactor...feature/esp32_secure_boot?expand=1
See merge request !163
2016-11-14 11:32:04 +08:00
Angus Gratton
e459f803da
secure boot: Functional partition table & app signature verification
2016-11-14 11:08:42 +11:00
Angus Gratton
64f3893cb9
secure boot: Derive secure bootloader key from private key
...
Means only one key needs to be managed.
2016-11-14 11:08:42 +11:00
Angus Gratton
b5de581399
Secure boot: initial image signature support
2016-11-14 11:08:42 +11:00
Angus Gratton
f9e9e6b938
Build system: Change deprecation message to include component path, easier to fix
2016-11-14 10:57:45 +11:00
Angus Gratton
cc510c1d95
build system: Remove make 3.81 "component_project_vars.mk: No such file or directory" messages
...
Also add an explicit make version check & warning.
2016-11-14 10:55:58 +11:00
Angus Gratton
341593f7d2
build system: Remove need for $(Q) macro in recipes, use --silent in MAKEFLAGS instead
2016-11-11 12:32:47 +11:00
Angus Gratton
07f36a9437
Build system: Use ifndef X in makefiles instead of ifeq("$(X)","")
2016-11-10 18:34:43 +11:00