diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk index 6579a4cc..a55715be 100644 --- a/config/BoardConfigKernel.mk +++ b/config/BoardConfigKernel.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2018-2023 The LineageOS Project +# Copyright (C) 2018-2024 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -75,7 +75,9 @@ TARGET_KERNEL_VERSION ?= $(shell echo $(KERNEL_VERSION)"."$(KERNEL_PATCHLEVEL)) # 5.10+ can fully compile without GCC by default ifneq ($(KERNEL_VERSION),) - ifeq ($(shell expr $(KERNEL_VERSION) \>= 5), 1) + ifeq ($(shell expr $(KERNEL_VERSION) \>= 6), 1) + TARGET_KERNEL_NO_GCC ?= true + else ifeq ($(shell expr $(KERNEL_VERSION) \>= 5), 1) ifeq ($(shell expr $(KERNEL_PATCHLEVEL) \>= 10), 1) TARGET_KERNEL_NO_GCC ?= true endif