Commit Graph

59 Commits

Author SHA1 Message Date
Yakun Xu 7b0cb98445 [posix] add argument to set max power table (#4878)
This commit adds a max power table for POSIX platform, which can
customize the max allowed transmit power of each channel with the
command line argument --max-power-table.
2020-04-30 14:23:16 -07:00
Moandor 8d6610f3d5 [continuous-integration] add POSIX SPI build (#4913)
This adds a CI build for POSIX platform with SPI enabled.

Also fixed a build error in `spi_interface.cpp`.
2020-04-30 10:42:44 -07:00
Simon Lin 56cf651fb2 [test] fix script/test on macOS (#4916) 2020-04-29 23:02:58 -07:00
Rongli Sun 2e85801083 [dua] Domain Unicast Address generation (#4854)
This commit includes
[Y] add `OPENTHREAD_CONFIG_DUA_ENABLE` option for DUA feature
[Y] generate DUA via SLAAC
[Y] update test script to verify communication via DUA
2020-04-29 22:57:50 -07:00
Simon Lin c169c2c552 [tests] add Thread 1.2 all features build test (#4850) 2020-04-27 23:46:28 -07:00
Yakun Xu a58163c9a3 [test] allow extra options (#4891)
Example:

```bash
OT_OPTIONS="-DOT_FULL_LOGS=ON -DOT_LOG_LEVEL_DYNAMIC=OFF" ./script/test clean build
```
2020-04-27 09:37:29 -07:00
Jonathan Hui c48f84d9ea [pretty] add markdown support (#4881) 2020-04-24 16:22:00 -07:00
Yakun Xu 32f8274395 [cmake] enhancements for supporting cmake in ot-br-posix (#4876) 2020-04-24 16:21:06 -07:00
Jonathan Hui c0075d42c3 [pretty] fix yapf version to 0.29.0 (#4880)
v0.30.0 (released on 2020-04-23) introduces formatting changes that
are not compatible with v0.29.0.
2020-04-23 17:14:58 -07:00
Jing Ma 8822fcd590 [cmake] add support for cc2650, qpg6095, samr21 (#4729) 2020-04-22 18:43:44 -07:00
Yakun Xu c034fd0c0c [size-report] support local check (#4866) 2020-04-21 15:37:46 -07:00
Li Cao e839100be1 [cmake] enable running simulation unit tests using cmake (#4842)
In this commit, we would be able to run all the simulation unit tests
easier with cmake:

./script/test clean build unit_tests
2020-04-20 20:52:38 -07:00
Yakun Xu 1089aa9ff4 [continuous-integration] move android check to GitHub Actions (#4829) 2020-04-17 16:46:44 -07:00
Yakun Xu fd6cde5981 [size-report] support github actions (#4825) 2020-04-16 23:22:01 -07:00
Jing Ma 911010a9bf [cmake] add support for kw41z (#4692) 2020-04-14 18:14:36 -07:00
Yakun Xu 0cd682f048 [logging] dynamic level enhancements (#4809)
* Add cli command to get/set log level
* Add cmake option to enable dynamic log level
* Aggregate logfilename as sub-command of `log` command
* Add log level test
* Update readme
2020-04-11 22:11:38 -07:00
Jing Ma a6adf0322a [cmake] add support for cc2652 (#4691) 2020-04-09 13:11:13 -07:00
Jing Ma 64e03b8347 [cmake] add support for cc1352 (#4690) 2020-04-01 23:53:34 -07:00
Jiacheng Guo e2be5c475c [posix] add support for multicast group join (#4687)
Listen for mld reports sent by kernel to capture user multicast group
join and forward the addresses to OpenThread interface.

See openthread/wpantund#444 for more background.
2020-03-30 14:14:55 -07:00
Jonathan Hui ba19a298a1 [script] add build option to check-posix-pty (#4748) 2020-03-27 23:16:51 -07:00
Jonathan Hui dc0ae98927 [github-actions] migrate more checks from Travis (#4746)
- gn-build
- distcheck
- posix-spi
- posix-ncp-rcp migrate
- time sync
2020-03-27 14:32:59 -07:00
Rongli Sun 315a27bf08 [bbr] add backbone router service (#4430)
- Introduce BACKBONE_ROUTER option for Backbone Router function.
- Implement Backbone Router service registration.
  - Add basic Backbone Router service.
  - Primary Backbone Router restores its Dataset when reattached after
    short reset, increases sequence number and re-register to Leader.
  - Add configurable jitter for Backbone Router service registration.
- Add Backbone Router service test.
2020-03-26 08:54:23 -07:00
Jonathan Hui 4cb09ec637 [continuous-integration] initial migration to GitHub actions (#4728) 2020-03-24 20:45:19 -07:00
Yakun Xu cb55c530bd [cmake] clean up cmake options (#4727)
* enable optional features
* remove OT_NCP
* remove OT_NCP_RADIO_ONLY
* sort options
2020-03-24 07:29:48 -07:00
Rongli Sun 736cb27d3a [script] let alias to take effect (#4708) 2020-03-19 22:24:03 -07:00
Jonathan Hui 4ee8010558 [script] update make-pretty to bash (#4698)
- Also update CONTRIBUTING.md and STYLE_GUIDE.md.
2020-03-18 19:04:10 -07:00
Yakun Xu 08c7113336 [test] build with cmake instead of automake (#4653)
- Use cmake to build.
- Use rcp instead of transceiver simplicity.
- Add virtual time options for cmake.
- Enable readline support for posix apps.
- Use ninja instead of make.
2020-03-12 08:40:23 -07:00
Yakun Xu 653745911f [build] rename posix-app to posix (#4661) 2020-03-11 11:42:30 -07:00
Yakun Xu 34b83ae6c5 [script] simplify pretty (#4660)
* No need to bootstrap and configure for make pretty
* Use parallel to speed up make pretty
2020-03-10 22:15:07 -07:00
Pratik Raj 2e09531745 [script] optimization debian package manager tweaks (#4656)
By default, Ubuntu or Debian based "apt" or "apt-get" system installs
recommended but not required packages.

By passing "--no-install-recommends" option, the user lets apt-get
know not to consider recommended packages as a dependency to install.

This results in smaller downloads and installation of packages.

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2020-03-10 15:34:22 -07:00
Jonathan Hui 36e51132c8 [tests] fix 1.2 test env and travis (#4614) 2020-03-04 20:17:56 -08:00
Jonathan Hui 2b828c164b [script] make pretty python or clang (#4632)
Reformating cpp

```bash
./script/make-pretty clang
```

Reformating python

```bash
./script/make-pretty python
```
2020-03-04 10:23:00 -08:00
Yakun Xu a551133493 [build] rename example platform POSIX to simulation (#4555)
Having examples/posix and src/core/posix is confusing. This commit
renames the examples posix platform to simulation.
2020-02-27 12:55:56 -08:00
Yakun Xu a90246b760 [build] make OpenThread POSIX deb packages (#4592)
This commit enables building OpenThread deb packages:

* openthread-simulation: simulation of OpenThread
* openthread-daemon: daemon of OpenThread Host
* openthread-standalone: standalone binaries of OpenThread Host
2020-02-25 18:20:14 -08:00
Rongli Sun b339a8946b [travis] test parent selection rules (#4423)
This commit has five scenarios to test the four Mesh Impacting
Criteria and one Child Impacting Criterion (version).
2020-02-25 14:34:53 -08:00
Yakun Xu b01754cabf [mle] add enhanced keep-alive (#4325)
This commit introduces the first Thread 1.2 feature - enhanced keep
alive.

This commit also introduces the build config
OPENTHREAD_CONFIG_THREAD_VERSION to include/exclude Thread 1.2 code.
2020-02-24 21:03:19 -08:00
Yakun Xu 33808ebfba [style] apply google python style guide (#4501)
This commit applies and enforces Google's python style for tests.
2020-02-04 10:27:50 -08:00
Neal Jackson 45d78d7871 [build] change macOS bootstrapped GCC to official ARM brew tap (#4514)
Change to using ARM's official toolchain tap.
2020-01-29 22:14:17 -08:00
kangping 05ba4c29f4 [script] add ppa without user input (#4474) 2020-01-14 12:58:25 -08:00
kangping 420479d899 [script] fix linking clang-format-6.0 on Mac OS X (#4414) 2019-12-17 08:52:26 -08:00
Yakun Xu 862a2b3d02 [script] use python version specified in test script (#4226) 2019-10-08 09:29:27 -07:00
Yakun Xu e4dc606ec8 [script] add a script to make source pretty (#4167)
This commit adds a script to make source pretty in a temporary
directory.
2019-09-16 18:08:29 -07:00
Rongli Sun 73ffd2a9dc [thci] bug fixes and clean up the code style (#3817)
This commit squashes the approved updates, mainly include
1) bug fix or enhancement
   - make pollperiod take effect
   - fix the issue in finding the address of the specific address
     (case-sensitive issue introduced in #3639)
   - make `__sendCommand` more robust for possible extra serial output

3) Update along with master code and other minor updates
   - the command used to find specific address (#3856)
   - the IP6Prefix string len (from 20 to 19)
   - correct typos

2) Code Style
   - use single quotes for code
   - update to use `print ()` and format `%`
   - format via with `black` tool locally
     `python3 -m black -l 79 -S tools/harness-thci -t py27`
   - add travis python check example for THCI with `flake8` tool

notes: require OT code with #3856 (get specific address) and #3862 (`joiner id`)
2019-06-17 09:03:55 -07:00
Kamil Sroka 8c08fd8815 [build] rename ncp_radio to rcp (#3580) 2019-06-05 10:12:50 -07:00
Jonathan Hui 92e4d89f64 [travis] check/fix EOF newline on pretty/pretty-check (#3671) 2019-03-12 10:46:58 -07:00
Yakun Xu 16c904955a [test] fix on macOS (#3467) 2019-01-17 02:58:35 -08:00
Yakun Xu a42efee470 [script] add script to run cert tests (#3397) 2019-01-07 09:03:36 -08:00
Jonathan Hui 4ababdce2d [bootstrap] install arm gcc toolchain on Raspbian (#3392) 2018-12-27 15:44:26 -08:00
Jonathan Hui edb7982f02 [bootstrap] add -y option to apt-get install (#3356) 2018-12-10 11:43:13 -08:00
Yakun Xu aa0c3a7a70 [script] clang-format bootstrap on macOS (#3242) 2018-10-31 10:18:08 -07:00