From d3a554304384b3893dd98a2d25fb1f303adaea1e Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 27 May 2021 12:13:45 +0100
Subject: [PATCH] u-boot-stm32mp-extlinux: Deploy extlinux configuration

This allows us to use IMAGE_BOOT_FILES to include these files in a
image.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 .../u-boot/u-boot-stm32mp-extlinux.bbappend        | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend

diff --git a/meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend b/meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend
new file mode 100644
index 00000000..ef057fb7
--- /dev/null
+++ b/meta-ohos-core/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bbappend
@@ -0,0 +1,14 @@
+# SPDX-FileCopyrightText: Huawei Inc.
+#
+# SPDX-License-Identifier: Apache-2.0
+
+inherit deploy
+
+do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}/bootloader/extlinux"
+do_deploy() {
+    # Deploy files too so wic can pick them up from DEPLOYDIR
+    if ! [ -z "$(ls -A ${B})" ]; then
+        cp -r --reflink=auto ${B}/* ${DEPLOYDIR}
+    fi
+}
+addtask deploy before do_build after do_compile
-- 
GitLab