Obsolete unused backup project such as OK6410
guowenxue
2018-02-04 00cb813bffdc9876ae03ff0b967be3b1912f2454
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
[guowenxue@centos6 official_android]$ mkdir -p device/lingyun/s3c6410
 
Under device/lingyun/s3c6410 must get follow files:
1, AndroidProducts.mk
2, BoardConfig.mk
3, s3c6410.mk
4, vendorsetup.sh
 
[guowenxue@centos6 official_android]$ cp device/lingyun/crespo/vendorsetup.sh device/lingyun/s3c6410/
[guowenxue@centos6 official_android]$ vim device/lingyun/s3c6410/vendorsetup.sh 
...
add_lunch_combo s3c6410-eng
[guowenxue@centos6 official_android]$ vim device/lingyun/s3c6410/AndroidProducts.mk
#
# This file should set PRODUCT_MAKEFILES to a list of product makefiles
# to expose to the build system.  LOCAL_DIR will already be set to
# the directory containing this file. 
#
# This file may not rely on the value of any variable other than
# LOCAL_DIR; do not use any conditionals, and do not look up the
# value of any variable that isn't set in this file or in a file that
# it includes.
#
 
PRODUCT_MAKEFILES := \
  $(LOCAL_DIR)/s3c6410.mk
 
[guowenxue@centos6 official_android]$ vim device/lingyun/s3c6410/s3c6410.mk
#
# This file should set PRODUCT_MAKEFILES to a list of product makefiles
# to expose to the build system.  LOCAL_DIR will already be set to
# the directory containing this file.
#
# This file may not rely on the value of any variable other than
 
 
# value of any variable that isn't set in this file or in a file that
# it includes.
#
 
PRODUCT_MAKEFILES := \
        $(LOCAL_DIR)/s3c6410.mk
[guowenxue@centos6 official_android]$ cat device/lingyun/s3c6410/s3c6410.mk 
#
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
 
# This is a generic product that isn't specialized for a specific device.
# It includes the base Android platform.
 
 
PRODUCT_PACKAGES := \
    AccountAndSyncSettings \
    DeskClock \
    AlarmProvider \
    Calculator \
    Calendar \
    Camera \
    CertInstaller \
    DrmProvider \
    Email \
    Gallery3D \
    LatinIME \
    Launcher2 \
    Mms \
    Music \
    Provision \
    Protips \
    QuickSearchBox \
    Settings \
    Sync \
    SystemUI \
    Updater \
    CalendarProvider \
    SyncProvider
 
$(call inherit-product, build/target/product/core.mk)
 
# Overrides
PRODUCT_BRAND := lingyun
PRODUCT_MANUFACTURER := lingyun
PRODUCT_DEVICE := s3c6410
PRODUCT_NAME := s3c6410
 
 
[guowenxue@centos6 official_android]$ vim device/lingyun/s3c6410/BoardConfig.mk
# config.mk
#
# Product-specific compile-time definitions.
#
 
# The generic product target doesn't have any hardware-specific pieces.
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_CPU_ABI := armeabi
BOARD_USES_ALSA_AUDIO := true
BOARD_USES_OVERLAY := true
BUILD_WITH_ALSA_UTILS := true
 
# no hardware camera
USE_CAMERA_STUB := false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Links:
-----------------------------
http://www.cnblogs.com/mr-raptor/archive/2012/06/07/2540359.html
 
 
[guowenxue@centos6 official_android]$ mkdir -p vendor/lingyun
[guowenxue@centos6 official_android]$ mkdir -p vendor/lingyun/ok6410
[guowenxue@centos6 official_android]$ mkdir -p vendor/lingyun/products
[guowenxue@centos6 official_android]$ 
 
[guowenxue@centos6 official_android]$ vim vendor/lingyun/products/AndroidProduct.mk
PRODUCT_MAKEFILES := \
    $(LOCAL_DIR)/ok6410.mk
 
[guowenxue@centos6 official_android]$ cp build/target/product/generic.mk vendor/lingyun/products/ok6410.mk
[guowenxue@centos6 official_android]$ vim vendor/lingyun/products/ok6410.mk
...
$(call inherit-product, build/target/product/core.mk)
 
# Overrides
PRODUCT_BRAND := lingyun
PRODUCT_DEVICE := ok6410
PRODUCT_NAME := ok6410
 
[guowenxue@centos6 official_android]$ cp device/lingyun/crespo/vendorsetup.sh vendor/lingyun/
[guowenxue@centos6 official_android]$ vim vendor/lingyun/vendorsetup.sh
...
add_lunch_combo ok6410-eng
[guowenxue@centos6 official_android]$ cp build/target/board/generic/AndroidBoard.mk vendor/lingyun/ok6410/
LOCAL_PATH := $(call my-dir)
 
 
# ----------------------------------------------------------------------------
# copy base files
 
include $(CLEAR_VARS)
PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/ts.conf:system/etc/ts.conf \
    $(LOCAL_PATH)/linuxrc:root/linuxrc \
    $(LOCAL_PATH)/init.rc:root/init.rc
 
[guowenxue@centos6 official_android]$ cp build/target/board/generic/BoardConfig.mk vendor/lingyun/ok6410/
# config.mk
#
# Product-specific compile-time definitions.
#
 
# The generic product target doesn't have any hardware-specific pieces.
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_CPU_ABI := armeabi
BOARD_USES_ALSA_AUDIO := true
BOARD_USES_OVERLAY := true
BUILD_WITH_ALSA_UTILS := true
 
# no hardware camera
USE_CAMERA_STUB := false
 
 
[guowenxue@centos6 official_android]$ vim device/lingyun/s3c6410/BoardConfig.mk