From d31d54dc1dbe1008993e16c57b8e96243979fae4 Mon Sep 17 00:00:00 2001 From: Wojciech Zmuda <wojciech.zmuda@huawei.com> Date: Tue, 20 Apr 2021 23:40:06 +0200 Subject: [PATCH] zephyr-blueprint-smarthome-led: substitute MAC address of a device Multiple IoT devices in the Smart Home blueprint are to be programmed with firmware built from the same sources. That sources specify MAC address of the BLE interface of the device. Multiple devices cannot work at once with the same MAC, so in that case user should have possibility to specify the address in build time. Variable SMART_HOME_SWITCH_MAC can be provided to Bitbake. If detected, its value is used as MAC address for devices using zephyr-blueprint-smarthome-led image. Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com> Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- .../zephyr-kernel/zephyr-blueprint-smarthome-led.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-led.bb b/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-led.bb index 8c5d323e..3b136997 100644 --- a/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-led.bb +++ b/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-led.bb @@ -8,6 +8,8 @@ SUMMARY = "SmartHome blueprint image: smart LED" DESCRIPTION = "Zephyr based image targeting smart LED board" LICENSE = "Apache-2.0" +MAC = "${SMART_HOME_SWITCH_MAC}" + # Comment out features not used by this image do_configure_append() { sed -i '/^CONFIG_I2C/ s/./#&/' ${ZEPHYR_SRC_DIR}/prj.conf -- GitLab