Skip to content

Commit

Permalink
Revert "Replace old-style kernel headers only when building inline"
Browse files Browse the repository at this point in the history
This reverts commit 84b2da3.
  • Loading branch information
Klozz committed Jan 20, 2024
1 parent 0fa2843 commit 76a576f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/binary.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ endif
my_soong_problems :=

# Automatically replace the old-style kernel header include with a dependency
# on the generated_kernel_headers header library when building inline
ifeq ($(INLINE_KERNEL_BUILDING),true)
# on the generated_kernel_headers header library
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_HEADER_LIBRARIES += generated_kernel_headers
Expand All @@ -64,7 +63,6 @@ endif
ifneq (,$(findstring $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,$(LOCAL_ADDITIONAL_DEPENDENCIES)))
LOCAL_ADDITIONAL_DEPENDENCIES := $(patsubst $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr,,$(LOCAL_ADDITIONAL_DEPENDENCIES))
endif
endif

# 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,
Expand Down

0 comments on commit 76a576f

Please sign in to comment.