Replace old-style kernel headers only when building inline
Change-Id: I71b891928a13771c176adc0eaa79b46503cb176f Signed-off-by: RITEFANG <1721985272@qq.com>
This commit is contained in:
@@ -45,7 +45,8 @@ endif
|
|||||||
my_soong_problems :=
|
my_soong_problems :=
|
||||||
|
|
||||||
# Automatically replace the old-style kernel header include with a dependency
|
# Automatically replace the old-style kernel header include with a dependency
|
||||||
# on the generated_kernel_headers header library
|
# on the generated_kernel_headers header library when building inline
|
||||||
|
ifeq ($(INLINE_KERNEL_BUILDING),true)
|
||||||
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,$(LOCAL_C_INCLUDES)))
|
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,$(LOCAL_C_INCLUDES)))
|
||||||
LOCAL_C_INCLUDES := $(patsubst $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,,$(LOCAL_C_INCLUDES))
|
LOCAL_C_INCLUDES := $(patsubst $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include,,$(LOCAL_C_INCLUDES))
|
||||||
LOCAL_HEADER_LIBRARIES += generated_kernel_headers
|
LOCAL_HEADER_LIBRARIES += generated_kernel_headers
|
||||||
@@ -63,6 +64,7 @@ endif
|
|||||||
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,$(LOCAL_ADDITIONAL_DEPENDENCIES)))
|
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,$(LOCAL_ADDITIONAL_DEPENDENCIES)))
|
||||||
LOCAL_ADDITIONAL_DEPENDENCIES := $(patsubst $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,,$(LOCAL_ADDITIONAL_DEPENDENCIES))
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(patsubst $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,,$(LOCAL_ADDITIONAL_DEPENDENCIES))
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# The following LOCAL_ variables will be modified in this file.
|
# The following LOCAL_ variables will be modified in this file.
|
||||||
# Because the same LOCAL_ variables may be used to define modules for both 1st arch and 2nd arch,
|
# Because the same LOCAL_ variables may be used to define modules for both 1st arch and 2nd arch,
|
||||||
|
Reference in New Issue
Block a user