aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2017-11-09 19:04:52 +0800
committerArmin Kuster <akuster808@gmail.com>2018-10-15 12:50:09 -0700
commitf0d6af42abd8b80d08909a9c83dd5ba5d187f44e (patch)
tree3f068bbcbb4fe16073e70fcea2458bdd7c4cab8c
parenteae996301d9c097bcbeb8046f08041dc82bb62f8 (diff)
downloadmeta-openembedded-contrib-f0d6af42abd8b80d08909a9c83dd5ba5d187f44e.tar.gz
meta-openembedded-contrib-f0d6af42abd8b80d08909a9c83dd5ba5d187f44e.tar.bz2
meta-openembedded-contrib-f0d6af42abd8b80d08909a9c83dd5ba5d187f44e.zip
iscsi-initiator-utils: check file existence before moving
Check the file existence before moving to avoid the error: | mv: cannot stat /<build_dir>/git/utils/fwparam_ibft/prom_lex.l: | No such file or directory Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> (cherry picked from commit 5bb19576671d57e61dcf788bb571306a8e402149) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb
index 16ac199926..e6cbb45ae8 100644
--- a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb
+++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb
@@ -59,7 +59,9 @@ do_configure () {
do_compile () {
# Make sure we DO NOT regenerate prom_lex.c.
- mv ${S}/utils/fwparam_ibft/prom_lex.l ${S}/utils/fwparam_ibft/prom_lex.l.unused
+ if [ -f ${S}/utils/fwparam_ibft/prom_lex.l ]; then
+ mv ${S}/utils/fwparam_ibft/prom_lex.l ${S}/utils/fwparam_ibft/prom_lex.l.unused
+ fi
oe_runmake -C ${S} ${EXTRA_OEMAKE} user
}