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/generate_all_configs.sh | |
parent | 1be20ec5b90504f195f19d6717bd19a6e154dcce (diff) | |
download | kernel-fsync-3447319683cbc4d1dac74960bae754f433b8cb5e.tar.gz kernel-fsync-3447319683cbc4d1dac74960bae754f433b8cb5e.zip |
kernel 5.18.4
Diffstat (limited to 'SOURCES/generate_all_configs.sh')
-rwxr-xr-x | SOURCES/generate_all_configs.sh | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/SOURCES/generate_all_configs.sh b/SOURCES/generate_all_configs.sh index 9e3d5ec..099d9aa 100755 --- a/SOURCES/generate_all_configs.sh +++ b/SOURCES/generate_all_configs.sh @@ -1,30 +1,26 @@ #!/bin/sh # Adjusts the configuration options to build the variants correctly -# -# arg1: configuration to go in the primary variant -# arg2: are we only generating debug configs +test -n "$RHTEST" && exit 0 -PRIMARY=$1 -DEBUGBUILDSENABLED=$2 - -if [ -z "$2" ]; then +DEBUGBUILDSENABLED=$1 +if [ -z "$DEBUGBUILDSENABLED" ]; then exit 1 fi -if [ -z "$PRIMARY" ]; then - PRIMARY=rhel +if [ -z "$FLAVOR" ]; then + FLAVOR=rhel fi -if [ "$PRIMARY" = "fedora" ]; then +if [ "$FLAVOR" = "fedora" ]; then SECONDARY=rhel else SECONDARY=fedora fi -for i in kernel-*-"$PRIMARY".config; do - NEW=kernel-"$VERSION"-$(echo "$i" | cut -d - -f2- | sed s/-"$PRIMARY"//) +for i in kernel-*-"$FLAVOR".config; do + NEW=kernel-"$SPECVERSION"-$(echo "$i" | cut -d - -f2- | sed s/-"$FLAVOR"//) #echo $NEW mv "$i" "$NEW" done |