diff --git a/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-base.bb b/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-base.bb
index e6f28a6ca769ace8a0319592cc8200f598e81dbb..0c7bb1cce3382af9a6b19b7618c13eca88ccaede 100644
--- a/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-base.bb
+++ b/meta-ohos-blueprints/recipes-kernel/zephyr-kernel/zephyr-blueprint-smarthome-base.bb
@@ -21,3 +21,9 @@ SRCREV_smarthome = "d45c192aa8a6b25328ab40610d6e78f50afe4150"
 ZEPHYR_SRC_DIR = "${S}/apps/smarthome"
 
 ZEPHYR_MODULES_append = "\;${S}/modules/crypto/tinycrypt"
+
+do_configure_append() {
+	if [ ! -z "${MAC}" ]; then
+		sed -i "s/\(SMART_HOME_BT_MAC_ADDRESS\).*/\1 \"${MAC}\"/" ${ZEPHYR_SRC_DIR}/src/config.h
+	fi
+}