Skip to content

Commit

Permalink
build: relinking workaround for Kconfig
Browse files Browse the repository at this point in the history
When COMPILE_TEST gets added to Kconfig (presumably among other things)
the modules will get re-linked.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Jul 12, 2024
1 parent 1252818 commit 5bcb890
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/patch/build_32bit/build_32bit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ fi
# the "before", too.
touch_relink=/dev/null
if ! git log --diff-filter=A HEAD~.. --exit-code >>/dev/null || \
git diff --name-only HEAD~ | grep -q -E "Makefile$"
git diff --name-only HEAD~ | grep -q -E "Makefile$" || \
git diff --name-only HEAD~ | grep -q -E "Kconfig$"
then
echo "Trying to force re-linking, new files were added"
touch_relink=${output_dir}/include/generated/utsrelease.h
Expand Down
3 changes: 2 additions & 1 deletion tests/patch/build_allmodconfig_warn/build_allmodconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ fi
# the "before", too.
touch_relink=/dev/null
if ! git log --diff-filter=A HEAD~.. --exit-code >>/dev/null || \
git diff --name-only HEAD~ | grep -q -E "Makefile$"
git diff --name-only HEAD~ | grep -q -E "Makefile$" || \
git diff --name-only HEAD~ | grep -q -E "Kconfig$"
then
echo "Trying to force re-linking, new files were added"
touch_relink=${output_dir}/include/generated/utsrelease.h
Expand Down
3 changes: 2 additions & 1 deletion tests/patch/build_clang/build_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ fi
# the "before", too.
touch_relink=/dev/null
if ! git log --diff-filter=A HEAD~.. --exit-code >>/dev/null || \
git diff --name-only HEAD~ | grep -q -E "Makefile$"
git diff --name-only HEAD~ | grep -q -E "Makefile$" || \
git diff --name-only HEAD~ | grep -q -E "Kconfig$"
then
echo "Trying to force re-linking, new files were added"
touch_relink=${output_dir}/include/generated/utsrelease.h
Expand Down

0 comments on commit 5bcb890

Please sign in to comment.