b4aa7140f3
* Wed Apr 20 2022 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.18.0-0.rc3.559089e0a93d442.28] - redhat/Makefile: Deprecate SINGLE_TARBALL (Prarit Bhargava) - redhat/Makefile.rhpkg: Remove quotes for RHDISTGIT (Prarit Bhargava) - redhat/self-test: Clean up data set (Prarit Bhargava) - redhat/scripts/create-tarball.sh: Use Makefile variables (Prarit Bhargava) - redhat/Makefile: Cleanup TARBALL target (Prarit Bhargava) - redhat/Makefile: Use RPMVERSION (Prarit Bhargava) - redhat/scripts/rh-dist-git.sh: Use Makefile variables (Prarit Bhargava) - redhat/configs/build_configs.sh: Use Makefile variables (Prarit Bhargava) - redhat/configs/process_configs.sh: Use Makefile variables (Prarit Bhargava) - redhat/kernel.spec.template: Use RPM_BUILD_NCPUS (Prarit Bhargava) - redhat/configs/generate_all_configs.sh: Use Makefile variables (Prarit Bhargava) Resolves: rhbz# Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
35 lines
645 B
Bash
Executable File
35 lines
645 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Adjusts the configuration options to build the variants correctly
|
|
|
|
DEBUGBUILDSENABLED=$1
|
|
if [ -z "$DEBUGBUILDSENABLED" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$FLAVOR" ]; then
|
|
FLAVOR=rhel
|
|
fi
|
|
|
|
if [ "$FLAVOR" = "fedora" ]; then
|
|
SECONDARY=rhel
|
|
else
|
|
SECONDARY=fedora
|
|
fi
|
|
|
|
for i in kernel-*-"$FLAVOR".config; do
|
|
NEW=kernel-"$KVERSION"-$(echo "$i" | cut -d - -f2- | sed s/-"$FLAVOR"//)
|
|
#echo $NEW
|
|
mv "$i" "$NEW"
|
|
done
|
|
|
|
rm -f kernel-*-"$SECONDARY".config
|
|
|
|
if [ "$DEBUGBUILDSENABLED" -eq 0 ]; then
|
|
for i in kernel-*debug*.config; do
|
|
base=$(echo "$i" | sed -r s/-?debug//g)
|
|
NEW=kernel-$(echo "$base" | cut -d - -f2-)
|
|
mv "$i" "$NEW"
|
|
done
|
|
fi
|