882f4bdcdc
* Thu Mar 09 2023 Fedora Kernel Team <kernel-team@fedoraproject.org> [6.3.0-0.rc1.6a98c9cae232.18] - redhat/self-test: Update self-test data (Prarit Bhargava) - redhat/kernel.spec.template: Fix hardcoded "kernel" (Prarit Bhargava) - redhat/configs/generate_all_configs.sh: Fix config naming (Prarit Bhargava) - redhat/kernel.spec.template: Pass SPECPACKAGE_NAME to generate_all_configs.sh (Prarit Bhargava) - kernel.spec.template: Use SPECPACKAGE_NAME (Prarit Bhargava) - redhat/Makefile: Copy spec file (Prarit Bhargava) - redhat: Change PACKAGE_NAME to SPECPACKAGE_NAME (Prarit Bhargava) - redhat/configs: Support the virtio_mmio.device parameter in Fedora (David Michael) - Linux v6.3.0-0.rc1.6a98c9cae232 Resolves: Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
38 lines
843 B
Bash
Executable File
38 lines
843 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Adjusts the configuration options to build the variants correctly
|
|
|
|
test -n "$RHTEST" && exit 0
|
|
|
|
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
|
|
|
|
# The +1 is to remove the - at the end of the SPECPACKAGE_NAME string
|
|
specpackage_name_len=$((${#SPECPACKAGE_NAME} + 1))
|
|
for i in ${SPECPACKAGE_NAME}*-"$FLAVOR".config; do
|
|
NEW=${SPECPACKAGE_NAME}-"$SPECVERSION"-$(echo ${i:$specpackage_name_len} | sed s/-"$FLAVOR"//)
|
|
mv "$i" "$NEW"
|
|
done
|
|
|
|
rm -f kernel-*-"$SECONDARY".config
|
|
|
|
if [ "$DEBUGBUILDSENABLED" -eq 0 ]; then
|
|
for i in ${SPECPACKAGE_NAME}-*debug*.config; do
|
|
base=$(echo "$i" | sed -r s/-?debug//g)
|
|
NEW=${SPECPACKAGE_NAME}-$(echo "$base" | cut -d - -f2-)
|
|
mv "$i" "$NEW"
|
|
done
|
|
fi
|