Skip to content

Commit

Permalink
kpatch-build: detect the use of LLVM utilities with CONFIG_AS_IS_LLVM
Browse files Browse the repository at this point in the history
It is common for the user to use LLVM=1 to enable all LLVM untilities. Use
CONFIG_AS_IS_LLVM to detect such cases, and add LLVM=1 to MAKEVARS.

Signed-off-by: Song Liu <[email protected]>
  • Loading branch information
liu-song-6 committed Feb 14, 2023
1 parent a45c17f commit d5358fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kpatch-build/kpatch-build
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,11 @@ else
MAKEVARS+=("LD=${KPATCH_CC_PREFIX}${LD}")
fi

# It is common for the user to enable all LLVM utilities with LLVM=1.
# Detech such case with CONFIG_AS_IS_LLVM flag.
if [[ -n "$CONFIG_AS_IS_LLVM" ]]; then
MAKEVARS+=("LLVM=1")
fi

# $TARGETS used as list, no quotes.
# shellcheck disable=SC2086
Expand Down

0 comments on commit d5358fa

Please sign in to comment.