Loading target/board/generic/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,16 @@ DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading target/board/generic_arm64/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,16 @@ DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading target/board/generic_x86/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,16 @@ BOARD_SEPOLICY_DIRS += \ build/target/board/generic/sepolicy \ build/target/board/generic_x86/sepolicy # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading target/board/generic_x86_64/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,16 @@ BOARD_SEPOLICY_DIRS += \ build/target/board/generic/sepolicy \ build/target/board/generic_x86/sepolicy # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading Loading
target/board/generic/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,16 @@ DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading
target/board/generic_arm64/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -88,6 +88,16 @@ DEVICE_MATRIX_FILE := device/generic/goldfish/compatibility_matrix.xml BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true BOARD_SEPOLICY_DIRS += build/target/board/generic/sepolicy # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading
target/board/generic_x86/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,16 @@ BOARD_SEPOLICY_DIRS += \ build/target/board/generic/sepolicy \ build/target/board/generic_x86/sepolicy # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading
target/board/generic_x86_64/BoardConfig.mk +10 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,16 @@ BOARD_SEPOLICY_DIRS += \ build/target/board/generic/sepolicy \ build/target/board/generic_x86/sepolicy # Android Verified Boot (AVB): # Builds a special vbmeta.img that disables AVB verification. # Otherwise, AVB will prevent the device from booting the generic system.img. # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity # metadata into system.img. ifeq ($(BOARD_AVB_ENABLE),true) $(error BOARD_AVB_ENABLE cannot be set for GSI) endif BOARD_BUILD_DISABLED_VBMETAIMAGE := true ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) # GSI is always userdebug and needs a couple of properties taking precedence # over those set by the vendor. Loading