Loading core/board_config.mk +4 −1 Original line number Original line Diff line number Diff line Loading @@ -204,8 +204,11 @@ _board_strip_readonly_list += $(_build_broken_var_list) \ # Conditional to building on linux, as dex2oat currently does not work on darwin. # Conditional to building on linux, as dex2oat currently does not work on darwin. ifeq ($(HOST_OS),linux) ifeq ($(HOST_OS),linux) # TODO(riscv64) add compiler support and enable dexpreopt on RISC-V. ifneq ($(TARGET_ARCH),riscv64) WITH_DEXPREOPT := true WITH_DEXPREOPT := true endif endif endif # ############################################################### # ############################################################### # Broken build defaults # Broken build defaults Loading core/dex_preopt_config.mk +6 −3 Original line number Original line Diff line number Diff line Loading @@ -65,6 +65,8 @@ ifeq ($(HOST_OS),linux) # Non eng linux builds must have preopt enabled so that system server doesn't run as interpreter # Non eng linux builds must have preopt enabled so that system server doesn't run as interpreter # only. b/74209329 # only. b/74209329 ifeq (,$(filter eng, $(TARGET_BUILD_VARIANT))) ifeq (,$(filter eng, $(TARGET_BUILD_VARIANT))) # TODO(riscv64) add compiler support and enable dexpreopt on RISC-V. ifeq (,$(filter riscv64, $(TARGET_ARCH))) ifneq (true,$(WITH_DEXPREOPT)) ifneq (true,$(WITH_DEXPREOPT)) ifneq (true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY)) ifneq (true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY)) $(call pretty-error, DEXPREOPT must be enabled for user and userdebug builds) $(call pretty-error, DEXPREOPT must be enabled for user and userdebug builds) Loading @@ -72,6 +74,7 @@ ifeq ($(HOST_OS),linux) endif endif endif endif endif endif endif # Get value of a property. It is first searched from PRODUCT_VENDOR_PROPERTIES # Get value of a property. It is first searched from PRODUCT_VENDOR_PROPERTIES # and then falls back to PRODUCT_SYSTEM_PROPERTIES # and then falls back to PRODUCT_SYSTEM_PROPERTIES Loading target/board/generic_riscv64/BoardConfig.mk +3 −0 Original line number Original line Diff line number Diff line Loading @@ -26,3 +26,6 @@ include build/make/target/board/BoardConfigGsiCommon.mk # Temporary hack while prebuilt modules are missing riscv64. # Temporary hack while prebuilt modules are missing riscv64. ALLOW_MISSING_DEPENDENCIES := true ALLOW_MISSING_DEPENDENCIES := true # Temporary until dex2oat works when targeting riscv64 WITH_DEXPREOPT := false target/product/aosp_riscv64.mk +1 −20 Original line number Original line Diff line number Diff line Loading @@ -30,8 +30,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true # GSI for system/product & support 64-bit apps only # GSI for system/product & support 64-bit apps only $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) #$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) TARGET_FLATTEN_APEX := false # # # All components inherited here go to system_ext image # All components inherited here go to system_ext image Loading @@ -58,24 +57,6 @@ ifeq (aosp_riscv64,$(TARGET_PRODUCT)) $(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) endif endif # TODO: this list should come via mainline_system.mk, but for now list # just the modules that work for riscv64. PRODUCT_PACKAGES := \ init.environ.rc \ init_first_stage \ init_system \ linker \ shell_and_utilities \ com.android.art \ com.android.conscrypt \ com.android.i18n \ com.android.runtime \ com.android.tzdata \ com.android.os.statsd \ $(call inherit-product, $(SRC_TARGET_DIR)/product/default_art_config.mk) PRODUCT_USES_DEFAULT_ART_CONFIG := false PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ root/init.zygote64.rc root/init.zygote64.rc Loading Loading
core/board_config.mk +4 −1 Original line number Original line Diff line number Diff line Loading @@ -204,8 +204,11 @@ _board_strip_readonly_list += $(_build_broken_var_list) \ # Conditional to building on linux, as dex2oat currently does not work on darwin. # Conditional to building on linux, as dex2oat currently does not work on darwin. ifeq ($(HOST_OS),linux) ifeq ($(HOST_OS),linux) # TODO(riscv64) add compiler support and enable dexpreopt on RISC-V. ifneq ($(TARGET_ARCH),riscv64) WITH_DEXPREOPT := true WITH_DEXPREOPT := true endif endif endif # ############################################################### # ############################################################### # Broken build defaults # Broken build defaults Loading
core/dex_preopt_config.mk +6 −3 Original line number Original line Diff line number Diff line Loading @@ -65,6 +65,8 @@ ifeq ($(HOST_OS),linux) # Non eng linux builds must have preopt enabled so that system server doesn't run as interpreter # Non eng linux builds must have preopt enabled so that system server doesn't run as interpreter # only. b/74209329 # only. b/74209329 ifeq (,$(filter eng, $(TARGET_BUILD_VARIANT))) ifeq (,$(filter eng, $(TARGET_BUILD_VARIANT))) # TODO(riscv64) add compiler support and enable dexpreopt on RISC-V. ifeq (,$(filter riscv64, $(TARGET_ARCH))) ifneq (true,$(WITH_DEXPREOPT)) ifneq (true,$(WITH_DEXPREOPT)) ifneq (true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY)) ifneq (true,$(WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY)) $(call pretty-error, DEXPREOPT must be enabled for user and userdebug builds) $(call pretty-error, DEXPREOPT must be enabled for user and userdebug builds) Loading @@ -72,6 +74,7 @@ ifeq ($(HOST_OS),linux) endif endif endif endif endif endif endif # Get value of a property. It is first searched from PRODUCT_VENDOR_PROPERTIES # Get value of a property. It is first searched from PRODUCT_VENDOR_PROPERTIES # and then falls back to PRODUCT_SYSTEM_PROPERTIES # and then falls back to PRODUCT_SYSTEM_PROPERTIES Loading
target/board/generic_riscv64/BoardConfig.mk +3 −0 Original line number Original line Diff line number Diff line Loading @@ -26,3 +26,6 @@ include build/make/target/board/BoardConfigGsiCommon.mk # Temporary hack while prebuilt modules are missing riscv64. # Temporary hack while prebuilt modules are missing riscv64. ALLOW_MISSING_DEPENDENCIES := true ALLOW_MISSING_DEPENDENCIES := true # Temporary until dex2oat works when targeting riscv64 WITH_DEXPREOPT := false
target/product/aosp_riscv64.mk +1 −20 Original line number Original line Diff line number Diff line Loading @@ -30,8 +30,7 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true # GSI for system/product & support 64-bit apps only # GSI for system/product & support 64-bit apps only $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk) #$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk) TARGET_FLATTEN_APEX := false # # # All components inherited here go to system_ext image # All components inherited here go to system_ext image Loading @@ -58,24 +57,6 @@ ifeq (aosp_riscv64,$(TARGET_PRODUCT)) $(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) endif endif # TODO: this list should come via mainline_system.mk, but for now list # just the modules that work for riscv64. PRODUCT_PACKAGES := \ init.environ.rc \ init_first_stage \ init_system \ linker \ shell_and_utilities \ com.android.art \ com.android.conscrypt \ com.android.i18n \ com.android.runtime \ com.android.tzdata \ com.android.os.statsd \ $(call inherit-product, $(SRC_TARGET_DIR)/product/default_art_config.mk) PRODUCT_USES_DEFAULT_ART_CONFIG := false PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ root/init.zygote64.rc root/init.zygote64.rc Loading