kernel: Stop warnings for prebuilt kernel platform

If both prebuilt kernel and prebuilt kernel headers are provided, assume
that they match.

Change-Id: I8818659bd4642aa20260ff638d4a0c3f2b56a463
This commit is contained in:
Aaron Kling
2025-04-17 12:11:12 -05:00
committed by Jan Altensen
parent cae9b362a9
commit 67bbe4a32d

View File

@@ -71,6 +71,8 @@
# #
# TARGET_FORCE_PREBUILT_KERNEL = Optional, use TARGET_PREBUILT_KERNEL even if # TARGET_FORCE_PREBUILT_KERNEL = Optional, use TARGET_PREBUILT_KERNEL even if
# kernel sources are present # kernel sources are present
# TARGET_PREBUILT_KERNEL_HEADERS = Optional, if this is set, don't warn about prebuilt
# kernel because headers should match
# #
# TARGET_MERGE_DTBS_WILDCARD = Optional, limits the .dtb files used to generate the # TARGET_MERGE_DTBS_WILDCARD = Optional, limits the .dtb files used to generate the
# final DTB image when using QCOM's merge_dtbs script. # final DTB image when using QCOM's merge_dtbs script.
@@ -142,13 +144,15 @@ ifeq "$(wildcard $(KERNEL_SRC) )" ""
endif endif
ifneq ($(HAS_PREBUILT_KERNEL),) ifneq ($(HAS_PREBUILT_KERNEL),)
$(warning ***************************************************************) ifeq ($(TARGET_PREBUILT_KERNEL_HEADERS),)
$(warning * Using prebuilt kernel binary instead of source *) $(warning ***************************************************************)
$(warning * THIS IS DEPRECATED, AND IS NOT ADVISED. *) $(warning * Using prebuilt kernel binary instead of source *)
$(warning * Please configure your device to download the kernel *) $(warning * THIS IS DEPRECATED, AND IS NOT ADVISED. *)
$(warning * source repository to $(KERNEL_SRC)) $(warning * Please configure your device to download the kernel *)
$(warning * for more information *) $(warning * source repository to $(KERNEL_SRC))
$(warning ***************************************************************) $(warning * for more information *)
$(warning ***************************************************************)
endif
FULL_KERNEL_BUILD := false FULL_KERNEL_BUILD := false
KERNEL_BIN := $(TARGET_PREBUILT_KERNEL) KERNEL_BIN := $(TARGET_PREBUILT_KERNEL)
else else