Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 358e63ab authored by Kevin F. Haggerty's avatar Kevin F. Haggerty
Browse files

soong_config: Add TARGET_NEEDS_LEGACY_CAMERA_HAL1_DYN_NATIVE_HANDLE

* A certain subset of legacy HAL1 camera devices need to use this
  specific port mode with this specific buffer type. See
  I15f8cbb3956773e2ba97032203f5e9254505d8ac for details.

Change-Id: Ib35e14cb5cf80efc9e82a301b8e47680202f3905
parent 920f209f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@ type Product_variables struct {
	Has_legacy_camera_hal1 struct {
		Cflags []string
	}
	Needs_legacy_camera_hal1_dyn_native_handle struct {
		Cppflags []string
	}
	Needs_text_relocations struct {
		Cppflags []string
	}
@@ -26,6 +29,7 @@ type Product_variables struct {

type ProductVariables struct {
	Has_legacy_camera_hal1  *bool `json:",omitempty"`
	Needs_legacy_camera_hal1_dyn_native_handle  *bool `json:",omitempty"`
	Needs_text_relocations  *bool `json:",omitempty"`
	Specific_camera_parameter_library  *string `json:",omitempty"`
	Target_shim_libs  *string `json:",omitempty"`
+1 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ lineage_soong:
	echo '{'; \
	echo '"Lineage": {'; \
	echo '    "Has_legacy_camera_hal1": $(if $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)),true,false),'; \
	echo '    "Needs_legacy_camera_hal1_dyn_native_handle": $(if $(filter true,$(TARGET_NEEDS_LEGACY_CAMERA_HAL1_DYN_NATIVE_HANDLE)),true,false),'; \
	echo '    "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false),'; \
	echo '    "Specific_camera_parameter_library": "$(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)",'; \
	echo '    "Target_shim_libs": "$(subst $(space),:,$(TARGET_LD_SHIM_LIBS))",'; \