return patch_list
+def find_sccs(d):
+ sources=src_patches(d, True)
+ sources_list=[]
+ for s in sources:
+ base, ext = os.path.splitext(os.path.basename(s))
+ if ext and ext in ('.scc'):
+ sources_list.append(s)
+
+ return sources_list
+
do_patch() {
cd ${S}
if [ -f ${WORKDIR}/defconfig ]; then
fi
patches="${@" ".join(find_patches(d))}"
+ sccs="${@" ".join(find_sccs(d))}"
# This loops through all patches, and looks for directories that do
# not already have feature descriptions. If a directory doesn't have
fi
done
+ # look for any found scc files, and ensure they are added to the list
+ # of directories passsed to updateme
+ for s in ${sccs}; do
+ sdir=`dirname ${s}`
+ echo ${patch_dirs} | grep -q ${sdir}
+ if [ $? -ne 0 ]; then
+ patch_dirs="${patch_dirs} ${sdir}"
+ fi
+ done
+
# go through the patch directories and look for any scc feature files
# that were constructed above. If one is found, rename it to ".scc" so
# the kernel patching can see it.