blob: 00043252d852ba113abc706542b71ca3929a383d [file] [log] [blame]
Simon Shields7ef0e172017-09-04 21:11:16 +10001# Insert new variables inside the Lineage structure
Simon Shields4ed46052017-08-23 12:03:36 +10002lineage_soong:
3 $(hide) mkdir -p $(dir $@)
4 $(hide) (\
5 echo '{'; \
Simon Shields7ef0e172017-09-04 21:11:16 +10006 echo '"Lineage": {'; \
Adrian DC41927e42017-07-24 14:04:34 +02007 echo ' "Has_legacy_camera_hal1": $(if $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)),true,false),'; \
Arne Coucheron73296f12017-12-27 11:36:09 +01008 echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false),'; \
Adrian DCae509e42018-02-18 14:51:05 +01009 echo ' "Specific_camera_parameter_library": "$(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)",'; \
10 echo ' "Target_shim_libs": "$(subst $(space),:,$(TARGET_LD_SHIM_LIBS))",'; \
11 echo ' "Uses_generic_camera_parameter_library": $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),false,true),'; \
Rashed Abdel-Tawab31eec202018-03-24 11:17:49 -070012 echo ' "Uses_qcom_bsp_legacy": $(if $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)),true,false),'; \
13 echo ' "Uses_qti_camera_device": $(if $(filter true,$(TARGET_USES_QTI_CAMERA_DEVICE)),true,false)'; \
Simon Shields7ef0e172017-09-04 21:11:16 +100014 echo '},'; \
Simon Shields4ed46052017-08-23 12:03:36 +100015 echo '') > $(SOONG_VARIABLES_TMP)