Lines Matching full:patch

36 FIX_PATCH_LINES="$SCRIPT_DIR/fix-patch-lines"
119 -o, --output=<file.ko> Output file [default: livepatch-<patch-name>.ko]
129 4|kmod Build patch module
267 # name based on the patch name.
275 NAME="patch"
284 # Hardcode the value printed by the localversion script to prevent patch
300 local patch="$1"
302 grep0 -E '^(--- |\+\+\+ )' "$patch" \
310 local patch="$1"
315 get_patch_files "$patch" | mapfile -t files
324 local patch
326 for patch in "${PATCHES[@]}"; do
329 get_patch_files "$patch" | mapfile -t files
334 die "unsupported patch to $file"
342 local patch="$1"
346 [[ ! -f "$patch" ]] && die "$patch doesn't exist"
351 # The sed strips the version signature from 'git format-patch',
353 sed -n '/^-- /q;p' "$patch" |
357 APPLIED_PATCHES+=("$patch")
361 local patch="$1"
369 sed -n '/^-- /q;p' "$patch" |
372 git_refresh "$patch"
375 [[ "$p" == "$patch" ]] && continue
383 local patch
385 for patch in "${PATCHES[@]}"; do
386 apply_patch "$patch"
418 [[ -x "$FIX_PATCH_LINES" ]] || die "can't find fix-patch-lines"
425 # Refresh the patch hunk headers, specifically the line numbers and counts.
427 local patch="$1"
435 # Get all source files affected by the patch
436 get_patch_files "$patch" | mapfile -t files
442 apply_patch "$patch" --recount
444 revert_patch "$patch" --recount
446 # Diff 'a' and 'b' to make a clean patch
447 ( cd "$tmpdir" && git diff --no-index --no-prefix a b > "$patch" ) || true
457 rm -f "$TMP_DIR"/*.patch
462 local tmp_patch="$TMP_DIR/tmp.patch"
463 local patch="${PATCHES[$i]}"
466 new_patch="$TMP_DIR/$idx-fixed-$(basename "$patch")"
503 # When a patch to a kernel module references a newly created unexported
801 status "Validating patch(es)"
811 status "Fixing patch(es)"
831 status "Building patch module: $OUTFILE"