mirror of
https://github.com/SCST-project/scst.git
synced 2026-10-22 14:12:33 +00:00
Track upstream imports, compare driver snapshots, audit remaining source differences and export patches mapped to the SCST tree. Keep review artifacts outside Git and expose unresolved changes for review. Move the newer QLogic kernel patch helpers into scripts/kernel with their callers and tests. Add the update skill and guide, preserving separate commits for upstream imports and SCST adaptations.
35 lines
886 B
Bash
Executable File
35 lines
886 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run from the newer QLogic source directory; caches stay in the caller's cwd.
|
|
# shellcheck source=./kernel-functions
|
|
source "$(dirname "$0")/kernel-functions" || exit $?
|
|
|
|
#########################
|
|
# Argument verification #
|
|
#########################
|
|
|
|
full_kver="$1"
|
|
|
|
if [ "${full_kver}" = "" ]; then
|
|
echo "Error: missing kernel version argument."
|
|
exit 1
|
|
fi
|
|
|
|
krel=${full_kver/^*}
|
|
|
|
mkdir -p qla2xxx-orig
|
|
cd qla2xxx-orig || exit $?
|
|
download_and_extract_kernel_tree "${full_kver}" || exit $?
|
|
|
|
touch "linux-${krel}"/drivers/scsi/qla2xxx/*
|
|
rm -rf "${krel}"
|
|
mkdir -p "${krel}/include/trace/events"
|
|
|
|
mv "linux-${krel}"/drivers/scsi/qla2xxx/* "${krel}"
|
|
if [ -e "linux-${krel}"/include/trace/events/qla.h ]; then
|
|
touch "linux-${krel}"/include/trace/events/qla.h
|
|
mv "linux-${krel}"/include/trace/events/qla.h "${krel}/include/trace/events"
|
|
fi
|
|
rm -rf "linux-${krel}"
|
|
cd ..
|