2d7cbaa6f9
* Wed Mar 17 2021 Justin M. Forbes <jforbes@fedoraproject.org> [5.11.7-9] - Disable weak-modules again rhbz 1828455 (Justin M. Forbes) - More config updates for gcc-plugin turn off (Justin M. Forbes) - fedora: the PCH_CAN driver is x86-32 only (Peter Robinson) - common: disable legacy CAN device support (Peter Robinson) - common: Enable Microchip MCP251x/MCP251xFD CAN controllers (Peter Robinson) - common: Bosch MCAN support for Intel Elkhart Lake (Peter Robinson) - common: enable CAN_PEAK_PCIEFD PCI-E driver (Peter Robinson) - common: disable CAN_PEAK_PCIEC PCAN-ExpressCard (Peter Robinson) - common: enable common CAN layer 2 protocols (Peter Robinson) - ark: disable CAN_LEDS option (Peter Robinson) Resolves: rhbz# Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
41 lines
743 B
Bash
Executable File
41 lines
743 B
Bash
Executable File
#!/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
|
|
|
|
|
|
PRIMARY=$1
|
|
DEBUGBUILDSENABLED=$2
|
|
|
|
if [ -z "$2" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$PRIMARY" ]; then
|
|
PRIMARY=rhel
|
|
fi
|
|
|
|
if [ "$PRIMARY" = "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"//)
|
|
#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
|