From 55de246886335a9bc85f86339397ff01ca208b3a Mon Sep 17 00:00:00 2001
From: Helen Koike <helen.koike@collabora.com>
Date: Tue, 20 Feb 2024 22:29:22 -0300
Subject: [PATCH] wip: without W=1, double compiling is not required

---
 ci/gitlab-ci/ci-scripts/build-kernel.sh | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/ci/gitlab-ci/ci-scripts/build-kernel.sh b/ci/gitlab-ci/ci-scripts/build-kernel.sh
index 878f10897dc195..df410c20912e90 100755
--- a/ci/gitlab-ci/ci-scripts/build-kernel.sh
+++ b/ci/gitlab-ci/ci-scripts/build-kernel.sh
@@ -9,21 +9,9 @@ source ci/gitlab-ci/ci-scripts/ici-functions.sh
 
 ici_prepare_build
 
-ici_get_patch_series_size
-
-# Get the list of modified files in the last $ICI_PATCH_SERIES_SIZE commits
-MODIFIED_FILES=$(git diff HEAD~$ICI_PATCH_SERIES_SIZE HEAD --name-only)
-
 pushd build
 
 # compile the entire kernel
-make CF=-D__CHECK_ENDIAN__ -C "$ICI_KERNEL_DIR" O=$(pwd) -j$(nproc)
-
-for file in $MODIFIED_FILES; do
-    touch -c ../"$file"
-done
-
-# TODO: add W=1 once build errors are fixed
 make CF=-D__CHECK_ENDIAN__ -C "$ICI_KERNEL_DIR" O=$(pwd) -j$(nproc) 2>&1 | tee output.txt
 
 export INSTALL_PATH="${CI_PROJECT_DIR}/artifacts/kernel-install-${KCI_KERNEL_ARCH}-${KCI_DEFCONFIG}_config"
@@ -44,9 +32,3 @@ if grep -iq "warning" output.txt; then
 fi
 
 popd
-
-if [ -n "$ICI_UNABLE_TO_DETECT_PATCH_SERIES_SIZE" ]; then
-    # If the patch series size was not detected, exit with a warning
-    echo "The patch series size was not detected, we probably didn't check the whole series. Exiting with a warning."
-    exit 101
-fi
\ No newline at end of file
-- 
GitLab