Commit 2e78cd0d authored by Rocky Automation's avatar Rocky Automation 📺
Browse files

import kernel-4.18.0-305.el8

parent a2a90e61
......@@ -11,21 +11,22 @@
MODSECKEY=$1
MODPUBKEY=$2
moddir=$3
modules=`find $moddir -name *.ko`
modules=`find $moddir -type f -name '*.ko'`
for mod in $modules
do
dir=`dirname $mod`
file=`basename $mod`
NPROC=`nproc`
[ -z "$NPROC" ] && NPROC=1
./scripts/sign-file sha256 ${MODSECKEY} ${MODPUBKEY} ${dir}/${file}
rm -f ${dir}/${file}.{sig,dig}
# NB: this loop runs 2000+ iterations. Try to be fast.
echo "$modules" | xargs -r -n16 -P $NPROC sh -c "
for mod; do
./scripts/sign-file sha256 $MODSECKEY $MODPUBKEY \$mod
rm -f \$mod.sig \$mod.dig
done
" DUMMYARG0 # xargs appends ARG1 ARG2..., which go into $mod in for loop.
RANDOMMOD=$(find $moddir -type f -name '*.ko' | sort -R | head -n 1)
RANDOMMOD=$(echo "$modules" | sort -R | head -n 1)
if [ "~Module signature appended~" != "$(tail -c 28 $RANDOMMOD)" ]; then
echo "*****************************"
echo "*** Modules are unsigned! ***"
......
......@@ -6,7 +6,7 @@
usage()
{
echo "process_configs.sh [ -n|-c|-t ] package_name kernel_version"
echo "process_configs.sh [ -n|-c|-t ] package_name kernel_version [cross_opts]"
echo " -n: error on unset config options"
echo " -c: error on mismatched config options"
echo " -t: test run, do not overwrite original config"
......@@ -77,7 +77,7 @@ function process_configs()
# assume we are in $source_tree/configs, need to get to top level
pushd $(switch_to_toplevel) &>/dev/null
for cfg in $SCRIPT_DIR/${PACKAGE_NAME}${KVERREL}${SUBARCH}*.config
for cfg in $SCRIPT_DIR/${PACKAGE_NAME}${KVERREL}*.config
do
arch=$(head -1 $cfg | cut -b 3-)
cfgtmp="${cfg}.tmp"
......@@ -86,7 +86,7 @@ function process_configs()
echo -n "Processing $cfg ... "
make ARCH=$arch KCONFIG_CONFIG=$cfgorig listnewconfig >& .listnewconfig
make ARCH=$arch ${CROSSOPTS} KCONFIG_CONFIG=$cfgorig listnewconfig >& .listnewconfig
grep -E 'CONFIG_' .listnewconfig > .newoptions
if test -n "$NEWOPTIONS" && test -s .newoptions
then
......@@ -109,7 +109,7 @@ function process_configs()
rm .listnewconfig
make ARCH=$arch KCONFIG_CONFIG=$cfgorig oldnoconfig > /dev/null || exit 1
make ARCH=$arch ${CROSSOPTS} KCONFIG_CONFIG=$cfgorig oldnoconfig > /dev/null || exit 1
echo "# $arch" > ${cfgtmp}
cat "${cfgorig}" >> ${cfgtmp}
if test -n "$CHECKOPTIONS"
......@@ -164,7 +164,7 @@ done
PACKAGE_NAME="${1:-kernel}" # defines the package name used
KVERREL="$(test -n "$2" && echo "-$2" || echo "")"
SUBARCH="$(test -n "$3" && echo "-$3" || echo "")"
CROSSOPTS="$3"
SCRIPT="$(readlink -f $0)"
OUTPUT_DIR="$PWD"
SCRIPT_DIR="$(dirname $SCRIPT)"
......
-----BEGIN CERTIFICATE-----
MIIEtTCCA52gAwIBAgIULv2I77xOsktjUVKJdnVNj2xzVd4wDQYJKoZIhvcNAQEL
BQAwgdMxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhEZWxhd2FyZTEOMAwGA1UEBxMF
RG92ZXIxLTArBgNVBAoTJFJvY2t5IEVudGVycHJpc2UgU29mdHdhcmUgRm91bmRh
dGlvbjEhMB8GA1UECxMYUmVsZWFzZSBlbmdpbmVlcmluZyB0ZWFtMScwJQYDVQQD
Ex5Sb2NreSBCb290IFNpZ25pbmcgQ0EgMTAxIFRFU1QxJjAkBgkqhkiG9w0BCQEW
F3NlY3VyaXR5QHJvY2t5bGludXgub3JnMB4XDTIxMDQyODE4MzQ1MFoXDTMxMDQy
NjE4MzQ1MFowgdoxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhEZWxhd2FyZTEOMAwG
A1UEBxMFRG92ZXIxLTArBgNVBAoTJFJvY2t5IEVudGVycHJpc2UgU29mdHdhcmUg
Rm91bmRhdGlvbjEhMB8GA1UECxMYUmV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ciHvdtqHiqLFWvYN5xRxqRHRugyRWl5hD
LEFYRV5I4THVQxM6EHaU+tVGwTC2xE5+QNWKZImhYwIDAQABo3gwdjAMBgNVHRMB
Af8EAjAAMA4GA1UdDwEB/wQEAwIHgDAWBgNVHSUBAf8EDDAKBggrBgEFBQcDAzAd
BgNVHQ4EFgQUJOaPe9JshKpF6/KQXp5Jh4kTzj8wHwYDVR0jBBgwFoAUmYodSNYc
wHbZpry3zo+Lp4OFT9UwDQYJKoZIhvcNAQELBQADggEBAJ3UTWrQfgZdYx8YeqAn
dhUF9y9jkJh+6HZ4fZrHkVmszhuNbKGHKSDlm7drrcTZIEr3jJz3RMA0xzSnFJDn
8Gv8wSCQWNnMM8pYMZ6cnhJqU5WWrXT/qXv7Ebwvym8ho7jKS41oHW4Vk4tVqAMZ
eTjN7l7MNuJw3wvsyIsQr5guSNnkvm2RTJqZiLT+Xa7wA3SHNMAVN2DnduGjxiA/
IrFaAdY8awlhD7S1zDUMjl8yA19Y93UtsJnyim1cm9a1jmWyCVENcHSHbor1hwYH
6BO/HqZ4xABNVU2Fon47WQ20C0ONZkVRPVjJ0ZPmZmfwmFYprfG8amOgs0J+2Bok
Cl8=
-----END CERTIFICATE-----
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment