Skip to content

Commit

Permalink
fix(kbuild): Add CC/HOST_CC variables for kselftest
Browse files Browse the repository at this point in the history
kselftest (for example net) require correct CC/HOST_CC variable to
compile some of the components.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Jan 16, 2025
1 parent 0d267d6 commit aafa7d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernelci/kbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ def init_steps(self):
self.addcmd("export INSTALL_MOD_PATH=_modules_")
self.addcmd("export INSTALL_MOD_STRIP=1")
self.addcmd("export INSTALL_DTBS_PATH=_dtbs_")
self.addcmd("export CC=" + self._compiler)
self.addcmd("export HOSTCC=" + self._compiler)
# if self._compiler start with clang- we need to set env vars
if self._compiler.startswith("clang-"):
# LLVM=1, can be suffix with version in future, like -14
Expand Down

0 comments on commit aafa7d9

Please sign in to comment.