summaryrefslogtreecommitdiff
path: root/common.mk
blob: fcfcf10edbee736604aaea5b589ec54f77852c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
ifneq ($(wildcard $(TOP)/packages/apps/AndroidTerm/Android.mk),)
# Include AndroidTerm only if it's part of the manifest
ANDROIDTERM := AndroidTerm libjackpal-androidterm4
endif
ifneq ($(wildcard $(TOP)/packages/inputmethods/hackerskeyboard/Android.mk),)
HACKERSKEYBOARD := PCKeyboard
endif

PRODUCT_PACKAGES := \
    AccountAndSyncSettings \
    AlarmClock \
    AlarmProvider \
    $(ANDROIDTERM) \
    Bluetooth \
    Calculator \
    Calendar \
    Camera \
    CertInstaller \
    DrmProvider \
    Email \
    Gallery3D \
    LatinIME \
    Launcher2 \
    linaro.android \
    Mms \
    Music \
    $(HACKERSKEYBOARD) \
    Provision \
    Settings \
    SystemUI \
    Sync \
    Updater \
    CalendarProvider \
    SyncProvider \
    faketsd \
    hwcomposer.default \
    libmicro \
    powertop \
    powerdebug \
    mmtest \
    GLMark2 \
    libglmark2-android \
    gatord \
    LinaroWallpaper \
    LiveWallpapers \
    LiveWallpapersPicker \
    MagicSmokeWallpapers \
    VisualizationWallpapers \
    librs_jni \
    mediaframeworktest \
    libtinyalsa \
    tinyplay \
    tinycap \
    tinymix \
    libaudioutils \
    ConnectivityManagerTest \
    iozone \
    memtester \
    stress \
    stressapptest \
    DisableSuspend \
    libncurses \
    htop \
    cyclictest \
    sysbench \
    bctest \
    idlestat \
    nfacct \
    iontest \
    ion-unit-tests \
    sshd \
    ssh-keygen

#packages we are using for benchmarking
# d8 replaces v8shell -- we're leaving both packages in here for now so
# older builds still get v8shell.
PRODUCT_PACKAGES += \
    v8shell \
    d8 \
    skia_bench


PRODUCT_PACKAGES += \
    lava-blackbox \
    lava-gtest-wrapper \
    lava-wrapper-finder-gtest \
    ObjenesisTck \
    AudioInRecord \
    libembunit \
    android-mock-runtimelib \
    android-mock-generatorlib \
    ffi-test \
    apache-harmony-tests \
    apache-harmony-tests-hostdex \
    EGL_test \
    BufferQueue_test \
    SurfaceTexture_test \
    gtest-death-test_test \
    gtest-filepath_test \
    gtest-linked_ptr_test \
    gtest-message_test \
    gtest-options_test \
    gtest-port_test \
    gtest-test-part_test \
    gtest-typed-test2_test \
    gtest-typed-test_test \
    gtest_environment_test \
    gtest_prod_test \
    gtest_repeat_test \
    gtest_stress_test \
    webrtc_apm_unit_test \
    BasicHashtable_test \
    BlobCache_test \
    InputChannel_test \
    InputEvent_test \
    InputPublisherAndConsumer_test \
    Looper_test \
    ObbFile_test \
    String8_test \
    Unicode_test \
    Vecotr_test \
    ZipFileRO_test \
    keymaster_test \
    libgui_test

# stuff common to all Linaro LEB
include $(LOCAL_PATH)/extra-and-tests//ZeroXBenchmark.mk


V8BENCHMARKS := $(foreach js,$(wildcard $(TOP)/external/v8/benchmarks/*.js),\
	$(js):data/benchmark/v8/$(notdir $(js)))

PRODUCT_COPY_FILES := \
	device/linaro/common/wallpaper_info.xml:data/system/wallpaper_info.xml \
	device/linaro/common/disablesuspend.sh:system/bin/disablesuspend.sh \
	$(V8BENCHMARKS)

define copy-howto
ifneq ($(wildcard $(TOP)/device/linaro/common/howto/$(LINARO_BUILD_SPEC)/$1),)
PRODUCT_COPY_FILES += \
	device/linaro/common/howto/$(LINARO_BUILD_SPEC)/$1:$1
else
ifneq ($(wildcard $(TOP)/device/linaro/common/howto/default/$1),)
PRODUCT_COPY_FILES += \
	device/linaro/common/howto/default/$1:$1
endif
endif
endef

HOWTOS := \
	HOWTO_install.txt \
	HOWTO_getsourceandbuild.txt \
	HOWTO_flashfirmware.txt \
	HOWTO_releasenotes.txt \
	HOWTO_rtsm.txt

PRODUCT_COPY_FILES += \
        device/linaro/common/media_codecs.xml:system/etc/media_codecs.xml

ifneq ($(wildcard $(TOP)/build-info),)
PRODUCT_COPY_FILES += \
	build-info/BUILD-INFO.txt:BUILD-INFO.txt
endif

$(foreach howto,$(HOWTOS),$(eval $(call copy-howto,$(howto))))

$(call inherit-product, $(SRC_TARGET_DIR)/product/core.mk)