
Add flags to only compile dlkms if system wide flags is true or if the project specific flag is enabled. Change-Id: I3a3bfcf4ceabef1c9d3a619de83a9a68caddf624
17 lines
499 B
Makefile
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
|