Skip to content
Snippets Groups Projects
Commit c583c40e authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

matter: add linux examples to build


Adding the currently available Matter example for Linux. This will give
us more test applications. Before we upstream this we would need to
decide if we want to split these off into a dedicated package.

Signed-off-by: default avatarStefan Schmidt <stefan.schmidt@huawei.com>
parent d1c588cd
No related branches found
No related tags found
No related merge requests found
From 0c592f854ac44c8388f55e8e78b553d5a0976272 Mon Sep 17 00:00:00 2001
From: Stefan Schmidt <stefan.schmidt@huawei.com>
Date: Thu, 10 Mar 2022 18:07:05 +0100
Subject: [PATCH] BUILD.gn: enbale all Linux examples in the default build
Instead of doing extra builds for each example we enable the ones we are
interested in by default.
Upstream-Status: Inappropriate [configuration]
Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
---
BUILD.gn | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/BUILD.gn b/BUILD.gn
index 09b8f2956..1334a45c8 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -107,6 +107,13 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") {
deps += [
":certification",
"${chip_root}/examples/shell/standalone:chip-shell",
+ "${chip_root}/examples/all-clusters-app/linux:chip-all-clusters-app",
+ "${chip_root}/examples/thermostat/linux:thermostat-app",
+ "${chip_root}/examples/tv-app/linux:chip-tv-app",
+ "${chip_root}/examples/tv-casting-app/linux:chip-tv-casting-app",
+ "${chip_root}/examples/bridge-app/linux:chip-bridge-app",
+ "${chip_root}/examples/lighting-app/linux:chip-lighting-app",
+ "${chip_root}/examples/door-lock-app/linux:chip-door-lock-app",
"${chip_root}/src/app/tests/integration:chip-im-initiator",
"${chip_root}/src/app/tests/integration:chip-im-responder",
"${chip_root}/src/lib/address_resolve:address-resolve-tool",
--
2.35.1
......@@ -41,6 +41,7 @@ SRC_URI = "git://github.com/project-chip/connectedhomeip.git;protocol=https;name
git://github.com/nestlabs/nlio.git;protocol=https;destsuffix=git/third_party/nlio/repo;name=nlio;branch=master \
file://0001-projectmatter-use-Yocto-toolchain-and-flags.patch \
file://0002-mbedtls-disable-building-integrated-library-in-Yocto.patch \
file://0001-BUILD.gn-enbale-all-Linux-examples-in-the-default-bu.patch \
"
PV = "0.0+git${SRCPV}"
......@@ -60,7 +61,7 @@ GN_ARGS += "chip_enable_python_modules=false"
# GCC v11 reports multiple problems that span across project's source code and
# submodules. Temporarily disabling those warnings for the whole project
TARGET_CFLAGS:append = " -Wno-format-truncation -Wno-stringop-truncation -Wno-format-security"
TARGET_CFLAGS:append = " -Wno-format-truncation -Wno-stringop-truncation -Wno-format-security -Wno-unused-result"
do_install() {
install -d ${D}${bindir}
......@@ -73,4 +74,11 @@ do_install() {
install ${B}/chip-shell ${D}${bindir}
install ${B}/chip-tool ${D}${bindir}
install ${B}/spake2p ${D}${bindir}
install ${B}/chip-all-clusters-app ${D}${bindir}
install ${B}/chip-bridge-app ${D}${bindir}
install ${B}/chip-door-lock-app ${D}${bindir}
install ${B}/chip-lighting-app ${D}${bindir}
install ${B}/chip-tv-app ${D}${bindir}
install ${B}/chip-tv-casting-app ${D}${bindir}
install ${B}/thermostat-app ${D}${bindir}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment