Skip to content

Commit e0fb116

Browse files
committed
ci: Include config in boot directory
The install script on amazon linux isn't storing the .config in our boot directory by default. This is causing our spectre checker script which relies on the config. Updated our script to move this if it has't been done so already. Signed-off-by: Jack Thomson <jackabt@amazon.com>
1 parent 50ef627 commit e0fb116

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

resources/hiding_ci/build_and_install_kernel.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ apply_patch_or_series() {
9090
esac
9191
}
9292

93+
check_new_config() {
94+
if [[ -e "/boot/config-$KERNEL_VERSION" ]]; then
95+
return 0;
96+
fi
97+
98+
echo "Storing new config in /boot/config-$KERNEL_VERSION"
99+
cp .config /boot/config-$KERNEL_VERSION
100+
}
101+
93102
check_override_presence() {
94103
while IFS= read -r line; do
95104
if ! grep -Fq "$line" .config; then
@@ -209,6 +218,8 @@ make INSTALL_MOD_STRIP=1 install
209218

210219
update_boot_config
211220

221+
check_new_config
222+
212223
echo "Kernel built and installed successfully!"
213224

214225
tidy_up

0 commit comments

Comments
 (0)