Files
SDK_RK3288/device/rockchip/rk3288/device.mk

102 lines
3.7 KiB
Makefile

#
# Copyright 2014 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.
#
PRODUCT_PACKAGES += \
Launcher3 \
fireflyapi
#$_rbox_$_modify_$_zhengyang: add displayd
PRODUCT_PACKAGES += \
displayd
#enable this for support f2fs with data partion
#BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
# This ensures the needed build tools are available.
# TODO: make non-linux builds happy with external/f2fs-tool; system/extras/f2fs_utils
#ifeq ($(HOST_OS),linux)
#TARGET_USERIMAGES_USE_F2FS := true
#endif
#add bin su
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/su:system/xbin/su
#add bin su
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/xsu:system/xbin/xsu
ifeq ($(strip $(TARGET_BOARD_PLATFORM_PRODUCT)), box)
ifeq ($(strip $(TARGET_PRODUCT)), rk3288_aio_3288j_box)
BOARD_SEPOLICY_DIRS += \
device/rockchip/rk3288/rk3288_aio_3288j_box/sepolicy
BOARD_SEPOLICY_UNION += \
service_contexts
PRODUCT_COPY_FILES += \
device/rockchip/rk3288/rk3288_aio_3288j_box/init.rc:root/init.rc \
device/rockchip/rk3288/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown \
device/rockchip/rk3288/rk3288_aio_3288j_box/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc
else ifeq ($(strip $(TARGET_PRODUCT)), rk3288_aio_3288c_box)
BOARD_SEPOLICY_DIRS += \
device/rockchip/rk3288/rk3288_aio_3288c_box/sepolicy
BOARD_SEPOLICY_UNION += \
service_contexts
PRODUCT_COPY_FILES += \
device/rockchip/rk3288/rk3288_aio_3288c_box/init.rc:root/init.rc \
device/rockchip/rk3288/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown \
device/rockchip/rk3288/rk3288_aio_3288c_box/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc
else
BOARD_SEPOLICY_DIRS += \
device/rockchip/rk3288/rk3288_box/sepolicy
BOARD_SEPOLICY_UNION += \
service_contexts
PRODUCT_COPY_FILES += \
device/rockchip/rk3288/rk3288_box/init.rc:root/init.rc \
device/rockchip/rk3288/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown \
device/rockchip/rk3288/rk3288_box/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc
endif
else
PRODUCT_COPY_FILES += \
device/rockchip/rk3288/init.rc:root/init.rc \
device/rockchip/rk3288/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown \
device/rockchip/rk3288/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc
endif
PRODUCT_COPY_FILES += \
device/rockchip/rk3288/gps/u-blox.conf:system/etc/u-blox.conf \
device/rockchip/rk3288/gps/gps.default.so:system/lib/hw/gps.default.so
########################################################
# this product has GPS or not
########################################################
ifeq ($(strip $(BOARD_HAS_GPS)),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasGPS=false
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.factory.hasGPS=false
endif
# setup dalvik vm configs.
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
$(call inherit-product-if-exists, vendor/rockchip/rk3288/device-vendor.mk)
$(call inherit-product-if-exists, vendor/rockchip/firefly/firefly.mk)