Commit Graph

51 Commits

Author SHA1 Message Date
Li Cao 8dadae2ea1 [format] upgrade clang-format to 19 (#11783)
We just updated the version from 14 to 16. But very unfortunately
clang-format-16 was just deprecated recently. So this time we update
the version to the latest available one. There are newer releases than
19 (like 20) but as I tested, sudo apt-get install -y clang-format-19
can work while 20 doesn't work.

misc-include-cleaner in clang-tidy-19 exerts a very strict check which
requires to directly include all headers for every symbols in the
source file. However in our current code we intentionally use some
indirect include. So this commit disables misc-include-cleaner.
2025-08-06 10:49:52 -07:00
Li Cao 6c6e99ee7c [style] upgrade clang-format and clang-tidy from 14 to 16 (#11682) 2025-07-10 18:19:26 -07:00
Yakun Xu 6b03321cb2 [style] apply IWYU to public headers (#11580)
It would be easier to use OpenThread public headers if they are
self-contained and follows the IWYU style guide. This commit fixes some
style issues to make the public headers self-contained and IWYU. The
existing pretty check is also extended to verify the OpenThread public
headers are self-contained and follows IWYU.
2025-06-11 06:37:41 +09:00
Yakun Xu 8c23a588ca [script] install gtest and gmock (#11358) 2025-03-24 08:29:53 -07:00
Jonathan Hui de5afd0e36 [build] cleanup autotools references (#9242) 2023-06-30 15:14:13 -07:00
Sylvain Baubeau 9ff2eefee0 [bootstrap] install bzip2 to uncompress arm toolchain (#8621) 2023-02-14 13:57:41 -08:00
Mason Tran f765e1fa30 [clang-tidy] add missing symlinks to bootstrap (#8507)
I needed to add these symlinks because `script/clang-tidy` couldn't
find these files.
2022-12-08 14:20:22 -08:00
Jonathan Hui 49c5736f70 [clang-tidy] update to v14 (#8490) 2022-12-07 16:23:20 -08:00
Jonathan Hui 351298e85f [clang-format] update to v14 (#8490) 2022-12-07 16:23:20 -08:00
canisLupus1313 593c2b0a8d [bootstrap] remove brew from apt package installations (#8399)
This commit chages incorrect pkg manager tool used in
`install_packages_pretty_format` from brew to apt-get.
2022-11-17 08:52:22 -08:00
Robert Quattlebaum 8095a086d7 [bootstrap] Explicitly use arm-none-eabi-gcc from armmbed (#7917)
The bootstrap script taps `armmbed/formulae`, and then tries
to install `arm-none-eabi-gcc` from that tap. However, if the
user has already tapped a different tap that offers
`arm-none-eabi-gcc`, then the install will fail.

This change removes the ambiguity of the install by specifying
the tap to use.
2022-07-19 14:35:19 -07:00
Jonathan Hui b9fadd227b [github-actions] use --no-check-certificates when invoking wget (#7011) 2021-09-15 19:58:03 -07:00
Łukasz Duda 8b63efe2ae [bootstrap] add support for Ubuntu on RaspberryPi (#6647)
Summary of changes:
- Enable building OpenThread RCP image on the Raspberry Pi (aarch64)
  directly (using Ubuntu)
- Fix problem with not having access to the /opt folder as a user
2021-05-19 19:35:14 -07:00
Simon Lin d5855ab74b [style] bump yapf version to 0.31.0 (#6434) 2021-04-12 07:30:27 -07:00
Li Cao 1c0d295a04 [script] fix warning string for mdv (#6096)
mdv is only used to post size report and can not format
markdown. Update the warning string to avoid confusion.
2021-01-20 14:12:00 -08:00
Matthias Deimbacher ba97f96fc7 [bootstrap] overwrite existing links (#6094)
Create links with forced overwrite flag to prevent a failing script if
a link already exist.
2021-01-19 10:32:39 -08:00
Leon Steenkamp b507527002 [bootstrap] fix gcc-arm-none-eabi install (#6081)
Add fix to extract archive to /opt rather than current directory
which is /tmp
2021-01-17 09:34:51 -08:00
Li Cao 8625603401 [bootstrap] fix pretty format install (#6066) 2021-01-14 10:17:27 -08:00
Li Cao df047ed5cb [scripts] optional install pretty format for Raspbian in bootstrap script (#6035)
It seems to be unnecessary to install these format dependencies when
setting up OpenThread on a Raspbian (Mostly people don't develop or
submit PR from a Raspberry pi). So by default don't install these
format dependencies on Raspbian to save time.
2021-01-04 08:57:20 -08:00
Simon Lin 1671adc736 [bootstrap] show warning but not fail when install llvm@9 failed (#5751)
This commit allows bootstrap not to fail but print warning if
installing llvm@9 or clang-format-9 or clang-tidy-9 failed. This has
been the best practice for installing other pretty tools.
2020-11-04 19:26:16 -08:00
Jonathan Hui 0eecd1c481 [pretty] downgrade to clang-format/tidy v9.0 (#5761) 2020-11-03 07:17:05 -08:00
Simon Lin de6d0e883e [style] clang-tidy misc enhancements (#5695)
This commit introduces misc clang-tidy enhancements:
- Avoid creating symlinks in /usr/bin directory
- Search for clang-tidy-10 executables
- Fix potential bootstrap fail: permission denied in /opt directory
2020-10-23 10:25:55 -07:00
Jonathan Hui 700ef9fe93 [script] add clang-tidy check and fix (#5675) 2020-10-22 10:36:59 -07:00
Jonathan Hui a740350c5c [bootstrap] use sudo when creating arm symlinks (#5668) 2020-10-19 21:20:40 -07:00
Yakun Xu c8ba04702c [bootstrap] fix link to clang-format-10 (#5633) 2020-10-11 23:16:15 -07:00
Jonathan Hui 58b0486bcd [clang-format] update to clang-format-10 (#5616) 2020-10-07 21:17:44 -07:00
Jonathan Hui 5806432619 [script] fix arm-gcc toolchain install on ubuntu (#5613) 2020-10-07 12:19:46 -07:00
Yakun Xu 4886b53b5c [github-action] remove unused apt source lists (#5237)
These sources break easily, removing them so that apt-get update
doesn't fail.
2020-07-15 10:48:23 -07:00
Jonathan Hui 6930dd3603 [bootstrap] update bootstrap user messages (#5161)
- Indicate that pretty tools are primarily used for code contributions.

- Change to bash.
2020-06-30 08:47:01 -07:00
Marvin ROGER 8856ce132d [bootstrap] add missing newlib on Ubuntu >= 20.04 (#5100) 2020-06-15 11:15:30 -07:00
Simon Lin 9aadfd0cdf [script] install shellcheck in bootstrap (#5067) 2020-06-11 18:26:18 -07:00
Yaoxing Shan f0d07ae6d3 [bootstrap] remove PPA on Ubuntu 20.04 and later (#5009) 2020-06-02 21:17:15 -07:00
Yakun Xu ba0b896b20 [continuous-integration] use apt-get instead of apt (#5032)
This commit changes apt to apt-get for the WARNING in build logs:

WARNING: apt does not have a stable CLI interface. Use with caution in
scripts.
2020-06-01 17:03:33 -07:00
Yakun Xu 50cfda10b1 [script] install shfmt (#4989)
This commit installs shfmt in script/bootstrap.
2020-05-27 16:12:22 -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
Yakun Xu c034fd0c0c [size-report] support local check (#4866) 2020-04-21 15:37:46 -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
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
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 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
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
Jonathan Hui 5e4be05907 [style] change to clang-format-6.0 (#3222) 2018-10-29 12:38:06 -07:00
Yakun Xu ab55bece52 [code-style] require clang-format-5.0 (#2645) 2018-04-04 09:28:00 -07:00
Jonathan Hui d9b498079b [setup] add basic macos tools (#2332) 2017-12-13 05:48:51 +00:00
Jonathan Hui e98bbcc4e6 [bootstrap] reduce dependencies to bare minimum needed for building (#2389) 2017-12-06 16:48:43 +00:00