From c0f34a012344c42ed019b429441be8ab66c4f5b7 Mon Sep 17 00:00:00 2001 From: Zbigniew Bodek <zbigniew.bodek@huawei.com> Date: Wed, 31 Mar 2021 17:56:29 +0200 Subject: [PATCH] zephyr-demo-smarthome-sensors: Introduce sensors board image Demo consists of two IOT endpoints: sensors board and bulb/LED board. Add image to specialize base settings to the sensors board's configuration. In this case LED control is disabled. Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com> --- .../zephyr-kernel/zephyr-demo-smarthome-sensors.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-ohos-demo/recipes-kernel/zephyr-kernel/zephyr-demo-smarthome-sensors.bb diff --git a/meta-ohos-demo/recipes-kernel/zephyr-kernel/zephyr-demo-smarthome-sensors.bb b/meta-ohos-demo/recipes-kernel/zephyr-kernel/zephyr-demo-smarthome-sensors.bb new file mode 100644 index 00000000..ebcadfba --- /dev/null +++ b/meta-ohos-demo/recipes-kernel/zephyr-kernel/zephyr-demo-smarthome-sensors.bb @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +require zephyr-demo-smarthome-base.bb + +SUMMARY = "SmartHome demo image: sensors" +DESCRIPTION = "Zephyr based image targeting sensors board" +LICENSE = "Apache-2.0" + +# Comment out features not used by this image +do_configure_append() { + sed -i '/^CONFIG_GROVE_LED_CTRL/ s/./#&/' ${ZEPHYR_SRC_DIR}/prj.conf +} -- GitLab