author | Xindong Xu <xindong.xu@amlogic.com> | 2017-12-13 08:54:36 (GMT) |
---|---|---|
committer | Xindong Xu <xindong.xu@amlogic.com> | 2017-12-13 08:54:36 (GMT) |
commit | 0e78e3d13bec678a81dd11c184827481790a0cfd (patch) | |
tree | 4fc939713c5ceffdd21abc395af07e4c1e6f1b20 | |
parent | de96e6e867c664c5c38bc6d1d1ddaa8a7a364fe9 (diff) | |
download | darwin-0e78e3d13bec678a81dd11c184827481790a0cfd.zip darwin-0e78e3d13bec678a81dd11c184827481790a0cfd.tar.gz darwin-0e78e3d13bec678a81dd11c184827481790a0cfd.tar.bz2 |
use prebuilt kernel
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | AndroidProducts.mk | 2 | ||||
-rw-r--r-- | BoardConfig.mk | 8 | ||||
-rw-r--r-- | Kernel.mk | 34 | ||||
-rw-r--r-- | darwin.mk | 378 | ||||
-rw-r--r-- | device.mk | 78 | ||||
-rwxr-xr-x[-rw-r--r--] | make_boot.sh | 14 | ||||
-rwxr-xr-x[-rw-r--r--] | mkern.sh | 8 | ||||
-rwxr-xr-x[-rw-r--r--] | vendorsetup.sh | 6 |
9 files changed, 461 insertions, 69 deletions
@@ -20,7 +20,7 @@ # to only building on ARM if they include assembly. Individual makefiles # are responsible for having their own logic, for fine-grained control. -ifeq ($(TARGET_PRODUCT),txlx_t962e_r321) +ifeq ($(TARGET_PRODUCT),darwin) LOCAL_PATH := $(call my-dir) # if some modules are built directly from this directory (not subdirectories), # their rules should be written here. diff --git a/AndroidProducts.mk b/AndroidProducts.mk index 11f6310..244c06d 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -14,4 +14,4 @@ # limitations under the License. # -PRODUCT_MAKEFILES := $(LOCAL_DIR)/txlx_t962e_r321.mk +PRODUCT_MAKEFILES := $(LOCAL_DIR)/darwin.mk diff --git a/BoardConfig.mk b/BoardConfig.mk index ededf7e..d72b3d0 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -45,7 +45,7 @@ TARGET_NO_KERNEL := false TARGET_NO_RADIOIMAGE := true TARGET_BOARD_PLATFORM := txlx -TARGET_BOOTLOADER_BOARD_NAME := txlx_t962e_r321 +TARGET_BOOTLOADER_BOARD_NAME := darwin # Graphics & Display USE_OPENGL_RENDERER := true @@ -84,8 +84,8 @@ endif TARGET_SUPPORT_USB_BURNING_V2 := true -TARGET_AMLOGIC_RES_PACKAGE := device/amlogic/txlx_t962e_r321/logo_img_files -TARGET_RECOVERY_FSTAB := device/amlogic/txlx_t962e_r321/recovery/recovery.fstab +TARGET_AMLOGIC_RES_PACKAGE := device/amlogic/darwin/logo_img_files +TARGET_RECOVERY_FSTAB := device/amlogic/darwin/recovery/recovery.fstab #BOARD_HAL_STATIC_LIBRARIES := libhealthd.mboxdefault @@ -122,5 +122,5 @@ WITH_DEXPREOPT := true PRODUCT_FULL_TREBLE_OVERRIDE := true BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true -DEVICE_MANIFEST_FILE := device/amlogic/txlx_t962x_r311/manifest.xml +DEVICE_MANIFEST_FILE := device/amlogic/darwin/manifest.xml #DEVICE_MATRIX_FILE := device/amlogic/common/compatibility_matrix.xml @@ -3,25 +3,44 @@ -include device/amlogic/common/media_modules.mk -include device/amlogic/common/wifi_modules.mk -USE_PREBUILT_KERNEL := false +KERNEL_ROOTDIR := common +KERNEL_KO_OUT := $(PRODUCT_OUT)/obj/lib_vendor + +TARGET_KERNEL_BUILT_FROM_SOURCE := true + WIFI_MODULE := multiwifi INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel -ifeq ($(USE_PREBUILT_KERNEL),true) -TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel +ifneq ($(TARGET_KERNEL_BUILT_FROM_SOURCE), true) +TARGET_PREBUILT_KERNEL := device/amlogic/darwin-kernel/Image.gz +INSTALLED_BOARDDTB_TARGET := $(PRODUCT_OUT)/dtb.img +LOCAL_DTB := device/amlogic/darwin-kernel/darwin.dtb + +$(TARGET_PREBUILT_KERNEL): $(INSTALLED_BOARDDTB_TARGET) + @echo "cp kernel modules" + mkdir -p $(PRODUCT_OUT)/root/boot + mkdir -p $(PRODUCT_OUT)/vendor/lib + mkdir -p $(KERNEL_KO_OUT) + cp device/amlogic/darwin-kernel/lib/mali.ko $(PRODUCT_OUT)/vendor/lib/ + cp device/amlogic/darwin-kernel/lib/modules/* $(KERNEL_KO_OUT)/ + mkdir -p $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR)/lib/modules/ + cp $(KERNEL_KO_OUT)/* $(PRODUCT_OUT)/$(TARGET_COPY_OUT_VENDOR)/lib/modules/ $(INSTALLED_KERNEL_TARGET): $(TARGET_PREBUILT_KERNEL) | $(ACP) @echo "Kernel installed" $(transform-prebuilt-to-target) - @echo "cp kernel modules" + +$(INSTALLED_BOARDDTB_TARGET): $(LOCAL_DTB) | $(ACP) + @echo "dtb installed" + $(transform-prebuilt-to-target) else KERNEL_DEVICETREE := txlx_t962e_r321 KERNEL_DEFCONFIG := meson64_defconfig KERNEL_ARCH := arm64 -KERNEL_ROOTDIR := common + KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ @@ -41,8 +60,6 @@ WIFI_OUT := $(TARGET_OUT_INTERMEDIATES)/hardware/wifi PREFIX_CROSS_COMPILE=/opt/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -KERNEL_KO_OUT := $(PRODUCT_OUT)/obj/lib_vendor - define cp-modules mkdir -p $(PRODUCT_OUT)/root/boot mkdir -p $(KERNEL_KO_OUT) @@ -62,9 +79,6 @@ $(KERNEL_CONFIG): $(KERNEL_OUT) BOARD_MKBOOTIMG_ARGS := --second $(PRODUCT_OUT)/dtb.img --kernel_offset $(BOARD_KERNEL_OFFSET) -ifneq ($(USE_USB_AS_HOST),true) -BOARD_MKBOOTIMG_ARGS += --cmdline "otg_device=1 printk.devkmsg=on" -endif $(INTERMEDIATES_KERNEL): $(KERNEL_OUT) $(KERNEL_CONFIG) $(INSTALLED_BOARDDTB_TARGET) @echo "make Image" diff --git a/darwin.mk b/darwin.mk new file mode 100644 index 0000000..04aa199 --- a/dev/null +++ b/darwin.mk @@ -0,0 +1,378 @@ +# Copyright (C) 2011 Amlogic Inc +# +# 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 file is the build configuration for a full Android +# build for Meson reference board. +# + +ANDROID_BUILD_TYPE := 64 +# Dynamic enable start/stop zygote_secondary in 64bits +# and 32bit system, default closed +#TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE := true + +# Inherit from those products. Most specific first. +ifneq ($(ANDROID_BUILD_TYPE), 32) +ifeq ($(TARGET_DYNAMIC_ZYGOTE_SECONDARY_ENABLE), true) +$(call inherit-product, device/amlogic/common/dynamic_zygote_seondary/dynamic_zygote_64_bit.mk) +else +$(call inherit-product, build/target/product/core_64_bit.mk) +endif +endif + +$(call inherit-product, device/amlogic/common/products/tv/product_tv.mk) +$(call inherit-product, device/amlogic/darwin/device.mk) +$(call inherit-product-if-exists, vendor/google/products/gms.mk) + +# darwin: + + +PRODUCT_PROPERTY_OVERRIDES += \ + sys.fb.bits=32 \ + ro.hdmi.device_type=0 + +PRODUCT_NAME := darwin +PRODUCT_DEVICE := darwin +PRODUCT_BRAND := Android +PRODUCT_MODEL := AOSP on darwin +PRODUCT_MANUFACTURER := amlogic + +PRODUCT_TYPE := tv + +#BOARD_OLD_PARTITION := true + +WITH_LIBPLAYER_MODULE := false + +OTA_UP_PART_NUM_CHANGED := true + +#AB_OTA_UPDATER :=true + +ifeq ($(AB_OTA_UPDATER),true) +AB_OTA_PARTITIONS := \ + boot \ + system + +ifneq ($(BOARD_OLD_PARTITION),true) +AB_OTA_PARTITIONS += \ + vendor \ + odm +endif + +TARGET_BOOTLOADER_CONTROL_BLOCK := true +TARGET_NO_RECOVERY := true +TARGET_PARTITION_DTSI := partition_mbox_ab.dtsi +else +TARGET_NO_RECOVERY := false + +ifneq ($(BOARD_OLD_PARTITION),true) +TARGET_PARTITION_DTSI := partition_mbox_normal.dtsi +else +TARGET_PARTITION_DTSI := partition_tv_old.dtsi +endif + +BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 +BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 +endif + +#########Support compiling out encrypted zip/aml_upgrade_package.img directly +#PRODUCT_BUILD_SECURE_BOOT_IMAGE_DIRECTLY := true +PRODUCT_AML_SECUREBOOT_USERKEY := ./uboot/board/amlogic/txlx_t962e_r321_v1/aml-user-key.sig +PRODUCT_AML_SECUREBOOT_SIGNTOOL := ./uboot/fip/txlx/aml_encrypt_txlx +PRODUCT_AML_SECUREBOOT_SIGNBOOTLOADER := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --bootsig \ + --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) \ + --aeskey enable +PRODUCT_AML_SECUREBOOT_SIGNIMAGE := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --imgsig \ + --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) +PRODUCT_AML_SECUREBOOT_SIGBIN := $(PRODUCT_AML_SECUREBOOT_SIGNTOOL) --binsig \ + --amluserkey $(PRODUCT_AML_SECUREBOOT_USERKEY) + +######################################################################## +# +# Live TV +# +######################################################################## +TARGET_BUILD_LIVETV := true + +######################################################################## +# +# ATV +# +######################################################################## +ifeq ($(BOARD_COMPILE_ATV),true) +BOARD_COMPILE_CTS := true +TARGET_BUILD_GOOGLE_ATV:= true +DONT_DEXPREOPT_PREBUILTS:= true +endif +######################################################################## + +######################################################################## +# +# CTS +# +######################################################################## +ifeq ($(BOARD_COMPILE_CTS),true) +BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 1 +BOARD_PLAYREADY_LEVEL := 1 +TARGET_BUILD_CTS:= true +TARGET_BUILD_NETFLIX:= true +endif +######################################################################## + +######################################################################### +# +# Dm-Verity +# +######################################################################### +#BUILD_WITH_DM_VERITY := true +#TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL := true +ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) +BUILD_WITH_DM_VERITY := true +endif # ifeq ($(TARGET_USE_SECURITY_DM_VERITY_MODE_WITH_TOOL), true) +ifeq ($(BUILD_WITH_DM_VERITY), true) +PRODUCT_PACKAGES += \ + libfs_mgr \ + fs_mgr \ + slideshow +endif +ifneq ($(BOARD_OLD_PARTITION),true) +ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true) +ifeq ($(AB_OTA_UPDATER),true) +ifeq ($(BUILD_WITH_DM_VERITY), true) +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.AB.verity.amlogic:root/fstab.amlogic +else +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.AB.amlogic:root/fstab.amlogic +endif +else +ifeq ($(BUILD_WITH_DM_VERITY), true) +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.verity.amlogic:root/fstab.amlogic +else +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.amlogic:root/fstab.amlogic +endif +endif +else +ifeq ($(AB_OTA_UPDATER),true) +ifeq ($(BUILD_WITH_DM_VERITY), true) +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.AB.verity.amlogic:recovery/root/fstab.amlogic +else +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.AB.amlogic:recovery/root/fstab.amlogic +endif +else +ifeq ($(BUILD_WITH_DM_VERITY), true) +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.verity.amlogic:recovery/root/fstab.amlogic +else +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.amlogic:recovery/root/fstab.amlogic +endif +endif +endif +endif +ifeq ($(BOARD_OLD_PARTITION),true) +PRODUCT_COPY_FILES += \ + device/amlogic/darwin/fstab.3.14.amlogic:root/fstab.amlogic +endif + +######################################################################### +# +# WiFi +# +######################################################################### + +#WIFI_MODULE := rtl8188eu +MULTI_WIFI_SUPPORT =false +include device/amlogic/common/wifi.mk + +# Change this to match target country +# 11 North America; 14 Japan; 13 rest of world +PRODUCT_DEFAULT_WIFI_CHANNELS := 11 +#PRODUCT_COPY_FILES += \ +# $(LOCAL_PATH)/wifi/config.txt:system/etc/wifi/4354/config.txt + +######################################################################### +# +# Bluetooth +# +######################################################################### + +BOARD_HAVE_BLUETOOTH := false +BCM_BLUETOOTH_LPM_ENABLE := false +BLUETOOTH_MODULE := bcm4356 +include device/amlogic/common/bluetooth.mk + + +######################################################################### +# +# ConsumerIr +# +######################################################################### + +#PRODUCT_PACKAGES += \ +# consumerir.amlogic \ +# SmartRemote +#PRODUCT_COPY_FILES += \ +# frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml + + +#PRODUCT_PACKAGES += libbt-vendor + +ifeq ($(SUPPORT_HDMIIN),true) +PRODUCT_PACKAGES += \ + libhdmiin \ + HdmiIn +endif + +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml + +# Audio +# +BOARD_ALSA_AUDIO=tiny +include device/amlogic/common/audio.mk + +######################################################################### +# +# Camera +# +######################################################################### + +ifneq ($(TARGET_BUILD_CTS), true) +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ + frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml +endif + + + +######################################################################### +# +# PlayReady DRM +# +######################################################################### +#export BOARD_PLAYREADY_LEVEL=3 for PlayReady+NOTVP +#export BOARD_PLAYREADY_LEVEL=1 for PlayReady+OPTEE+TVP +######################################################################### +# +# Verimatrix DRM +########################################################################## +#verimatrix web +BUILD_WITH_VIEWRIGHT_WEB := false +#verimatrix stb +BUILD_WITH_VIEWRIGHT_STB := false +######################################################################### + + +#DRM Widevine +ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),) +BOARD_WIDEVINE_OEMCRYPTO_LEVEL := 3 +endif + +ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL), 1) +TARGET_USE_OPTEEOS := true +TARGET_ENABLE_TA_SIGN := true +TARGET_USE_HW_KEYMASTER := true +endif + +$(call inherit-product, device/amlogic/common/media.mk) + +######################################################################### +# +# Languages +# +######################################################################### + +# For all locales, $(call inherit-product, build/target/product/languages_full.mk) +PRODUCT_LOCALES := en_US en_AU en_IN fr_FR it_IT es_ES et_EE de_DE nl_NL cs_CZ pl_PL ja_JP \ + zh_TW zh_CN zh_HK ru_RU ko_KR nb_NO es_US da_DK el_GR tr_TR pt_PT pt_BR rm_CH sv_SE bg_BG \ + ca_ES en_GB fi_FI hi_IN hr_HR hu_HU in_ID iw_IL lt_LT lv_LV ro_RO sk_SK sl_SI sr_RS uk_UA \ + vi_VN tl_PH ar_EG fa_IR th_TH sw_TZ ms_MY af_ZA zu_ZA am_ET hi_IN en_XA ar_XB fr_CA km_KH \ + lo_LA ne_NP si_LK mn_MN hy_AM az_AZ ka_GE my_MM mr_IN ml_IN is_IS mk_MK ky_KG eu_ES gl_ES \ + bn_BD ta_IN kn_IN te_IN uz_UZ ur_PK kk_KZ + +################################################################################# +# +# PPPOE +# +################################################################################# +ifneq ($(TARGET_BUILD_GOOGLE_ATV), true) +BUILD_WITH_PPPOE := true +endif + +ifeq ($(BUILD_WITH_PPPOE),true) +PRODUCT_PACKAGES += \ + PPPoE \ + libpppoejni \ + libpppoe \ + pppoe_wrapper \ + pppoe \ + droidlogic.frameworks.pppoe \ + droidlogic.external.pppoe \ + droidlogic.software.pppoe.xml +PRODUCT_PROPERTY_OVERRIDES += \ + ro.platform.has.pppoe=true +endif + +################################################################################# +# +# DEFAULT LOWMEMORYKILLER CONFIG +# +################################################################################# +BUILD_WITH_LOWMEM_COMMON_CONFIG := true + +BOARD_USES_USB_PM := true + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/Third_party_apk_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/Third_party_apk_camera.xml \ + +include device/amlogic/common/software.mk +ifeq ($(TARGET_BUILD_GOOGLE_ATV),true) +PRODUCT_PROPERTY_OVERRIDES += \ + ro.sf.lcd_density=320 +else +PRODUCT_PROPERTY_OVERRIDES += \ + ro.sf.lcd_density=240 +endif + + +######################################################################### +# +# A/B update +# +######################################################################### +ifeq ($(AB_OTA_UPDATER),true) +PRODUCT_PACKAGES += \ + bootctrl.amlogic \ + bootctl + +PRODUCT_PACKAGES += \ + update_engine \ + update_engine_client \ + update_verifier \ + delta_generator \ + brillo_update_payload \ + android.hardware.boot@1.0-impl \ + android.hardware.boot@1.0-service +endif +######################################################################### +# +# OpenGLES Version +# +######################################################################### +PRODUCT_PROPERTY_OVERRIDES += \ + ro.opengles.version=131072 @@ -18,68 +18,68 @@ ifneq ($(BOARD_USES_RECOVERY_AS_BOOT), true) PRODUCT_COPY_FILES += device/amlogic/common/products/tv/init.amlogic.rc:root/init.amlogic.rc PRODUCT_COPY_FILES += \ - device/amlogic/txlx_t962e_r321/init.amlogic.usb.rc:root/init.amlogic.usb.rc \ + device/amlogic/darwin/init.amlogic.usb.rc:root/init.amlogic.usb.rc \ device/amlogic/common/products/tv/ueventd.amlogic.rc:root/ueventd.amlogic.rc \ - device/amlogic/txlx_t962e_r321/init.amlogic.board.rc:root/init.amlogic.board.rc + device/amlogic/darwin/init.amlogic.board.rc:root/init.amlogic.board.rc else PRODUCT_COPY_FILES += device/amlogic/common/products/tv/init.amlogic.rc:recovery/root/init.amlogic.rc PRODUCT_COPY_FILES += \ - device/amlogic/txlx_t962e_r321/init.amlogic.usb.$(BOARD_KERNEL_VERSION).rc:recovery/root/init.amlogic.usb.rc \ + device/amlogic/darwin/init.amlogic.usb.$(BOARD_KERNEL_VERSION).rc:recovery/root/init.amlogic.usb.rc \ device/amlogic/common/products/tv/ueventd.amlogic.rc:recovery/root/ueventd.amlogic.rc \ - device/amlogic/txlx_t962e_r321/init.amlogic.board.rc:recovery/root/init.amlogic.board.rc + device/amlogic/darwin/init.amlogic.board.rc:recovery/root/init.amlogic.board.rc endif PRODUCT_COPY_FILES += \ - device/amlogic/txlx_t962e_r321/files/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ - device/amlogic/txlx_t962e_r321/files/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ - device/amlogic/txlx_t962e_r321/files/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ - device/amlogic/txlx_t962e_r321/files/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ - device/amlogic/txlx_t962e_r321/files/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ - device/amlogic/txlx_t962e_r321/files/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ - device/amlogic/txlx_t962e_r321/files/mesondisplay.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/mesondisplay.cfg \ - device/amlogic/txlx_t962e_r321/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml + device/amlogic/darwin/files/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ + device/amlogic/darwin/files/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ + device/amlogic/darwin/files/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf \ + device/amlogic/darwin/files/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ + device/amlogic/darwin/files/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ + device/amlogic/darwin/files/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \ + device/amlogic/darwin/files/mesondisplay.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/mesondisplay.cfg \ + device/amlogic/darwin/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml # remote IME config file PRODUCT_COPY_FILES += \ - device/amlogic/txlx_t962e_r321/files/remote.conf:$(TARGET_COPY_OUT_VENDOR)/etc/remote.conf \ - device/amlogic/txlx_t962e_r321/files/remote.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/remote.cfg \ - device/amlogic/txlx_t962e_r321/files/remote.tab:$(TARGET_COPY_OUT_VENDOR)/etc/remote.tab \ - device/amlogic/txlx_t962e_r321/files/Vendor_0001_Product_0001.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_0001_Product_0001.kl \ - device/amlogic/txlx_t962e_r321/files/Generic.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl + device/amlogic/darwin/files/remote.conf:$(TARGET_COPY_OUT_VENDOR)/etc/remote.conf \ + device/amlogic/darwin/files/remote.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/remote.cfg \ + device/amlogic/darwin/files/remote.tab:$(TARGET_COPY_OUT_VENDOR)/etc/remote.tab \ + device/amlogic/darwin/files/Vendor_0001_Product_0001.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_0001_Product_0001.kl \ + device/amlogic/darwin/files/Generic.kl:/$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Generic.kl # recovery PRODUCT_COPY_FILES += \ - device/amlogic/txlx_t962e_r321/recovery/init.recovery.amlogic.rc:root/init.recovery.amlogic.rc \ - device/amlogic/txlx_t962e_r321/recovery/recovery.kl:recovery/root/etc/recovery.kl \ - device/amlogic/txlx_t962e_r321/files/mesondisplay.cfg:recovery/root/etc/mesondisplay.cfg \ - device/amlogic/txlx_t962e_r321/recovery/busybox:recovery/root/sbin/busybox \ - device/amlogic/txlx_t962e_r321/recovery/remotecfg:recovery/root/sbin/remotecfg \ - device/amlogic/txlx_t962e_r321/files/remote.cfg:recovery/root/etc/remote.cfg \ - device/amlogic/txlx_t962e_r321/files/remote.tab:recovery/root/etc/remote.tab \ - device/amlogic/txlx_t962e_r321/recovery/sh:recovery/root/sbin/sh + device/amlogic/darwin/recovery/init.recovery.amlogic.rc:root/init.recovery.amlogic.rc \ + device/amlogic/darwin/recovery/recovery.kl:recovery/root/etc/recovery.kl \ + device/amlogic/darwin/files/mesondisplay.cfg:recovery/root/etc/mesondisplay.cfg \ + device/amlogic/darwin/recovery/busybox:recovery/root/sbin/busybox \ + device/amlogic/darwin/recovery/remotecfg:recovery/root/sbin/remotecfg \ + device/amlogic/darwin/files/remote.cfg:recovery/root/etc/remote.cfg \ + device/amlogic/darwin/files/remote.tab:recovery/root/etc/remote.tab \ + device/amlogic/darwin/recovery/sh:recovery/root/sbin/sh -# txlx_t962e_r321 config file +# darwin config file PRODUCT_COPY_FILES += \ - device/amlogic/txlx_t962e_r321/files/tv/tvconfig.conf:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig.conf \ - device/amlogic/txlx_t962e_r321/files/tv/tv_default.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tv_default.cfg \ - device/amlogic/txlx_t962e_r321/files/tv/tv_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tv_default.xml \ - device/amlogic/txlx_t962e_r321/files/tv/tv_setting_config.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tv_setting_config.cfg \ - device/amlogic/txlx_t962e_r321/files/tv/pq.db:$(TARGET_COPY_OUT_VENDOR)/etc/pq.db \ - device/amlogic/txlx_t962e_r321/files/tv/dec:$(TARGET_COPY_OUT_VENDOR)/bin/dec \ - device/amlogic/txlx_t962e_r321/files/tv/port_14.bin:$(TARGET_COPY_OUT_VENDOR)/etc/port_14.bin \ - device/amlogic/txlx_t962e_r321/files/tv/port_20.bin:$(TARGET_COPY_OUT_VENDOR)/etc/port_20.bin \ - device/amlogic/txlx_t962e_r321/files/tv/tv_rrt_define.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tv_rrt_define.xml -#txlx_t962e_r321 tuner + device/amlogic/darwin/files/tv/tvconfig.conf:$(TARGET_COPY_OUT_VENDOR)/etc/tvconfig.conf \ + device/amlogic/darwin/files/tv/tv_default.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tv_default.cfg \ + device/amlogic/darwin/files/tv/tv_default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tv_default.xml \ + device/amlogic/darwin/files/tv/tv_setting_config.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/tv_setting_config.cfg \ + device/amlogic/darwin/files/tv/pq.db:$(TARGET_COPY_OUT_VENDOR)/etc/pq.db \ + device/amlogic/darwin/files/tv/dec:$(TARGET_COPY_OUT_VENDOR)/bin/dec \ + device/amlogic/darwin/files/tv/port_14.bin:$(TARGET_COPY_OUT_VENDOR)/etc/port_14.bin \ + device/amlogic/darwin/files/tv/port_20.bin:$(TARGET_COPY_OUT_VENDOR)/etc/port_20.bin \ + device/amlogic/darwin/files/tv/tv_rrt_define.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tv_rrt_define.xml +#darwin tuner PRODUCT_COPY_FILES += \ - device/amlogic/txlx_t962e_r321/files/tv/si2151_fe.ko:root/boot/si2151_fe.ko + device/amlogic/darwin/files/tv/si2151_fe.ko:root/boot/si2151_fe.ko PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi PRODUCT_AAPT_PREF_CONFIG := hdpi -PRODUCT_CHARACTERISTICS := txlx_t962e_r321,nosdcard +PRODUCT_CHARACTERISTICS := darwin,nosdcard DEVICE_PACKAGE_OVERLAYS := \ - device/amlogic/txlx_t962e_r321/overlay + device/amlogic/darwin/overlay PRODUCT_TAGS += dalvik.gc.type-precise diff --git a/make_boot.sh b/make_boot.sh index c5076f1..c897035 100644..100755 --- a/make_boot.sh +++ b/make_boot.sh @@ -11,7 +11,7 @@ if [ "$ROOTFS" == "" -o ! -f "$ROOTFS" ]; then exit 1 fi -KERNEL_OUT=out/target/product/txlx_t962e_r321/obj/KERNEL_OBJ +KERNEL_OUT=out/target/product/darwin/obj/KERNEL_OBJ mkdir -p $KERNEL_OUT if [ ! -f $KERNEL_OUT/.config ]; then @@ -20,12 +20,12 @@ fi make -C common O=../$KERNEL_OUT ARCH=arm64 -j6 CROSS_COMPILE=$PREFIX_CROSS_COMPILE modules Image.gz -cp $KERNEL_OUT/arch/arm64/boot/Image.gz out/target/product/txlx_t962e_r321/kernel +cp $KERNEL_OUT/arch/arm64/boot/Image.gz out/target/product/darwin/kernel if [ "$2" != "m" ]; then make -C common O=../$KERNEL_OUT txlx_t962e_r321.dtb ARCH=arm64 CROSS_COMPILE=$PREFIX_CROSS_COMPILE - #cp -f $KERNEL_OUT/arch/arm64/boot/dts/amlogic/txlx_t962e_r321.dtb out/target/product/txlx_t962e_r321/dtb.img - $DTBTOOL -o out/target/product/txlx_t962e_r321/dtb.img -p $KERNEL_OUT/scripts/dtc/ $KERNEL_OUT/arch/arm64/boot/dts/amlogic/ + #cp -f $KERNEL_OUT/arch/arm64/boot/dts/amlogic/txlx_t962e_r321.dtb out/target/product/darwin/dtb.img + $DTBTOOL -o out/target/product/darwin/dtb.img -p $KERNEL_OUT/scripts/dtc/ $KERNEL_OUT/arch/arm64/boot/dts/amlogic/ fi if [ "$2" != "m" ]; then @@ -33,8 +33,8 @@ if [ "$2" != "m" ]; then --base 0x0 \ --kernel_offset 0x1080000 \ --ramdisk ${ROOTFS} \ - --second out/target/product/txlx_t962e_r321/dtb.img \ - --output ./out/target/product/txlx_t962e_r321/boot.img - ls -l ./out/target/product/txlx_t962e_r321/boot.img + --second out/target/product/darwin/dtb.img \ + --output ./out/target/product/darwin/boot.img + ls -l ./out/target/product/darwin/boot.img echo "boot.img done" fi @@ -3,7 +3,7 @@ # Run from top of kitkat source #ROOTFS=$1 -ROOTFS="out/target/product/txlx_t962e_r321/ramdisk.img" +ROOTFS="out/target/product/darwin/ramdisk.img" PREFIX_CROSS_COMPILE=aarch64-linux-gnu- if [ "$ROOTFS" == "" -o ! -f "$ROOTFS" ]; then @@ -11,7 +11,7 @@ if [ "$ROOTFS" == "" -o ! -f "$ROOTFS" ]; then exit 1 fi -KERNEL_OUT=out/target/product/txlx_t962e_r321/obj/KERNEL_OBJ +KERNEL_OUT=out/target/product/darwin/obj/KERNEL_OBJ #mkdir -p $KERNEL_OUT if [ ! -f $KERNEL_OUT/.config ]; then @@ -32,7 +32,7 @@ if [ "$2" != "m" ]; then --base 0x0 \ --kernel_offset 0x1080000 \ --ramdisk ${ROOTFS} \ - --output ./out/target/product/txlx_t962e_r321/boot.img - ls -l ./out/target/product/txlx_t962e_r321/boot.img + --output ./out/target/product/darwin/boot.img + ls -l ./out/target/product/darwin/boot.img echo "boot.img done" fi diff --git a/vendorsetup.sh b/vendorsetup.sh index c480dcd..ba0584d 100644..100755 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -1,3 +1,3 @@ -add_lunch_combo txlx_t962e_r321-eng -add_lunch_combo txlx_t962e_r321-user -add_lunch_combo txlx_t962e_r321-userdebug
\ No newline at end of file +add_lunch_combo darwin-eng +add_lunch_combo darwin-user +add_lunch_combo darwin-userdebug
\ No newline at end of file |