Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df0dd6f9 authored by Sharad Sangle's avatar Sharad Sangle
Browse files

hal: Use DLKM feature flag to define include rule

Use the Flag insted of targets to define the incluse rule

Change-Id: I86d4c08fe84ca57d42f784ef6b8cde26f083216a
parent 42e0e60b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -78,7 +78,8 @@ LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),)
  LOCAL_HEADER_LIBRARIES += audio_kernel_headers
endif
ifneq ($(filter sdm710 qcs605 msmnile,$(TARGET_BOARD_PLATFORM)),)

ifeq ($(strip $(AUDIO_FEATURE_ENABLED_DLKM)),true)
  LOCAL_HEADER_LIBRARIES := audio_kernel_headers
  LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/vendor/qcom/opensource/audio-kernel/include
  LOCAL_ADDITIONAL_DEPENDENCIES += $(BOARD_VENDOR_KERNEL_MODULES)