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

Commit 3b82e237 authored by Sharad Sangle's avatar Sharad Sangle Committed by Satish Babu Patakokila
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 4c9cac39
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -76,7 +76,9 @@ LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
ifneq ($(filter msmnile,$(TARGET_BOARD_PLATFORM)),)
  LOCAL_HEADER_LIBRARIES := audio_kernel_headers
endif
ifneq ($(filter sdm670 msm8953 msm8937 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)
endif