Skip to content

Commit

Permalink
kernel: Block HIP detection through HIP_PATH=none
Browse files Browse the repository at this point in the history
The issue of the multi-lined, wrongly expanded LINUX_COMPILER macro is
back (at least for kernel 4.14).

Funnily enough, setting "--hip-path=/dev/null", or using any other file
or directory that exists, would still make clang happy and give a
message stating that it detected HIP anyways:

  Found HIP installation: /dev/null, version 3.5.0

To get around this issue, without doing monumental backports and
avoiding warnings from "-Wunused-command-line-argument", set
"HIP_PATH=none", where "none" simply indicates a non-existing
file/directory.

Change-Id: Ia97d69425716d28208ba344bde79a910e5f75c84
Signed-off-by: voidanix <voidanix@keyedlimepie.org>
  • Loading branch information
voidanix authored and luk1337 committed Dec 27, 2024
1 parent 33c2bee commit 292ca28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/BoardConfigKernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ KERNEL_MAKE_FLAGS :=
KERNEL_MAKE_FLAGS += -j$(shell getconf _NPROCESSORS_ONLN)

TOOLS_PATH_OVERRIDE := \
PERL5LIB=$(BUILD_TOP)/prebuilts/tools-lineage/common/perl-base
HIP_PATH=none PERL5LIB=$(BUILD_TOP)/prebuilts/tools-lineage/common/perl-base

ifneq ($(KERNEL_NO_GCC), true)
GCC_PREBUILTS := $(BUILD_TOP)/prebuilts/gcc/$(HOST_PREBUILT_TAG)
Expand Down

0 comments on commit 292ca28

Please sign in to comment.