summaryrefslogtreecommitdiff
path: root/recipes-kernel
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-11-08 10:04:26 -0600
committerJohn Klug <john.klug@multitech.com>2017-11-08 10:04:26 -0600
commit992db48081ea066dc8f17464e6f1413e52e6962e (patch)
treeb6f74f183864d11690d669f61177f74ebf098802 /recipes-kernel
parentcf353185ec877ceaf1d8fa2d173232065f62f645 (diff)
downloadmeta-multitech-992db48081ea066dc8f17464e6f1413e52e6962e.tar.gz
meta-multitech-992db48081ea066dc8f17464e6f1413e52e6962e.tar.bz2
meta-multitech-992db48081ea066dc8f17464e6f1413e52e6962e.zip
Fix rs9113 patch for binary blobs
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/rs9113/rs9113-from-src_1.5.6.bb17
1 files changed, 10 insertions, 7 deletions
diff --git a/recipes-kernel/rs9113/rs9113-from-src_1.5.6.bb b/recipes-kernel/rs9113/rs9113-from-src_1.5.6.bb
index 0f05e82..a4867ec 100644
--- a/recipes-kernel/rs9113/rs9113-from-src_1.5.6.bb
+++ b/recipes-kernel/rs9113/rs9113-from-src_1.5.6.bb
@@ -56,13 +56,16 @@ do_patch () {
cd ${WORKDIR}/git
echo "patches" ${M}/patches/*
for f in ${M}/patches/* ; do
- # If no patches, * is not expanded.
- # Do not try to use "*" as a patch file.
- if ! [[ -r ${f} ]] ; then
- continue
- fi
- echo "Patching with ${f}"
- patch -p1 < ${f}
+ # Cannot use [[ $f =~ \.patch$ ]] here because the $ after patch breaks the recipe.
+ if echo ${f} | grep '\.patch$' >/dev/null 2>&1 ; then
+ echo found patch ${f}
+ patch -Np1 < ${f}
+ else
+ fname=$(basename ${f})
+ oldf=$(find . -name ${fname})
+ echo "copying $f to ${oldf}"
+ cp ${f} ${oldf}
+ fi
done
}