• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1include device/generic/goldfish/x86_64-kernel.mk
2
3PRODUCT_PROPERTY_OVERRIDES += \
4       vendor.rild.libpath=/vendor/lib/libgoldfish-ril.so
5
6# This is a build configuration for a full-featured build of the
7# Open-Source part of the tree. It's geared toward a US-centric
8# build quite specifically for the emulator, and might not be
9# entirely appropriate to inherit from for on-device configurations.
10PRODUCT_COPY_FILES += \
11    device/generic/goldfish/data/etc/config.ini.xl:config.ini \
12    device/generic/goldfish/data/etc/advancedFeatures.ini:advancedFeatures.ini \
13    device/generic/goldfish/data/etc/encryptionkey.img:encryptionkey.img \
14    device/generic/goldfish/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json \
15    $(EMULATOR_KERNEL_FILE):kernel-ranchu-64
16
17PRODUCT_SDK_ADDON_COPY_FILES += \
18    device/generic/goldfish/data/etc/advancedFeatures.ini:images/x86/advancedFeatures.ini \
19    device/generic/goldfish/data/etc/encryptionkey.img:images/x86/encryptionkey.img \
20    $(EMULATOR_KERNEL_FILE):images/x86/kernel-ranchu-64
21
22PRODUCT_PACKAGES += \
23    emulatorip
24
25PRODUCT_PROPERTY_OVERRIDES += \
26    ro.crypto.dm_default_key.options_format.version=2
27
28PRODUCT_SHIPPING_API_LEVEL := 31
29PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
30TARGET_USES_MKE2FS := true
31
32ifeq ($(QEMU_DISABLE_AVB),true)
33  ifeq ($(QEMU_USE_SYSTEM_EXT_PARTITIONS),true)
34    PRODUCT_COPY_FILES += \
35      device/generic/goldfish/data/etc/dummy.vbmeta.img:$(PRODUCT_OUT)/vbmeta.img \
36      device/generic/goldfish/fstab.ranchu.initrd.noavb.ex:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.ranchu \
37      device/generic/goldfish/fstab.ranchu.initrd.noavb.ex:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.ranchu \
38      device/generic/goldfish/fstab.ranchu.noavb.ex:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
39  else
40    PRODUCT_COPY_FILES += \
41      device/generic/goldfish/data/etc/dummy.vbmeta.img:$(PRODUCT_OUT)/vbmeta.img \
42      device/generic/goldfish/fstab.ranchu.initrd.noavb:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.ranchu \
43      device/generic/goldfish/fstab.ranchu.initrd.noavb:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.ranchu \
44      device/generic/goldfish/fstab.ranchu.noavb:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
45  endif
46endif
47
48ifeq ($(QEMU_USE_SYSTEM_EXT_PARTITIONS),true)
49PRODUCT_COPY_FILES += \
50    device/generic/goldfish/fstab.ranchu.initrd.ex:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.ranchu \
51    device/generic/goldfish/fstab.ranchu.initrd.ex:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.ranchu \
52    device/generic/goldfish/fstab.ranchu.ex:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
53else
54PRODUCT_COPY_FILES += \
55    device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.ranchu \
56    device/generic/goldfish/fstab.ranchu.initrd:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/fstab.ranchu \
57    device/generic/goldfish/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu
58endif
59