Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions resources/hiding_ci/build_and_install_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ apply_patch_or_series() {
esac
}

check_new_config() {
if [[ -e "/boot/config-$KERNEL_VERSION" ]]; then
return 0;
fi

echo "Storing new config in /boot/config-$KERNEL_VERSION"
cp .config /boot/config-$KERNEL_VERSION
}

check_override_presence() {
while IFS= read -r line; do
if ! grep -Fq "$line" .config; then
Expand Down Expand Up @@ -209,6 +218,8 @@ make INSTALL_MOD_STRIP=1 install

update_boot_config

check_new_config

echo "Kernel built and installed successfully!"

tidy_up