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 0000000000000000000000000000000000000000..ef057fb70a36966a108125cdad7bdb2c5d5421c6 --- /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