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