* 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
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
}
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