Skip to content

Commit

Permalink
config: Changes for libfmjni bp conversion
Browse files Browse the repository at this point in the history
Change-Id: I666bdc4c1d0cdab4d2557c07f32466cceabe8439
  • Loading branch information
mikeNG committed Oct 18, 2024
1 parent 0834352 commit 0513ded
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build/soong/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -474,3 +474,20 @@ qti_vibrator_hal {
},
},
}

soong_config_module_type {
name: "qcom_libfmjni",
module_type: "cc_defaults",
config_namespace: "lineageQcomVars",
bool_variables: ["no_fm_firmware"],
properties: ["cflags"],
}

qcom_libfmjni {
name: "qcom_libfmjni_defaults",
soong_config_variables: {
no_fm_firmware: {
cflags: ["-DQCOM_NO_FM_FIRMWARE"],
},
},
}
17 changes: 17 additions & 0 deletions config/BoardConfigSoong.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ SOONG_CONFIG_lineageNvidiaVars += \

SOONG_CONFIG_NAMESPACES += lineageQcomVars
SOONG_CONFIG_lineageQcomVars += \
no_fm_firmware \
qti_vibrator_effect_lib \
qti_vibrator_use_effect_stream \
supports_extended_compress_format \
Expand All @@ -78,6 +79,7 @@ SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_reserved_size := $(TARGET_GRAL
SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_ubwcp_format := $(TARGET_GRALLOC_HANDLE_HAS_UBWCP_FORMAT)
SOONG_CONFIG_lineageGlobalVars_uses_egl_display_array := $(TARGET_USES_EGL_DISPLAY_ARRAY)
SOONG_CONFIG_lineageNvidiaVars_uses_nvidia_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)
SOONG_CONFIG_lineageQcomVars_no_fm_firmware := $(TARGET_QCOM_NO_FM_FIRMWARE)
SOONG_CONFIG_lineageQcomVars_qti_vibrator_use_effect_stream := $(TARGET_QTI_VIBRATOR_USE_EFFECT_STREAM)
SOONG_CONFIG_lineageQcomVars_supports_extended_compress_format := $(AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT)
SOONG_CONFIG_lineageQcomVars_uses_pre_uplink_features_netmgrd := $(TARGET_USES_PRE_UPLINK_FEATURES_NETMGRD)
Expand Down Expand Up @@ -131,3 +133,18 @@ else
SOONG_CONFIG_lineageQcomVars_qcom_display_headers_namespace := $(QCOM_SOONG_NAMESPACE)/display
endif
SOONG_CONFIG_lineageQcomVars_qti_vibrator_effect_lib := $(TARGET_QTI_VIBRATOR_EFFECT_LIB)

# libfmjni
ifeq ($(BOARD_HAVE_QCOM_FM),true)
PRODUCT_SOONG_NAMESPACES += \
vendor/qcom/opensource/libfmjni
else ifeq ($(BOARD_HAVE_BCM_FM),true)
PRODUCT_SOONG_NAMESPACES += \
hardware/broadcom/fm
else ifeq ($(BOARD_HAVE_SLSI_FM),true)
PRODUCT_SOONG_NAMESPACES += \
hardware/samsung_slsi/fm
else ifneq ($(BOARD_HAVE_MTK_FM),true)
PRODUCT_SOONG_NAMESPACES += \
packages/apps/FMRadio/jni/fmr
endif

0 comments on commit 0513ded

Please sign in to comment.