diff options
author | Martin Dietze <herbert@spamcop.net> | 2009-11-29 21:12:38 +0100 |
---|---|---|
committer | Martin Dietze <herbert@spamcop.net> | 2009-11-29 21:12:38 +0100 |
commit | 03735f27bd63cc12ca4ef00c737cc3d289c8fe23 (patch) | |
tree | 292cdf38aa1c8aab4911b6ab1ee2726c0fe9aaaf /recipes | |
parent | 1bce38c6fdd7e1d73dcc0740d9178d3930bcf0f0 (diff) |
mtd-utils.inc: flexible handling of ${mtd_utils} in do_stage and do_install
* the include file relies on a given list of utils to be installed, but the list is not correct for all versions which include it
* this revision adds a check for the existence of these files before trying to install/stage them
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/mtd/mtd-utils.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes/mtd/mtd-utils.inc b/recipes/mtd/mtd-utils.inc index dcf0e7c832..813a09fb13 100644 --- a/recipes/mtd/mtd-utils.inc +++ b/recipes/mtd/mtd-utils.inc @@ -17,7 +17,9 @@ do_stage () { install -m 0644 $f ${STAGING_INCDIR}/mtd/ done for binary in ${mtd_utils}; do - install -m 0755 $binary ${STAGING_BINDIR} + if [ -f $binary ]; then + install -m 0755 $binary ${STAGING_BINDIR} + fi done } @@ -25,7 +27,9 @@ do_install () { install -d ${D}${bindir} install -d ${D}${includedir}/mtd for binary in ${mtd_utils}; do - install -m 0755 $binary ${D}${bindir} + if [ -f $binary ]; then + install -m 0755 $binary ${D}${bindir} + fi done for f in ${S}/include/mtd/*.h; do install -m 0644 $f ${D}${includedir}/mtd |