Skip to content
Snippets Groups Projects
Commit 75468723 authored by Wojciech Zmuda's avatar Wojciech Zmuda Committed by Bernhard Rosenkränzer
Browse files

zephyr-blueprint-smarthome-sensors: 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_SENSORS_MAC can be provided to Bitbake.
If detected, its value is used as MAC address for devices
using zephyr-blueprint-smarthome-sensors image.

Signed-off-by: default avatarWojciech Zmuda <wojciech.zmuda@huawei.com>
Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent b2317bb9
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ SUMMARY = "SmartHome blueprint image: sensors" ...@@ -8,6 +8,8 @@ SUMMARY = "SmartHome blueprint image: sensors"
DESCRIPTION = "Zephyr based image targeting sensors board" DESCRIPTION = "Zephyr based image targeting sensors board"
LICENSE = "Apache-2.0" LICENSE = "Apache-2.0"
MAC = "${SMART_HOME_SENSORS_MAC}"
# Comment out features not used by this image # Comment out features not used by this image
do_configure_append() { do_configure_append() {
sed -i '/^CONFIG_GROVE_LED_CTRL/ s/./#&/' ${ZEPHYR_SRC_DIR}/prj.conf sed -i '/^CONFIG_GROVE_LED_CTRL/ s/./#&/' ${ZEPHYR_SRC_DIR}/prj.conf
......
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