[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
|