aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2019-01-11 03:15:14 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2019-01-14 16:23:38 -0200
commite7d8aa7d8fdf4f71d76cd3be97b7376b5761e2b9 (patch)
tree7a8675718c8730c5c0de32e569973394bf3df593
parent71553cc7f3f90b5d9614c1f76fe946cd4f863d3a (diff)
downloadmeta-freescale-e7d8aa7d8fdf4f71d76cd3be97b7376b5761e2b9.tar.gz
meta-freescale-e7d8aa7d8fdf4f71d76cd3be97b7376b5761e2b9.tar.bz2
meta-freescale-e7d8aa7d8fdf4f71d76cd3be97b7376b5761e2b9.zip
uefi: add judge if folder exist
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
-rw-r--r--recipes-bsp/uefi/uefi_git.bb16
1 files changed, 10 insertions, 6 deletions
diff --git a/recipes-bsp/uefi/uefi_git.bb b/recipes-bsp/uefi/uefi_git.bb
index 4d08782b..8b63f501 100644
--- a/recipes-bsp/uefi/uefi_git.bb
+++ b/recipes-bsp/uefi/uefi_git.bb
@@ -11,15 +11,19 @@ SRCREV= "5b259f75decbc478bcab0612d79a58562bef1838"
S = "${WORKDIR}/git"
do_install () {
- install -d ${D}/uefi
- cp -r ${B}/grub ${D}/uefi
- cp -r ${B}/${MACHINE} ${D}/uefi
+ if [ -d ${B}/${MACHINE} ]; then
+ install -d ${D}/uefi
+ cp -r ${B}/grub ${D}/uefi
+ cp -r ${B}/${MACHINE} ${D}/uefi
+ fi
}
do_deploy () {
- install -d ${DEPLOYDIR}/uefi
- cp -r ${B}/grub ${DEPLOYDIR}/uefi
- cp -r ${B}/${MACHINE} ${DEPLOYDIR}/uefi
+ if [ -d ${B}/${MACHINE} ]; then
+ install -d ${DEPLOYDIR}/uefi
+ cp -r ${B}/grub ${DEPLOYDIR}/uefi
+ cp -r ${B}/${MACHINE} ${DEPLOYDIR}/uefi
+ fi
}
addtask deploy before do_build after do_install