diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-06-19 13:01:40 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-06-19 13:01:40 +0200 |
commit | 3447319683cbc4d1dac74960bae754f433b8cb5e (patch) | |
tree | 1d574590602b6e71f75907a1dc99f9de058e4c2f /SOURCES/process_configs.sh | |
parent | 1be20ec5b90504f195f19d6717bd19a6e154dcce (diff) | |
download | kernel-fsync-3447319683cbc4d1dac74960bae754f433b8cb5e.tar.gz kernel-fsync-3447319683cbc4d1dac74960bae754f433b8cb5e.zip |
kernel 5.18.4
Diffstat (limited to 'SOURCES/process_configs.sh')
-rwxr-xr-x | SOURCES/process_configs.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/SOURCES/process_configs.sh b/SOURCES/process_configs.sh index 91e6d12..987fb78 100755 --- a/SOURCES/process_configs.sh +++ b/SOURCES/process_configs.sh @@ -6,6 +6,8 @@ # Globally disable suggestion of appending '|| exit' or '|| return' to cd/pushd/popd commands # shellcheck disable=SC2164 +test -n "$RHTEST" && exit 0 + usage() { # alphabetical order please @@ -191,7 +193,7 @@ function commit_new_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" @@ -260,7 +262,7 @@ function process_config() rm .newoptions"${count}" RETURNCODE=1 fi - rm .newoptions"${count}" + rm -f .newoptions"${count}" grep -E 'config.*warning' .listnewconfig"${count}" > .warnings"${count}" if test -n "$CHECKWARNINGS" && test -s .warnings"${count}" @@ -303,7 +305,7 @@ function process_configs() [ -f .mismatches ] && rm -f .mismatches count=0 - for cfg in "$SCRIPT_DIR/${PACKAGE_NAME}${KVERREL}${SUBARCH}"*.config + for cfg in "$SCRIPT_DIR/${PACKAGE_NAME}${KVERREL}"*.config do if [ "$count" -eq 0 ]; then # do the first one by itself so that tools are built @@ -385,12 +387,9 @@ do shift done -PACKAGE_NAME="${1:-kernel}" # defines the package name used -KVERREL="$(test -n "$2" && echo "-$2" || echo "")" -SUBARCH="$(test -n "$3" && echo "-$3" || echo "")" -FLAVOR="$(test -n "$4" && echo "-$4" || echo "-ark")" +KVERREL="$(test -n "$1" && echo "-$1" || echo "")" +FLAVOR="$(test -n "$2" && echo "-$2" || echo "-ark")" # shellcheck disable=SC2015 -RHJOBS="$(test -n "$5" && echo "$5" || nproc --all)" SCRIPT=$(readlink -f "$0") SCRIPT_DIR=$(dirname "$SCRIPT") |