rules.mk 422 B

12345678910111213141516171819
  1. #
  2. # Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. LOCAL_DIR := $(call GET_LOCAL_DIR)
  7. MODULE := audio
  8. LOCAL_SRCS-y := ${LOCAL_DIR}/audio.c
  9. PLAT_INCLUDES += -I${LOCAL_DIR}
  10. PLAT_INCLUDES += -I${LOCAL_DIR}/$(MTK_SOC)
  11. SUB_RULES-y:= ${LOCAL_DIR}/${MTK_SOC}
  12. $(eval $(call MAKE_MODULE,$(MODULE),$(LOCAL_SRCS-y),$(MTK_BL)))
  13. $(eval $(call INCLUDE_MAKEFILE,$(SUB_RULES-y)))