Files
android_kernel_samsung_sm86…/audio_kernel_vendor_board.mk
Josh Kirsch cce6c43c67 audio-kernel: Add KERNEL_DLKM check flags
Add flags to only compile dlkms if system wide flags is true
or if the project specific flag is enabled.

Change-Id: I3a3bfcf4ceabef1c9d3a619de83a9a68caddf624
2022-06-13 12:26:44 -07:00

17 lines
499 B
Makefile

AUDIO_DLKM_ENABLE := false
ifeq ($(TARGET_KERNEL_DLKM_DISABLE), true)
ifeq ($(TARGET_KERNEL_DLKM_AUDIO_OVERRIDE),true)
AUDIO_DLKM_ENABLE := true
endif
else
AUDIO_DLKM_ENABLE := true
endif
ifeq ($(AUDIO_DLKM_ENABLE), true)
include vendor/qcom/opensource/audio-kernel/audio_kernel_modules.mk
ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true)
include vendor/qcom/opensource/audio-kernel/legacy/audio_kernel_modules.mk
endif
BOARD_VENDOR_KERNEL_MODULES += $(AUDIO_KERNEL_MODULES)
endif