mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 02:20:30 +00:00
arm/classes: Ensure patch files are sorted in apply_local_src_patches
apply_local_src_patches.bbclass was added in a previous patch to handle the application of patch files located inside the fetched source code. find is used to collect the patch files which does not guarantee the order of its output. Pipe the output of find into sort to ensure patch files are applied in the correct order. Issue-Id: SCM-5864 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I1082fb7a726a7745289a5aa8bb6447bef57a94b0 Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -32,7 +32,7 @@ apply_local_src_patches() {
|
||||
export QUILT_PATCHES=./patches-extra
|
||||
mkdir -p patches-extra
|
||||
|
||||
for patch in $(find $input_dir -type f -name *.patch -or -name *.diff)
|
||||
for patch in $(find $input_dir -type f -name *.patch -or -name *.diff | sort)
|
||||
do
|
||||
patch_basename=`basename $patch`
|
||||
if ! quilt applied $patch_basename >/dev/null ; then
|
||||
|
||||
Reference in New Issue
Block a user