Commit 6cdf2a9f authored by Cody Xie's avatar Cody Xie
Browse files

rename to vendor/rockchip/common and device/rockchip/common

parent e2ec7427
File mode changed from 100755 to 100644
......@@ -15,4 +15,4 @@
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/rksdk.mk
$(LOCAL_DIR)/common.mk
......@@ -15,53 +15,47 @@
#
# Use the non-open-source parts, if they're present
-include vendor/rockchip/rksdk/BoardConfigVendor.mk
-include vendor/rockchip/common/BoardConfigVendor.mk
TARGET_NO_KERNEL ?= false
TARGET_PREBUILT_KERNEL ?= kernel/arch/arm/boot/zImage
TARGET_PREBUILT_RESOURCE ?= kernel/resource.img
TARGET_BOARD_PLATFORM ?= rk30xx
TARGET_BOARD_PLATFORM ?= rk3288
# CPU feature configration
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_VARIANT := cortex-a9
TARGET_ARCH ?= arm
TARGET_ARCH_VARIANT ?= armv7-a-neon
ARCH_ARM_HAVE_TLS_REGISTER ?= true
TARGET_CPU_ABI ?= armeabi-v7a
TARGET_CPU_ABI2 ?= armeabi
TARGET_CPU_VARIANT ?= cortex-a9
TARGET_CPU_SMP ?= true
# rk30sdk uses Cortex A9
TARGET_EXTRA_CFLAGS += $(call cc-option,-mtune=cortex-a9,$(call cc-option,-mtune=cortex-a8)) $(call cc-option,-mcpu=cortex-a9,$(call cc-option,-mcpu=cortex-a8))
# GPU configration
TARGET_BOARD_PLATFORM_GPU ?= mali400
TARGET_BOARD_PLATFORM_GPU ?= MaliT760
BOARD_USE_LCDC_COMPOSER ?= false
GRAPHIC_MEMORY_PROVIDER ?= ump
USE_OPENGL_RENDERER ?= true
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), mali400)
ifeq ($(TARGET_BOARD_PLATFORM),rk2928)
BOARD_EGL_CFG := device/rockchip/common/gpu/libMali-400MP/rk2928/egl.cfg
else
BOARD_EGL_CFG := device/rockchip/common/gpu/libMali-400MP/egl.cfg
endif
BOARD_EGL_CFG := vendor/rockchip/common/gpu/Mali400/egl.cfg
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), Mali-T760)
BOARD_EGL_CFG := device/rockchip/common/gpu/libMali-T760/egl.cfg
BOARD_EGL_CFG := vendor/rockchip/common/gpu/MaliT760/etc/egl.cfg
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), PVR540)
BOARD_EGL_CFG := device/rockchip/common/gpu/libPVR540/egl.cfg
BOARD_EGL_CFG ?= vendor/rockchip/common/gpu/PVR540/egl.cfg
endif
TARGET_BOARD_HARDWARE ?= rk30board
TARGET_BOOTLOADER_BOARD_NAME ?= rk30sdk
TARGET_NO_BOOTLOADER ?= true
BOARD_USE_LOW_MEM ?= false
DEVICE_PACKAGE_OVERLAYS += device/rockchip/rksdk/overlay
TARGET_RELEASETOOLS_EXTENSIONS := device/rockchip/rksdk
DEVICE_PACKAGE_OVERLAYS += device/rockchip/common/overlay
TARGET_RELEASETOOLS_EXTENSIONS := device/rockchip/common
TARGET_PROVIDES_INIT_RC ?= false
BOARD_HAL_STATIC_LIBRARIES := libdumpstate.$(TARGET_PRODUCT) libhealthd.$(TARGET_PRODUCT)
......@@ -73,38 +67,38 @@ BOARD_FLASH_BLOCK_SIZE ?= 131072
ifeq ($(HOST_OS),linux)
ifeq ($(TARGET_BUILD_VARIANT),user)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true
WITH_DEXPREOPT ?= true
endif
endif
endif
ART_USE_HSPACE_COMPACT=true
ART_USE_HSPACE_COMPACT ?= true
TARGET_USES_LOGD ?= true
# Sepolicy
BOARD_SEPOLICY_DIRS := device/rockchip/rksdk/sepolicy
BOARD_SEPOLICY_UNION := \
akmd.te \
app.te \
device.te \
bluetooth.te \
drmserver.te \
file.te \
file_contexts \
genfs_contexts \
gpsd.te \
init.te \
kernel.te \
mediaserver.te \
netd.te \
platform_app.te \
recovery.te \
rild.te \
shell.te \
surfaceflinger.te \
system_server.te \
vold.te \
BOARD_SEPOLICY_DIRS ?= device/rockchip/common/sepolicy
BOARD_SEPOLICY_UNION ?= \
akmd.te \
app.te \
device.te \
bluetooth.te \
drmserver.te \
file.te \
file_contexts \
genfs_contexts \
gpsd.te \
init.te \
kernel.te \
mediaserver.te \
netd.te \
platform_app.te \
recovery.te \
rild.te \
shell.te \
surfaceflinger.te \
system_server.te \
vold.te \
zygote.te
......@@ -113,7 +107,7 @@ TARGET_NO_RECOVERY ?= false
TARGET_ROCHCHIP_RECOVERY ?= true
# to flip screen in recovery
BOARD_HAS_FLIPPED_SCREEN := false
BOARD_HAS_FLIPPED_SCREEN ?= false
# To use bmp as kernel logo, uncomment the line below to use bgra 8888 in recovery
#TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
......@@ -148,16 +142,16 @@ BUILD_WITH_DRMSERVICE :=true
# for tablet encryption
BUILD_WITH_CRYPTO := false
# Audio
BOARD_USES_GENERIC_AUDIO ?= true
# Wifi&Bluetooth
include device/rockchip/$(TARGET_PRODUCT)/wifi_bt.mk
include device/rockchip/rksdk/wifi_bt_common.mk
include device/rockchip/common/wifi_bt_common.mk
# google apps
BUILD_WITH_GOOGLE_MARKET ?= true
BUILD_WITH_GOOGLE_MARKET_ALL ?= false
# face lock
BUILD_WITH_FACELOCK ?= false
......@@ -165,61 +159,54 @@ BUILD_WITH_FACELOCK ?= false
# ebook
BUILD_WITH_RK_EBOOK ?= false
# rksu
BUILD_WITH_RKSU ?= false
# Sensors
BOARD_SENSOR_ST := true
BOARD_SENSOR_ST ?= true
# if use akm8963
#BOARD_SENSOR_COMPASS_AK8963 := true
#BOARD_SENSOR_COMPASS_AK8963 ?= true
# if need calculation angle between two gsensors
#BOARD_SENSOR_ANGLE := true
#BOARD_SENSOR_ANGLE ?= true
# if need calibration
#BOARD_SENSOR_CALIBRATION := true
#BOARD_SENSOR_CALIBRATION ?= true
# if use mpu
#BOARD_SENSOR_MPU := true
#BOARD_USES_GENERIC_INVENSENSE := false
#BOARD_SENSOR_MPU ?= true
#BOARD_USES_GENERIC_INVENSENSE ?= false
# readahead files to improve boot time
# BOARD_BOOT_READAHEAD ?= true
BOARD_BP_AUTO := true
BOARD_BP_AUTO ?= true
# phone pad codec list
BOARD_CODEC_WM8994 := false
BOARD_CODEC_RT5625_SPK_FROM_SPKOUT := false
BOARD_CODEC_RT5625_SPK_FROM_HPOUT := false
BOARD_CODEC_RT3261 := false
BOARD_CODEC_RT3224 := true
BOARD_CODEC_RT5631 := false
BOARD_CODEC_RK616 := false
BOARD_CODEC_WM8994 ?= false
BOARD_CODEC_RT5625_SPK_FROM_SPKOUT ?= false
BOARD_CODEC_RT5625_SPK_FROM_HPOUT ?= false
BOARD_CODEC_RT3261 ?= false
BOARD_CODEC_RT3224 ?= true
BOARD_CODEC_RT5631 ?= false
BOARD_CODEC_RK616 ?= false
# Vold configrations
# if set to true m-user would be disabled and UMS enabled, if set to disable UMS would be disabled and m-user enabled
BUILD_WITH_UMS := true
BUILD_WITH_UMS ?= true
# if set to true BUILD_WITH_UMS must be false.
BUILD_WITH_CDROM := false
BUILD_WITH_CDROM ?= false
BUILD_WITH_CDROM_PATH ?= /system/etc/cd.iso
# multi usb partitions
BUILD_WITH_MULTI_USB_PARTITIONS := false
BUILD_WITH_MULTI_USB_PARTITIONS ?= false
# define tablet support NTFS
BOARD_IS_SUPPORT_NTFS := true
# for update nand 2.1
NAND_UPDATE :=true
BOARD_IS_SUPPORT_NTFS ?= true
# product has GPS or not
BOARD_HAS_GPS := false
BOARD_HAS_GPS ?= false
# ethernet
BOARD_HS_ETHERNET := true
BOARD_HS_ETHERNET ?= true
# manifest
SYSTEM_WITH_MANIFEST := false
SYSTEM_WITH_MANIFEST ?= false
# no battery
BUILD_WITHOUT_BATTERY := false
BUILD_WITHOUT_BATTERY ?= false
BOARD_CHARGER_ENABLE_SUSPEND ?= true
CHARGER_ENABLE_SUSPEND ?= true
......
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<alarm-package>
<app package="com.google.android.gsf"/>
<app package="com.google.android.apps.maps"/>
<app package="com.android.vending"/>
<app package="com.android.phone"/>
<app package="com.google.android.partnersetup"/>
</alarm-package>
File mode changed from 100755 to 100644
#
# 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 do-nothing template file. To use it, copy it to a file
# named "buildspec.mk" in the root directory, and uncomment or change
# the variables necessary for your desired configuration. The file
# "buildspec.mk" should never be checked in to source control.
######################################################################
TARGET_BOARD_PLATFORM ?= rk2928
TARGET_BOARD_PLATFORM_GPU ?= Mali-400MP
BOARD_USE_LOW_MEM ?= true
# Choose a product to build for. Look in the products directory for ones
# that work.
ifndef TARGET_PRODUCT
TARGET_PRODUCT:=rk292x
endif
# Choose a variant to build. If you don't pick one, the default is eng.
# User is what we ship. Userdebug is that, with a few flags turned on
# for debugging. Eng has lots of extra tools for development.
ifndef TARGET_BUILD_VARIANT
#TARGET_BUILD_VARIANT:=user
#TARGET_BUILD_VARIANT:=userdebug
#TARGET_BUILD_VARIANT:=eng
endif
# Choose additional targets to always install, even when building
# minimal targets like "make droid". This takes simple target names
# like "Browser" or "MyApp", the names used by LOCAL_MODULE or
# LOCAL_PACKAGE_NAME. Modules listed here will always be installed in
# /system, even if they'd usually go in /data.
ifndef CUSTOM_MODULES
#CUSTOM_MODULES:=
endif
# Set this to debug or release if you care. Otherwise, it defaults to release.
ifndef TARGET_BUILD_TYPE
#TARGET_BUILD_TYPE:=release
endif
# Uncomment this if you want the host tools built in debug mode. Otherwise
# it defaults to release.
ifndef HOST_BUILD_TYPE
#HOST_BUILD_TYPE:=debug
endif
# Turn on debugging for selected modules. If DEBUG_MODULE_<module-name> is set
# to a non-empty value, the appropriate HOST_/TARGET_CUSTOM_DEBUG_CFLAGS
# will be added to LOCAL_CFLAGS when building the module.
#DEBUG_MODULE_ModuleName:=true
# Specify an alternative tool chain prefix if needed.
#TARGET_TOOLS_PREFIX:=
# Specify the extra CFLAGS to use when building a module whose
# DEBUG_MODULE_ variable is set. Host and device flags are handled
# separately.
#HOST_CUSTOM_DEBUG_CFLAGS:=
#TARGET_CUSTOM_DEBUG_CFLAGS:=
# Choose additional locales, like "en_US" or "it_IT", to add to any
# built product. Any locales that appear in CUSTOM_LOCALES but not in
# the locale list for the selected product will be added to the end
# of PRODUCT_LOCALES.
ifndef CUSTOM_LOCALES
#CUSTOM_LOCALES:=
endif
# If you have a special place to put your ouput files, set this, otherwise
# it goes to <build-root>/out
#OUT_DIR:=/tmp/stuff
# If you want to always set certain system properties, add them to this list.
# E.g., "ADDITIONAL_BUILD_PROPERTIES += ro.prop1=5 prop2=value"
# This mechanism does not currently support values containing spaces.
#ADDITIONAL_BUILD_PROPERTIES +=
# If you want to reduce the system.img size by several meg, and are willing to
# lose access to CJK (and other) character sets, define NO_FALLBACK_FONT:=true
ifndef NO_FALLBACK_FONT
#NO_FALLBACK_FONT:=true
endif
# To enable instrumentation in webcore based apps like gmail and
# the browser, define WEBCORE_INSTRUMENTATION:=true
ifndef WEBCORE_INSTRUMENTATION
#WEBCORE_INSTRUMENTATION:=true
endif
# To disable SVG in webcore define ENABLE_SVG:=false
ifndef ENABLE_SVG
#ENABLE_SVG:=false
endif
# when the build system changes such that this file must be updated, this
# variable will be changed. After you have modified this file with the new
# changes (see buildspec.mk.default), update this to the new value from
# buildspec.mk.default.
BUILD_ENV_SEQUENCE_NUMBER := 10
#
# 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 do-nothing template file. To use it, copy it to a file
# named "buildspec.mk" in the root directory, and uncomment or change
# the variables necessary for your desired configuration. The file
# "buildspec.mk" should never be checked in to source control.
######################################################################
TARGET_BOARD_PLATFORM ?= rk3026
TARGET_BOARD_PLATFORM_GPU ?= Mali-400MP
BOARD_USE_LOW_MEM ?= true
# Choose a product to build for. Look in the products directory for ones
# that work.
ifndef TARGET_PRODUCT
TARGET_PRODUCT:=rk3026
endif
# Choose a variant to build. If you don't pick one, the default is eng.
# User is what we ship. Userdebug is that, with a few flags turned on
# for debugging. Eng has lots of extra tools for development.
ifndef TARGET_BUILD_VARIANT
#TARGET_BUILD_VARIANT:=user
#TARGET_BUILD_VARIANT:=userdebug
#TARGET_BUILD_VARIANT:=eng
endif
# Choose additional targets to always install, even when building
# minimal targets like "make droid". This takes simple target names
# like "Browser" or "MyApp", the names used by LOCAL_MODULE or
# LOCAL_PACKAGE_NAME. Modules listed here will always be installed in
# /system, even if they'd usually go in /data.
ifndef CUSTOM_MODULES
#CUSTOM_MODULES:=
endif
# Set this to debug or release if you care. Otherwise, it defaults to release.
ifndef TARGET_BUILD_TYPE
#TARGET_BUILD_TYPE:=release
endif
# Uncomment this if you want the host tools built in debug mode. Otherwise
# it defaults to release.
ifndef HOST_BUILD_TYPE
#HOST_BUILD_TYPE:=debug
endif
# Turn on debugging for selected modules. If DEBUG_MODULE_<module-name> is set
# to a non-empty value, the appropriate HOST_/TARGET_CUSTOM_DEBUG_CFLAGS
# will be added to LOCAL_CFLAGS when building the module.
#DEBUG_MODULE_ModuleName:=true
# Specify an alternative tool chain prefix if needed.
#TARGET_TOOLS_PREFIX:=
# Specify the extra CFLAGS to use when building a module whose
# DEBUG_MODULE_ variable is set. Host and device flags are handled
# separately.
#HOST_CUSTOM_DEBUG_CFLAGS:=
#TARGET_CUSTOM_DEBUG_CFLAGS:=
# Choose additional locales, like "en_US" or "it_IT", to add to any
# built product. Any locales that appear in CUSTOM_LOCALES but not in
# the locale list for the selected product will be added to the end
# of PRODUCT_LOCALES.
ifndef CUSTOM_LOCALES
#CUSTOM_LOCALES:=
endif
# If you have a special place to put your ouput files, set this, otherwise
# it goes to <build-root>/out
#OUT_DIR:=/tmp/stuff
# If you want to always set certain system properties, add them to this list.
# E.g., "ADDITIONAL_BUILD_PROPERTIES += ro.prop1=5 prop2=value"
# This mechanism does not currently support values containing spaces.
#ADDITIONAL_BUILD_PROPERTIES +=
# If you want to reduce the system.img size by several meg, and are willing to
# lose access to CJK (and other) character sets, define NO_FALLBACK_FONT:=true
ifndef NO_FALLBACK_FONT
#NO_FALLBACK_FONT:=true
endif
# To enable instrumentation in webcore based apps like gmail and
# the browser, define WEBCORE_INSTRUMENTATION:=true
ifndef WEBCORE_INSTRUMENTATION
#WEBCORE_INSTRUMENTATION:=true
endif
# To disable SVG in webcore define ENABLE_SVG:=false
ifndef ENABLE_SVG
#ENABLE_SVG:=false
endif
# when the build system changes such that this file must be updated, this
# variable will be changed. After you have modified this file with the new
# changes (see buildspec.mk.default), update this to the new value from
# buildspec.mk.default.
BUILD_ENV_SEQUENCE_NUMBER := 10
File mode changed from 100755 to 100644
#
# 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 do-nothing template file. To use it, copy it to a file
# named "buildspec.mk" in the root directory, and uncomment or change
# the variables necessary for your desired configuration. The file
# "buildspec.mk" should never be checked in to source control.
######################################################################
TARGET_BOARD_PLATFORM ?= rk3066
TARGET_BOARD_PLATFORM_GPU ?= Mali-400MP
# Choose a product to build for. Look in the products directory for ones
# that work.
ifndef TARGET_PRODUCT
TARGET_PRODUCT:=rk3066
endif
# Choose a variant to build. If you don't pick one, the default is eng.
# User is what we ship. Userdebug is that, with a few flags turned on
# for debugging. Eng has lots of extra tools for development.
ifndef TARGET_BUILD_VARIANT
#TARGET_BUILD_VARIANT:=user
#TARGET_BUILD_VARIANT:=userdebug
#TARGET_BUILD_VARIANT:=eng
endif
# Choose additional targets to always install, even when building
# minimal targets like "make droid". This takes simple target names
# like "Browser" or "MyApp", the names used by LOCAL_MODULE or
# LOCAL_PACKAGE_NAME. Modules listed here will always be installed in
# /system, even if they'd usually go in /data.
ifndef CUSTOM_MODULES
#CUSTOM_MODULES:=
endif
# Set this to debug or release if you care. Otherwise, it defaults to release.
ifndef TARGET_BUILD_TYPE
#TARGET_BUILD_TYPE:=release
endif
# Uncomment this if you want the host tools built in debug mode. Otherwise
# it defaults to release.
ifndef HOST_BUILD_TYPE
#HOST_BUILD_TYPE:=debug
endif
# Turn on debugging for selected modules. If DEBUG_MODULE_<module-name> is set
# to a non-empty value, the appropriate HOST_/TARGET_CUSTOM_DEBUG_CFLAGS
# will be added to LOCAL_CFLAGS when building the module.
#DEBUG_MODULE_ModuleName:=true
# Specify an alternative tool chain prefix if needed.
#TARGET_TOOLS_PREFIX:=
# Specify the extra CFLAGS to use when building a module whose
# DEBUG_MODULE_ variable is set. Host and device flags are handled
# separately.
#HOST_CUSTOM_DEBUG_CFLAGS:=
#TARGET_CUSTOM_DEBUG_CFLAGS:=
# Choose additional locales, like "en_US" or "it_IT", to add to any
# built product. Any locales that appear in CUSTOM_LOCALES but not in
# the locale list for the selected product will be added to the end
# of PRODUCT_LOCALES.
ifndef CUSTOM_LOCALES
#CUSTOM_LOCALES:=
endif
# If you have a special place to put your ouput files, set this, otherwise
# it goes to <build-root>/out
#OUT_DIR:=/tmp/stuff
# If you want to always set certain system properties, add them to this list.
# E.g., "ADDITIONAL_BUILD_PROPERTIES += ro.prop1=5 prop2=value"
# This mechanism does not currently support values containing spaces.
#ADDITIONAL_BUILD_PROPERTIES +=
# If you want to reduce the system.img size by several meg, and are willing to
# lose access to CJK (and other) character sets, define NO_FALLBACK_FONT:=true
ifndef NO_FALLBACK_FONT
#NO_FALLBACK_FONT:=true
endif
# To enable instrumentation in webcore based apps like gmail and
# the browser, define WEBCORE_INSTRUMENTATION:=true
ifndef WEBCORE_INSTRUMENTATION
#WEBCORE_INSTRUMENTATION:=true
endif
# To disable SVG in webcore define ENABLE_SVG:=false
ifndef ENABLE_SVG
#ENABLE_SVG:=false
endif
# when the build system changes such that this file must be updated, this
# variable will be changed. After you have modified this file with the new
# changes (see buildspec.mk.default), update this to the new value from
# buildspec.mk.default.
BUILD_ENV_SEQUENCE_NUMBER := 10
#
# 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 do-nothing template file. To use it, copy it to a file
# named "buildspec.mk" in the root directory, and uncomment or change
# the variables necessary for your desired configuration. The file
# "buildspec.mk" should never be checked in to source control.
######################################################################
TARGET_BOARD_PLATFORM ?= rk30xxb
TARGET_BOARD_PLATFORM_GPU ?= PVR540
# Choose a product to build for. Look in the products directory for ones
# that work.
ifndef TARGET_PRODUCT
TARGET_PRODUCT:=rk3168
endif
# Choose a variant to build. If you don't pick one, the default is eng.
# User is what we ship. Userdebug is that, with a few flags turned on
# for debugging. Eng has lots of extra tools for development.
ifndef TARGET_BUILD_VARIANT
#TARGET_BUILD_VARIANT:=user
#TARGET_BUILD_VARIANT:=userdebug
#TARGET_BUILD_VARIANT:=eng
endif
# Choose additional targets to always install, even when building
# minimal targets like "make droid". This takes simple target names
# like "Browser" or "MyApp", the names used by LOCAL_MODULE or
# LOCAL_PACKAGE_NAME. Modules listed here will always be installed in
# /system, even if they'd usually go in /data.
ifndef CUSTOM_MODULES
#CUSTOM_MODULES:=
endif
# Set this to debug or release if you care. Otherwise, it defaults to release.
ifndef TARGET_BUILD_TYPE
#TARGET_BUILD_TYPE:=release
endif
# Uncomment this if you want the host tools built in debug mode. Otherwise
# it defaults to release.
ifndef HOST_BUILD_TYPE
#HOST_BUILD_TYPE:=debug
endif
# Turn on debugging for selected modules. If DEBUG_MODULE_<module-name> is set
# to a non-empty value, the appropriate HOST_/TARGET_CUSTOM_DEBUG_CFLAGS
# will be added to LOCAL_CFLAGS when building the module.
#DEBUG_MODULE_ModuleName:=true
# Specify an alternative tool chain prefix if needed.
#TARGET_TOOLS_PREFIX:=
# Specify the extra CFLAGS to use when building a module whose
# DEBUG_MODULE_ variable is set. Host and device flags are handled
# separately.
#HOST_CUSTOM_DEBUG_CFLAGS:=
#TARGET_CUSTOM_DEBUG_CFLAGS:=
# Choose additional locales, like "en_US" or "it_IT", to add to any
# built product. Any locales that appear in CUSTOM_LOCALES but not in
# the locale list for the selected product will be added to the end
# of PRODUCT_LOCALES.
ifndef CUSTOM_LOCALES
#CUSTOM_LOCALES:=
endif
# If you have a special place to put your ouput files, set this, otherwise
# it goes to <build-root>/out
#OUT_DIR:=/tmp/stuff
# If you want to always set certain system properties, add them to this list.
# E.g., "ADDITIONAL_BUILD_PROPERTIES += ro.prop1=5 prop2=value"
# This mechanism does not currently support values containing spaces.
#ADDITIONAL_BUILD_PROPERTIES +=
# If you want to reduce the system.img size by several meg, and are willing to
# lose access to CJK (and other) character sets, define NO_FALLBACK_FONT:=true
ifndef NO_FALLBACK_FONT
#NO_FALLBACK_FONT:=true
endif
# To enable instrumentation in webcore based apps like gmail and
# the browser, define WEBCORE_INSTRUMENTATION:=true
ifndef WEBCORE_INSTRUMENTATION
#WEBCORE_INSTRUMENTATION:=true
endif
# To disable SVG in webcore define ENABLE_SVG:=false
ifndef ENABLE_SVG
#ENABLE_SVG:=false
endif
# when the build system changes such that this file must be updated, this
# variable will be changed. After you have modified this file with the new
# changes (see buildspec.mk.default), update this to the new value from
# buildspec.mk.default.
BUILD_ENV_SEQUENCE_NUMBER := 10
#
# 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 do-nothing template file. To use it, copy it to a file
# named "buildspec.mk" in the root directory, and uncomment or change
# the variables necessary for your desired configuration. The file
# "buildspec.mk" should never be checked in to source control.
######################################################################
TARGET_BOARD_PLATFORM ?= rk3188
TARGET_BOARD_PLATFORM_GPU ?= Mali-400MP
# Choose a product to build for. Look in the products directory for ones
# that work.
ifndef TARGET_PRODUCT
TARGET_PRODUCT:=rk3188
endif
# Choose a variant to build. If you don't pick one, the default is eng.
# User is what we ship. Userdebug is that, with a few flags turned on
# for debugging. Eng has lots of extra tools for development.
ifndef TARGET_BUILD_VARIANT
#TARGET_BUILD_VARIANT:=user
#TARGET_BUILD_VARIANT:=userdebug
#TARGET_BUILD_VARIANT:=eng
endif
# Choose additional targets to always install, even when building
# minimal targets like "make droid". This takes simple target names
# like "Browser" or "MyApp", the names used by LOCAL_MODULE or
# LOCAL_PACKAGE_NAME. Modules listed here will always be installed in
# /system, even if they'd usually go in /data.
ifndef CUSTOM_MODULES
#CUSTOM_MODULES:=
endif
# Set this to debug or release if you care. Otherwise, it defaults to release.
ifndef TARGET_BUILD_TYPE
#TARGET_BUILD_TYPE:=release
endif
# Uncomment this if you want the host tools built in debug mode. Otherwise
# it defaults to release.
ifndef HOST_BUILD_TYPE
#HOST_BUILD_TYPE:=debug
endif
# Turn on debugging for selected modules. If DEBUG_MODULE_<module-name> is set
# to a non-empty value, the appropriate HOST_/TARGET_CUSTOM_DEBUG_CFLAGS
# will be added to LOCAL_CFLAGS when building the module.
#DEBUG_MODULE_ModuleName:=true
# Specify an alternative tool chain prefix if needed.
#TARGET_TOOLS_PREFIX:=
# Specify the extra CFLAGS to use when building a module whose
# DEBUG_MODULE_ variable is set. Host and device flags are handled
# separately.
#HOST_CUSTOM_DEBUG_CFLAGS:=
#TARGET_CUSTOM_DEBUG_CFLAGS:=
# Choose additional locales, like "en_US" or "it_IT", to add to any
# built product. Any locales that appear in CUSTOM_LOCALES but not in
# the locale list for the selected product will be added to the end
# of PRODUCT_LOCALES.
ifndef CUSTOM_LOCALES
#CUSTOM_LOCALES:=
endif
# If you have a special place to put your ouput files, set this, otherwise
# it goes to <build-root>/out
#OUT_DIR:=/tmp/stuff
# If you want to always set certain system properties, add them to this list.
# E.g., "ADDITIONAL_BUILD_PROPERTIES += ro.prop1=5 prop2=value"
# This mechanism does not currently support values containing spaces.
#ADDITIONAL_BUILD_PROPERTIES +=
# If you want to reduce the system.img size by several meg, and are willing to
# lose access to CJK (and other) character sets, define NO_FALLBACK_FONT:=true
ifndef NO_FALLBACK_FONT
#NO_FALLBACK_FONT:=true
endif
# To enable instrumentation in webcore based apps like gmail and
# the browser, define WEBCORE_INSTRUMENTATION:=true
ifndef WEBCORE_INSTRUMENTATION
#WEBCORE_INSTRUMENTATION:=true
endif
# To disable SVG in webcore define ENABLE_SVG:=false
ifndef ENABLE_SVG
#ENABLE_SVG:=false
endif
# when the build system changes such that this file must be updated, this
# variable will be changed. After you have modified this file with the new
# changes (see buildspec.mk.default), update this to the new value from
# buildspec.mk.default.
BUILD_ENV_SEQUENCE_NUMBER := 10
......@@ -24,7 +24,7 @@
# Choose a product to build for. Look in the products directory for ones
# that work.
ifndef TARGET_PRODUCT
TARGET_PRODUCT:=rksdk
TARGET_PRODUCT:=common
endif
# Choose a variant to build. If you don't pick one, the default is eng.
......
# Get the long list of APNs
PRODUCT_COPY_FILES += device/rockchip/common/phone/etc/apns-full-conf.xml:system/etc/apns-conf.xml
PRODUCT_COPY_FILES += device/rockchip/common/phone/etc/spn-conf.xml:system/etc/spn-conf.xml
# The rksdk board
include device/rockchip/rksdk/BoardConfig.mk
$(call inherit-product, device/rockchip/rksdk/device.mk)
include device/rockchip/common/BoardConfig.mk
$(call inherit-product, device/rockchip/common/device.mk)
PRODUCT_BRAND := rockchip
PRODUCT_DEVICE := rksdk
......
......@@ -13,10 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
$(shell python device/rockchip/rksdk/auto_generator.py $(TARGET_PRODUCT) preinstall)
$(shell python device/rockchip/rksdk/auto_generator.py $(TARGET_PRODUCT) preinstall_del)
$(shell python $(LOCAL_PATH)/auto_generator.py $(TARGET_PRODUCT) preinstall)
$(shell python $(LOCAL_PATH)/auto_generator.py $(TARGET_PRODUCT) preinstall_del)
-include device/rockchip/$(TARGET_PRODUCT)/preinstall/preinstall.mk
-include device/rockchip/$(TARGET_PRODUCT)/preinstall_del/preinstall.mk
......@@ -47,8 +45,6 @@ endif
PRODUCT_PACKAGES += \
fsck.f2fs mkfs.f2fs
ifeq ($(strip $(BOARD_USE_LCDC_COMPOSER)), true)
# setup dalvik vm configs.
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
......@@ -77,55 +73,15 @@ include frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk
endif
endif
PRODUCT_PACKAGES += WifiDisplay
PRODUCT_PACKAGES += Email
PRODUCT_PACKAGES += StressTest
#########################################################
# Copy proprietary apk
#########################################################
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk312x)
include device/rockchip/common/app/rkapk_312x.mk
else
include device/rockchip/common/app/rkapk.mk
endif
########################################################
# Google applications
########################################################
ifeq ($(strip $(BUILD_WITH_GOOGLE_MARKET)),true)
PRODUCT_GOOGLE_PREBUILT_MODULES :=
ifeq ($(strip $(BUILD_WITH_GOOGLE_MARKET_ALL)),true)
# For GalleryGoogle
#PRODUCT_GOOGLE_PREBUILT_MODULES += GalleryGoogle
#PRODUCT_GOOGLE_PREBUILT_MODULES += librsjni libjni_eglfence libjni_filtershow_filters
# For Google Camera
#PRODUCT_GOOGLE_PREBUILT_MODULES += GoogleCamera
#PRODUCT_GOOGLE_PREBUILT_MODULES += libjni_mosaic libjni_tinyplanet libjpeg libnativehelper_compat
include vendor/google/products/gms.mk
else
include vendor/google/products/gms_mini.mk
endif
endif
########################################################
#rksu
########################################################
ifeq ($(strip $(BUILD_WITH_RKSU)),true)
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/rksu:system/xbin/rksu
endif
PRODUCT_COPY_FILES += \
system/core/rootdir/init.rc:root/init.rc \
device/rockchip/rksdk/init.$(TARGET_BOARD_HARDWARE).rc:root/init.$(TARGET_BOARD_HARDWARE).rc \
device/rockchip/rksdk/init.$(TARGET_BOARD_HARDWARE).usb.rc:root/init.$(TARGET_BOARD_HARDWARE).usb.rc \
$(call add-to-product-copy-files-if-exists,device/rockchip/rksdk/init.$(TARGET_BOARD_HARDWARE).bootmode.emmc.rc:root/init.$(TARGET_BOARD_HARDWARE).bootmode.emmc.rc) \
$(call add-to-product-copy-files-if-exists,device/rockchip/rksdk/init.$(TARGET_BOARD_HARDWARE).bootmode.unknown.rc:root/init.$(TARGET_BOARD_HARDWARE).bootmode.unknown.rc) \
device/rockchip/rksdk/ueventd.$(TARGET_BOARD_HARDWARE).rc:root/ueventd.$(TARGET_BOARD_HARDWARE).rc \
device/rockchip/rksdk/media_profiles_default.xml:system/etc/media_profiles_default.xml \
device/rockchip/rksdk/alarm_filter.xml:system/etc/alarm_filter.xml \
device/rockchip/rksdk/rk29-keypad.kl:system/usr/keylayout/rk29-keypad.kl \
device/rockchip/rksdk/20050030_pwm.kl:system/usr/keylayout/20050030_pwm.kl \
device/rockchip/common/init.$(TARGET_BOARD_HARDWARE).rc:root/init.$(TARGET_BOARD_HARDWARE).rc \
device/rockchip/common/init.$(TARGET_BOARD_HARDWARE).usb.rc:root/init.$(TARGET_BOARD_HARDWARE).usb.rc \
$(call add-to-product-copy-files-if-exists,device/rockchip/common/init.$(TARGET_BOARD_HARDWARE).bootmode.emmc.rc:root/init.$(TARGET_BOARD_HARDWARE).bootmode.emmc.rc) \
$(call add-to-product-copy-files-if-exists,device/rockchip/common/init.$(TARGET_BOARD_HARDWARE).bootmode.unknown.rc:root/init.$(TARGET_BOARD_HARDWARE).bootmode.unknown.rc) \
device/rockchip/common/ueventd.$(TARGET_BOARD_HARDWARE).rc:root/ueventd.$(TARGET_BOARD_HARDWARE).rc \
device/rockchip/common/media_profiles_default.xml:system/etc/media_profiles_default.xml \
device/rockchip/common/rk29-keypad.kl:system/usr/keylayout/rk29-keypad.kl \
device/rockchip/common/20050030_pwm.kl:system/usr/keylayout/20050030_pwm.kl \
PRODUCT_COPY_FILES += \
hardware/broadcom/wlan/bcmdhd/config/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
......@@ -137,23 +93,19 @@ PRODUCT_PACKAGES += \
wpa_supplicant.conf \
dhcpcd.conf
ifneq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), MediaTek_mt7601)
ifneq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), MediaTek)
ifneq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), RealTek)
ifneq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), Espressif)
ifeq ($(filter MediaTek_mt7601 MediaTek RealTek Espressif, $(strip $(BOARD_CONNECTIVITY_VENDOR))), )
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/init.connectivity.rc:root/init.connectivity.rc
endif
endif
endif
$(LOCAL_PATH)/init.connectivity.rc:root/init.connectivity.rc
endif
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio_policy.conf:system/etc/audio_policy.conf
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/fstab.$(TARGET_BOARD_HARDWARE).bootmode.unknown:root/fstab.$(TARGET_BOARD_HARDWARE).bootmode.unknown \
device/rockchip/rksdk/fstab.$(TARGET_BOARD_HARDWARE).bootmode.emmc:root/fstab.$(TARGET_BOARD_HARDWARE).bootmode.emmc
$(LOCAL_PATH)/fstab.$(TARGET_BOARD_HARDWARE).bootmode.unknown:root/fstab.$(TARGET_BOARD_HARDWARE).bootmode.unknown \
$(LOCAL_PATH)/fstab.$(TARGET_BOARD_HARDWARE).bootmode.emmc:root/fstab.$(TARGET_BOARD_HARDWARE).bootmode.emmc
# For audio-recoard
PRODUCT_PACKAGES += \
......@@ -163,60 +115,8 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libwebrtc_audio_coding
include hardware/rockchip/camera/Config/rk32xx_camera.mk
include hardware/rockchip/camera/Config/user.mk
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), PVR540)
include device/rockchip/common/gpu/PVR540.mk
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), mali400)
include device/rockchip/common/gpu/Mali-400MP.mk
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM_GPU)), Mali-T760)
include device/rockchip/common/gpu/Mali-T760.mk
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk2928)
include device/rockchip/common/vpu/rk2928_vpu.mk
include device/rockchip/common/nand/rk2928_nand.mk
else
include device/rockchip/common/ipp/rk29_ipp.mk
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk3026)
include device/rockchip/common/vpu/rk3026_vpu.mk
include device/rockchip/common/nand/rk3026_nand.mk
else
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk3036)
include device/rockchip/common/nand/rk3036_nand.mk
include device/rockchip/common/vpu/rk30_vpu.mk
else
include device/rockchip/common/vpu/rk30_vpu.mk
include device/rockchip/common/nand/rk30_nand.mk
endif
endif
endif
include device/rockchip/common/wifi/rk30_wifi.mk
include device/rockchip/common/ion/rk30_ion.mk
include device/rockchip/common/bin/rk30_bin.mk
include device/rockchip/common/webkit/rk31_webkit.mk
ifeq ($(strip $(BOARD_HAVE_BLUETOOTH)),true)
include device/rockchip/common/bluetooth/rk30_bt.mk
endif
include device/rockchip/common/gps/rk30_gps.mk
include device/rockchip/common/app/rkupdateservice.mk
include device/rockchip/common/app/rkexpe.mk
include device/rockchip/common/app/rkUserExperienceService.mk
#include vendor/google/chrome.mk
include device/rockchip/common/etc/adblock.mk
# uncomment the line bellow to enable phone functions
include device/rockchip/common/phone/rk30_phone.mk
$(call inherit-product-if-exists, hardware/rockchip/camera/Config/rk32xx_camera.mk)
$(call inherit-product-if-exists, hardware/rockchip/camera/Config/user.mk)
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
......@@ -244,15 +144,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
#include device/rockchip/common/features/rk-core.mk
#include device/rockchip/common/features/rk-camera.mk
#include device/rockchip/common/features/rk-camera-front.mk
include device/rockchip/common/features/rk-gms.mk
ifeq ($(strip $(BUILD_WITH_RK_EBOOK)),true)
include device/rockchip/common/app/rkbook.mk
endif
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapersPicker \
......@@ -273,26 +164,12 @@ PRODUCT_PACKAGES += \
akmd
# iep
BUILD_IEP := false
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk3288)
BUILD_IEP := true
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk3190)
BUILD_IEP := true
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk3026)
BUILD_IEP := true
endif
ifeq ($(strip $(TARGET_BOARD_PLATFORM)), rk312x)
BUILD_IEP := true
endif
ifeq ($(BUILD_IEP), true)
ifneq ($(filter rk3190 rk3026 rk3288 rk312x, $(strip $(TARGET_BOARD_PLATFORM))), )
BUILD_IEP := true
PRODUCT_PACKAGES += \
libiep
else
BUILD_IEP := false
endif
# charge
......@@ -343,10 +220,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.strictmode.visual=false \
dalvik.vm.jniopts=warnonly
ifeq ($(strip $(BUILD_WITH_CRYPTO)),true)
PRODUCT_PROPERTY_OVERRIDES += ro.crypto.state=unencrypted
endif
ifeq ($(strip $(BOARD_HAVE_BLUETOOTH)),true)
PRODUCT_PROPERTY_OVERRIDES += ro.rk.bt_enable=true
else
......@@ -373,32 +246,30 @@ PRODUCT_TAGS += dalvik.gc.type-precise
# build with UMS? CDROM?
########################################################
ifeq ($(strip $(BUILD_WITH_UMS)),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasUMS=true \
persist.sys.usb.config=mass_storage,adb \
testing.mediascanner.skiplist = /mnt/internal_sd/Android/
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasUMS=true \
persist.sys.usb.config=mass_storage,adb \
testing.mediascanner.skiplist = /mnt/internal_sd/Android/
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/init.$(TARGET_BOARD_HARDWARE).hasUMS.true.rc:root/init.$(TARGET_BOARD_HARDWARE).environment.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.$(TARGET_BOARD_HARDWARE).hasUMS.true.rc:root/init.$(TARGET_BOARD_HARDWARE).environment.rc
else
ifeq ($(strip $(BUILD_WITH_CDROM)),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasUMS=cdrom \
ro.factory.cdrom=$(BUILD_WITH_CDROM_PATH) \
persist.sys.usb.config=mass_storage,adb
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/init.$(TARGET_BOARD_HARDWARE).hasCDROM.true.rc:root/init.$(TARGET_BOARD_HARDWARE).environment.rc
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasUMS=cdrom \
ro.factory.cdrom=$(BUILD_WITH_CDROM_PATH) \
persist.sys.usb.config=mass_storage,adb
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.$(TARGET_BOARD_HARDWARE).hasCDROM.true.rc:root/init.$(TARGET_BOARD_HARDWARE).environment.rc
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasUMS=false \
persist.sys.usb.config=mtp,adb \
testing.mediascanner.skiplist = /mnt/shell/emulated/Android/
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasUMS=false \
persist.sys.usb.config=mtp,adb \
testing.mediascanner.skiplist = /mnt/shell/emulated/Android/
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/init.$(TARGET_BOARD_HARDWARE).hasUMS.false.rc:root/init.$(TARGET_BOARD_HARDWARE).environment.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.$(TARGET_BOARD_HARDWARE).hasUMS.false.rc:root/init.$(TARGET_BOARD_HARDWARE).environment.rc
endif
endif
......@@ -406,50 +277,47 @@ endif
# build with drmservice
########################################################
ifeq ($(strip $(BUILD_WITH_DRMSERVICE)),true)
PRODUCT_PACKAGES += \
drmservice
PRODUCT_PACKAGES += drmservice
endif
########################################################
# this product has GPS or not
########################################################
ifeq ($(strip $(BOARD_HAS_GPS)),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasGPS=true
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasGPS=true
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasGPS=false
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasGPS=false
endif
########################################################
# this product has Ethernet or not
########################################################
ifneq ($(strip $(BOARD_HS_ETHERNET)),true)
PRODUCT_PROPERTY_OVERRIDES += ro.rk.ethernet_enable=false
PRODUCT_PROPERTY_OVERRIDES += ro.rk.ethernet_enable=false
endif
#######################################################
#build system support ntfs?
########################################################
ifeq ($(strip $(BOARD_IS_SUPPORT_NTFS)),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.storage_suppntfs=true
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.storage_suppntfs=true
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.storage_suppntfs=false
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.storage_suppntfs=false
endif
########################################################
# build without barrery
########################################################
ifeq ($(strip $(BUILD_WITHOUT_BATTERY)),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.without_battery=true
ifeq ($(strip $(BUILD_WITHOUT_BATTERY)), true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.without_battery=true
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.without_battery=false
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.without_battery=false
endif
# NTFS support
......@@ -463,61 +331,53 @@ PRODUCT_PACKAGES += \
librecovery_ui_$(TARGET_PRODUCT)
# for bugreport
ifneq ($(TARGET_BUILD_VARIANT),user)
PRODUCT_COPY_FILES += device/rockchip/rksdk/bugreport.sh:system/bin/bugreport.sh
ifneq ($(TARGET_BUILD_VARIANT), user)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bugreport.sh:system/bin/bugreport.sh
endif
ifeq ($(strip $(BOARD_BOOT_READAHEAD)),true)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/proprietary/readahead/readahead:root/sbin/readahead \
$(LOCAL_PATH)/proprietary/readahead/readahead_list.txt:root/readahead_list.txt
ifeq ($(strip $(BOARD_BOOT_READAHEAD)), true)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/proprietary/readahead/readahead:root/sbin/readahead \
$(LOCAL_PATH)/proprietary/readahead/readahead_list.txt:root/readahead_list.txt
endif
#whtest for bin
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/whtest.sh:system/bin/whtest.sh
$(LOCAL_PATH)/whtest.sh:system/bin/whtest.sh
# for preinstall
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/preinstall_cleanup.sh:system/bin/preinstall_cleanup.sh
$(LOCAL_PATH)/preinstall_cleanup.sh:system/bin/preinstall_cleanup.sh
# for data clone
include device/rockchip/common/data_clone/packdata.mk
#getbootmode.sh for stresstest
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/getbootmode.sh:system/bin/getbootmode.sh \
$(call inherit-product-if-exists, external/wlan_loader/wifi-firmware.mk)
$(call inherit-product, external/wlan_loader/wifi-firmware.mk)
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), MediaTek)
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), combo_mt66xx)
$(call inherit-product, hardware/mediatek/config/$(strip $(BOARD_CONNECTIVITY_MODULE))/product_package.mk)
ifneq ($(filter MediaTek combo_mt66xx, $(strip $(BOARD_CONNECTIVITY_MODULE))), )
$(call inherit-product-if-exists, hardware/mediatek/config/$(strip $(BOARD_CONNECTIVITY_MODULE))/product_package.mk)
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), mt5931_6622)
$(call inherit-product, hardware/mediatek/config/$(strip $(BOARD_CONNECTIVITY_MODULE))/product_package.mk)
endif
$(call inherit-product-if-exists, hardware/mediatek/config/$(strip $(BOARD_CONNECTIVITY_MODULE))/product_package.mk)
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), RealTek)
include hardware/realtek/wlan/config/config-rtl.mk
$(call inherit-product-if-exists, hardware/realtek/wlan/config/config-rtl.mk)
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_VENDOR)), Espressif)
include hardware/esp/wlan/config/config-espressif.mk
$(call inherit-product-if-exists, hardware/esp/wlan/config/config-espressif.mk)
endif
# Copy manifest to system/
ifeq ($(strip $(SYSTEM_WITH_MANIFEST)),true)
PRODUCT_COPY_FILES += \
manifest.xml:system/manifest.xml
PRODUCT_COPY_FILES += \
manifest.xml:system/manifest.xml
endif
# Copy init.usbstorage.rc to root
ifeq ($(strip $(BUILD_WITH_MULTI_USB_PARTITIONS)),true)
PRODUCT_COPY_FILES += \
device/rockchip/rksdk/init.usbstorage.rc:root/init.usbstorage.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.usbstorage.rc:root/init.usbstorage.rc
endif
ifeq ($(strip $(BOARD_CONNECTIVITY_MODULE)), ap6xxx_nfc)
......@@ -530,9 +390,9 @@ PRODUCT_PACKAGES += \
# NFCEE access control
ifeq ($(TARGET_BUILD_VARIANT),user)
NFCEE_ACCESS_PATH := device/rockchip/rksdk/nfc/nfcee_access.xml
NFCEE_ACCESS_PATH := $(LOCAL_PATH)/nfc/nfcee_access.xml
else
NFCEE_ACCESS_PATH := device/rockchip/rksdk/nfc/nfcee_access_debug.xml
NFCEE_ACCESS_PATH := $(LOCAL_PATH)/nfc/nfcee_access_debug.xml
endif
copyNfcFirmware = $(subst XXXX,$(strip $(1)),hardware/broadcom/nfc/firmware/XXXX:/system/vendor/firmware/XXXX)
......@@ -542,11 +402,11 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
device/rockchip/rksdk/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
device/rockchip/rksdk/nfc/libnfc-brcm-20791b03.conf:system/etc/libnfc-brcm-20791b03.conf \
device/rockchip/rksdk/nfc/libnfc-brcm-20791b04.conf:system/etc/libnfc-brcm-20791b04.conf \
device/rockchip/rksdk/nfc/libnfc-brcm-20791b05.conf:system/etc/libnfc-brcm-20791b05.conf \
device/rockchip/rksdk/nfc/libnfc-brcm-43341b00.conf:system/etc/libnfc-brcm-43341b00.conf \
$(LOCAL_PATH)/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
$(LOCAL_PATH)/nfc/libnfc-brcm-20791b03.conf:system/etc/libnfc-brcm-20791b03.conf \
$(LOCAL_PATH)/nfc/libnfc-brcm-20791b04.conf:system/etc/libnfc-brcm-20791b04.conf \
$(LOCAL_PATH)/nfc/libnfc-brcm-20791b05.conf:system/etc/libnfc-brcm-20791b05.conf \
$(LOCAL_PATH)/nfc/libnfc-brcm-43341b00.conf:system/etc/libnfc-brcm-43341b00.conf \
$(call copyNfcFirmware, BCM20791B3_002.004.010.0161.0000_Generic_I2CLite_NCD_Signed_configdata.ncd) \
$(call copyNfcFirmware, BCM20791B3_002.004.010.0161.0000_Generic_PreI2C_NCD_Signed_configdata.ncd) \
$(call copyNfcFirmware, BCM20791B5_002.006.013.0011.0000_Generic_I2C_NCD_Unsigned_configdata.ncd) \
......@@ -559,4 +419,4 @@ endif
#PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/ff0f0000.rksdmmc/by-name/system
#$(call inherit-product, build/target/product/verity.mk)
$(call inherit-product-if-exists, vendor/rockchip/rksdk/device-vendor.mk)
$(call inherit-product-if-exists, vendor/rockchip/common/device-vendor.mk)
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/platform/emmc/by-name/system /system ext4 ro,noatime,nodiratime,noauto_da_alloc wait,resize
/dev/block/platform/emmc/by-name/cache /cache ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait
/dev/block/platform/emmc/by-name/metadata /metadata ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait
/dev/block/platform/emmc/by-name/userdata /data ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait,encryptable=/metadata/key_file
/dev/block/platform/emmc/by-name/user /mnt/internal_sd vfat defaults voldmanaged=internal_sd:auto,noemulatedsd
/devices/platform/rk29_sdmmc.0/mmc_host/mmc /mnt/external_sd vfat defaults voldmanaged=external_sd:auto
/devices/platform/usb20 /mnt/usb_storage vfat defaults voldmanaged=usb_storage:auto
# Android fstab file.
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
/dev/block/mtd/by-name/system /system ext4 ro,noatime,nodiratime,noauto_da_alloc,discard wait,resize
/dev/block/mtd/by-name/cache /cache ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait
/dev/block/mtd/by-name/metadata /metadata ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait
/dev/block/mtd/by-name/userdata /data ext4 noatime,nodiratime,nosuid,nodev,noauto_da_alloc,discard wait,encryptable=/metadata/key_file
/dev/block/mtd/by-name/user /mnt/internal_sd vfat defaults voldmanaged=internal_sd:auto,noemulatedsd
/devices/platform/rk29_sdmmc.0/mmc_host/mmc /mnt/external_sd vfat defaults voldmanaged=external_sd:auto
/devices/platform/usb20 /mnt/usb_storage vfat defaults voldmanaged=usb_storage:auto
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
#! /system/bin/sh
su
echo 0 > /sys/module/kernel/parameters/panic
busybox dmesg -s 50000 | busybox grep "Boot mode:" > mnt/internal_sd/boot_mode.txt
File mode changed from 100755 to 100644
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment