commit | 0c03fa83f2fce2530a8f043d553edf5f67e91348 | [log] [tgz] |
---|---|---|
author | Martin Turon <mturon@google.com> | Tue May 26 15:43:11 2020 -0700 |
committer | GitHub <noreply@github.com> | Tue May 26 15:43:11 2020 -0700 |
tree | 6b2daab3fa139990998e3dc4785744a5ad7b633f | |
parent | 9c558bf23610343ce287252df61387f7b0eaf70a [diff] |
[linux] Land the First (1st) of Nine (9) Phases for the Linux DeviceLayer Adapation (#614) * [linux] Add initial Linux platform DeviceLayer. - Adds Device Layer for Linux. - Uses SystemLayer Sockets. - Entropy and time implementations. - Stub out ble, connectivity, and configuration / storage for follow-on PR. - Uses pthreads for mutex and tasks. - Uses std::chrono for monotonic system time. * [linux] Add PlatformMgr tests. * [linux] Add CircleCI target for linux device layer. * [linux] Add fixme reference to LWIP ifdef. * Restyled by clang-format * [linux] fix header order; fix build After the latest rebase, the following error was coming up: ``` ../../src/include/platform/ConnectivityManager.h:252:40: fatal error: platform/CHIP_DEVICE_LAYER_TARGET/ConnectivityManagerImpl.h: No such file or directory 252 | #define CONNECTIVITYMANAGERIMPL_HEADER <platform/CHIP_DEVICE_LAYER_TARGET/ConnectivityManagerImpl.h> ``` Though CHIP_DEVICE_LAYER_TARGET=Linux is set using AC_SUBST in configure.ac, the definition, which was working fine before, was mysteriously getting lost. It turns out the header re-ordering PR was the root cause of the issue. The fix was to change all sources in src/platform/Linux to move this include first: #include <platform/internal/CHIPDeviceLayerInternal.h> The error did not lead to the fix in an obvious way, so the issue is being documented here. * [linux] Update linux-embedded target to follow circleci matrix template. * [linux] Fix naming nits. Co-authored-by: Restyled.io <commits@restyled.io>
All documentation is inside of the docs section
Instructions about how to build and develop CHIP can be found here.
There are numerous avenues for CHIP support:
The CHIP repository is structured as follows:
File / Folder | Contents |
---|---|
.default-version | Default CHIP version if none is available via source code control tags, .dist-version , or .local-version . |
bootstrap | GNU autotools bootstrap script for the CHIP build system. |
bootstrap-configure | Convenience script that will bootstrap the CHIP build system, via bootstrap , and invoke configure . |
build/ | Build system support content and build output directories |
BUILDING.md | More detailed information on configuring and building CHIP for different targets |
CODE_OF_CONDUCT.md | Code of Conduct for CHIP, and contributions to it |
CONTRIBUTING.md | Guidelines for contributing to CHIP |
CONTRIBUTORS.md | Contributors to CHIP |
docs/ | Documentation |
examples/ | Example firmware applications that demonstrate use of CHIP technology |
integrations/ | Third party integrations related to this project |
integrations/github/ | GitHub integrations related to this project |
integrations/github/actions | GitHub actions related to this project |
integrations/docker/ | Docker scripts and Dockerfiles |
images/ | Images |
LICENSE | CHIP License file (Apache 2.0) |
Makefile-Android | Convenience makefile for building CHIP against Android. |
Makefile-iOS | Convenience makefile for building CHIP against iOS. |
Makefile-Standalone | Convenience makefile for building CHIP as a standalone package on desktop and server systems. |
README.md | This file |
src/ | Implementation of CHIP |
tests/ | Tests for CHIP |
third_party/ | Third-party code used by CHIP. |
tools/ | Tools needed to work with the CHIP repo, as well as develop in the repository |
We would love for you to contribute to CHIP and help make it even better than it is today! See the CONTRIBUTING.md file for more information.
CHIP is released under the Apache 2.0 license Please read more details therein