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 0000000000000000000000000000000000000000..2b6a6efad76beefba963c04e4ced48363aa567f4 --- /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 +}