Pārlūkot izejas kodu

audio-kernel: call subdirectory make

Call subdirectory Andorid.mk
This help build legacy code

Change-Id: I55930e1154827a4d2e4a5103b8c5fa8644f38d10
Signed-off-by: sasevs <[email protected]>
sasevs 3 gadi atpakaļ
vecāks
revīzija
b2c552a544
2 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 4 0
      Android.mk
  2. 4 1
      audio_kernel_vendor_board.mk

+ 4 - 0
Android.mk

@@ -10,6 +10,10 @@ ifeq ($(call is-board-platform, kalama),true)
 AUDIO_SELECT  := CONFIG_SND_SOC_KALAMA=m
 endif
 
+ifeq ($(ENABLE_AUDIO_LEGACY_TECHPACK),true)
+include $(call all-subdir-makefiles)
+endif
+
 # Build/Package only in case of supported target
 ifeq ($(call is-board-platform-in-list,taro kalama), true)
 

+ 4 - 1
audio_kernel_vendor_board.mk

@@ -1,2 +1,5 @@
 include vendor/qcom/opensource/audio-kernel/audio_kernel_modules.mk
-BOARD_VENDOR_KERNEL_MODULES += $(AUDIO_KERNEL_MODULES)
+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)