2024-04-27 14:13:59 -07:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
2024-04-27 14:17:48 -07:00
|
|
|
$(info FM_LAYERDEC_2 = $(FM_LAYERDEC_2))
|
|
|
|
$(info FM_PLAT = $(FM_PLAT))
|
|
|
|
$(info FM_CHIP = $(FM_CHIP))
|
|
|
|
$(info FM_CHIP_ID = $(FM_CHIP_ID))
|
|
|
|
$(info BUILD_CONNAC2 = $(BUILD_CONNAC2))
|
2024-04-27 14:13:59 -07:00
|
|
|
|
|
|
|
MODULE_NAME := fmradio_drv_$(FM_PLAT)
|
|
|
|
LOCAL_INIT_RC := init.fmradio_drv.rc
|
|
|
|
LOCAL_MODULE := $(MODULE_NAME).ko
|
|
|
|
LOCAL_PROPRIETARY_MODULE := true
|
|
|
|
LOCAL_MODULE_OWNER := mtk
|
|
|
|
ifeq ($(BUILD_CONNAC2), true)
|
|
|
|
LOCAL_REQUIRED_MODULES := conninfra.ko
|
|
|
|
else
|
|
|
|
LOCAL_REQUIRED_MODULES := wmt_drv.ko
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TARGET_BUILD_VARIANT),user)
|
|
|
|
FM_OPTS := CONFIG_FM_USER_LOAD=1
|
|
|
|
else
|
|
|
|
FM_OPTS :=
|
|
|
|
endif
|
|
|
|
|
2024-04-27 14:17:48 -07:00
|
|
|
ifeq ($(FM_LAYERDEC_2),)
|
|
|
|
FM_OPTS += MODULE_NAME=$(MODULE_NAME) CFG_BUILD_CONNAC2=$(BUILD_CONNAC2) CFG_FM_CHIP_ID=$(FM_CHIP_ID) CFG_FM_CHIP=$(FM_CHIP)
|
|
|
|
else
|
|
|
|
FM_OPTS += MODULE_NAME=$(MODULE_NAME) CFG_BUILD_CONNAC2=$(BUILD_CONNAC2) CFG_FM_CHIP=$(FM_CHIP) CFG_FM_LAYERDEC_2=$(FM_LAYERDEC_2)
|
|
|
|
endif
|
2024-04-27 14:13:59 -07:00
|
|
|
|
|
|
|
include $(MTK_KERNEL_MODULE)
|
|
|
|
|
|
|
|
$(linked_module): OPTS += $(FM_OPTS)
|
|
|
|
|