device.mk 2.49 KB
Newer Older
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
#
# 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.
#

TARGET_PREBUILT_KERNEL := kernel/arch/arm/boot/zImage

ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := kernel/arch/arm/boot/zImage
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif

PRODUCT_COPY_FILES := \
	$(LOCAL_KERNEL):kernel

28 29 30 31
# copied and modified from device/rockchip/rk312x (default location)
TARGET_SYSTEM_PROP := device/buzztime/bzt232hub01/system.prop
DISPLAY_BUILD_NUMBER := true
BUILD_WITH_DRMSERVICE := true
32 33 34 35 36

$(call inherit-product, device/buzztime/common/device.mk)
PRODUCT_HAVE_RKUPDATE_PREBUILT := false

PRODUCT_PROPERTY_OVERRIDES += \
37
    bzt.forceencrypt=false \
38 39 40 41 42
    debug.bzt.encrypt=false \
    persist.sys.no_req_encrypt=true \
    ro.vold.forceencryption=0 \
    debug.encrypt.autoconfirm=true \
    debug.update.autoconfirm=true \
43 44 45 46
    ro.product.ota.host=ota.buzztime.com:2300

PRODUCT_PROPERTY_OVERRIDES += \
        bzt.mdnsname=buzztime
47 48 49 50 51 52 53 54 55


ifeq ($(PRODUCT_HAVE_RKUPDATE_PREBUILT), false)
    PRODUCT_PACKAGES += \
        RKUpdateServiceBzt \
        org.apache.http.legacy
endif

PRODUCT_PACKAGES += \
56
    jetty \
57
    ssh libssh sftp scp sshd ssh-keygen sshd_config start-ssh \
58 59
    rsync \
    mosquitto mosquitto_conf  mosquitto_pub mosquitto_sub
60 61 62 63 64 65 66 67 68 69 70 71 72 73

# add pcap and supporting features to the build
PRODUCT_PACKAGES +=  \
    nc \
    libpcap tcpdump

PRODUCT_PACKAGES += \
    BridgeReceiver \
    BtProvision \
    BuzztimeProvisioning

PRODUCT_PACKAGE_OVERLAYS += \
    device/buzztime/bzt232hub01/overlay

74 75 76 77 78 79 80
# buzztime specific init.rc settings
#  triggers drmservice when debug.charger.boot changes
#  triggers 'rm updata.img' directly for easier cleanup
PRODUCT_COPY_FILES += \
    device/buzztime/bzt232hub01/init.$(TARGET_BOARD_HARDWARE).buzztime.rc:root/init.$(TARGET_BOARD_HARDWARE).buzztime.rc \
    device/buzztime/bzt232hub01/mosquitto.conf:system/etc/mosquitto.conf

81 82 83
$(call inherit-product, device/rockchip/common/device.mk)

$(call inherit-product-if-exists, vendor/buzztime/bzt232hub01/device-vendor.mk)