• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PRODUCT_NAME := goldfish_kernel_tests_x86_64
2PRODUCT_DEVICE := generic_x86_64
3PRODUCT_BRAND := Android
4PRODUCT_MODEL := Kernel tests for goldfish kernel
5PRODUCT_FULL_TREBLE_OVERRIDE := true
6
7BUILD_EMULATOR := false
8
9TARGET_NO_BOOTLOADER := true
10TARGET_NO_KERNEL := true
11TARGET_CPU_ABI := x86_64
12TARGET_ARCH := x86_64
13TARGET_ARCH_VARIANT := x86_64
14TARGET_SUPPORTS_64_BIT_APPS := true
15TARGET_USERIMAGES_USE_EXT4 := true
16TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
17
18BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
19BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
20BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016
21BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
22BOARD_FLASH_BLOCK_SIZE := 512
23BOARD_HAVE_BLUETOOTH := false
24
25SYSTEM_CORE_ROOTDIR := system/core/rootdir
26PREBUILTS := prebuilts
27GOLDFISH_DIR := device/generic/goldfish
28THIS_DIR := device/generic/goldfish/kernel-tests
29
30# android.hardware.
31PRODUCT_PACKAGES += \
32    android.hardware.keymaster@3.0-service \
33    android.hardware.keymaster@3.0-impl \
34    android.hardware.drm@1.1-service.clearkey \
35    android.hardware.graphics.allocator@2.0-service \
36    android.hardware.graphics.allocator@2.0-impl \
37
38# android.hidl.
39PRODUCT_PACKAGES += \
40    android.hidl.allocator@1.0-service \
41    android.hidl.base-V1.0-java \
42    android.hidl.manager-V1.0-java \
43    android.hidl.memory@1.0-impl \
44    android.hidl.memory@1.0-impl.vendor \
45
46# libXYZ
47PRODUCT_PACKAGES += \
48    libc.bootstrap \
49    libdl.bootstrap \
50    libm.bootstrap \
51    libc \
52    libstdc++ \
53    libm \
54    libdl \
55    libutils \
56    libsysutils \
57    libhardware \
58    libhardware_legacy \
59    linker \
60    linker64 \
61
62# logs
63PRODUCT_PACKAGES += \
64    liblog \
65    logd \
66    logcat \
67    logwrapper \
68
69# debugger
70PRODUCT_PACKAGES += \
71    debuggerd \
72    debuggerd64 \
73    dumpstate \
74    dumpsys \
75    crash_dump \
76    adbd \
77
78PRODUCT_HOST_PACKAGES += \
79    adb \
80
81# QEMU
82PRODUCT_PACKAGES += \
83    qemu-props \
84
85# Device modules
86PRODUCT_PACKAGES += \
87    android.system.suspend@1.0-service \
88    ashmemd \
89    libashmemd_client \
90    servicemanager \
91    hwservicemanager \
92    vndservice \
93    vndservicemanager \
94    toolbox \
95    toybox \
96    vold \
97    init \
98    init_system \
99    init_vendor \
100    init.environ.rc \
101    init.rc \
102    reboot \
103    service \
104    cmd \
105    sh \
106    su \
107    e2fsck \
108    gzip \
109
110PRODUCT_HOST_PACKAGES += \
111    e2fsck \
112    mke2fs \
113    e2fsdroid \
114    sload_f2fs \
115    make_f2fs \
116
117# SELinux
118PRODUCT_PACKAGES += \
119    sepolicy \
120    selinux_policy_system \
121    selinux_policy \
122    file_contexts \
123    seapp_contexts \
124    property_contexts \
125    mac_permissions.xml \
126
127PRODUCT_COPY_FILES += \
128    $(SYSTEM_CORE_ROOTDIR)/init.usb.rc:root/init.usb.rc \
129    $(SYSTEM_CORE_ROOTDIR)/init.usb.configfs.rc:root/init.usb.configfs.rc \
130    $(SYSTEM_CORE_ROOTDIR)/ueventd.rc:root/ueventd.rc \
131    $(SYSTEM_CORE_ROOTDIR)/etc/hosts:system/etc/hosts \
132
133PRODUCT_COPY_FILES += \
134    $(PREBUILTS)/qemu-kernel/x86_64/4.14/kernel-qemu2:kernel-ranchu \
135
136PRODUCT_COPY_FILES += \
137    $(GOLDFISH_DIR)/data/etc/encryptionkey.img:encryptionkey.img \
138    $(GOLDFISH_DIR)/ueventd.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
139
140PRODUCT_COPY_FILES += \
141    $(THIS_DIR)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml \
142    $(THIS_DIR)/init.ranchu-core.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.ranchu-core.sh \
143    $(THIS_DIR)/init.ranchu.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.ranchu.rc \
144    $(THIS_DIR)/fstab.ranchu:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu \
145    $(THIS_DIR)/config.ini:config.ini \
146    $(THIS_DIR)/advancedFeatures.ini:advancedFeatures.ini \
147
148# The set of packages we want to force 'speed' compilation on.
149PRODUCT_DEXPREOPT_SPEED_APPS := \
150
151PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
152    ro.zygote=zygote32
153
154PRODUCT_PROPERTY_OVERRIDES += \
155    ro.carrier=unknown
156