Skip to content

Commit

Permalink
In with the new!
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhongqian TiaoGong committed Jan 19, 2018
1 parent 6755fd6 commit 6d63af9
Show file tree
Hide file tree
Showing 293 changed files with 29,039 additions and 95 deletions.
22 changes: 22 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) 2016 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.

ifneq ($(filter codename,$(TARGET_DEVICE)),)

LOCAL_PATH := $(call my-dir)

include $(call all-makefiles-under,$(LOCAL_PATH))

endif

20 changes: 18 additions & 2 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/device_d790q.mk
#
# Copyright 2016 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_MAKEFILES := $(LOCAL_DIR)/omni_d790q.mk

104 changes: 23 additions & 81 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -1,108 +1,50 @@
LOCAL_PATH := device/blu/d790q

USE_CAMERA_STUB := true

# inherit from the proprietary version
-include vendor/blu/d790q/BoardConfigVendor.mk

TARGET_NO_BOOTLOADER := true
TARGET_BOOTLOADER_BOARD_NAME := d790q
TARGET_OTA_ASSERT_DEVICE := d790q_Base,d790qG,d790qA,d790qD,d790q
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := mt6580
TARGET_NO_BOOTLOADER :=

# Platform
TARGET_BOARD_PLATFORM := mt6580
TARGET_BOARD_PLATFORM :=
TARGET_BOARD_PLATFORM_GPU :=

# Architecture
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_CPU_SMP := true
TARGET_CPU_VARIANT := cortex-a7
ARCH_ARM_HAVE_NEON := true
ARCH_ARM_HAVE_VFP := true
ARCH_ARM_HAVE_TLS_REGISTER := true

# ARGUMENTS
BOARD_KERNEL_CMDLINE += \
bootopt=64S3,32S1,32S1 \
androidboot.selinux=permissive
BUILD_NUMBER := $(shell date +%s)
# Kernel
BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_OFFSET := 0x00008000
BOARD_RAMDISK_OFFSET := 0x04000000
BOARD_TAGS_OFFSET := 0x0e000000
BOARD_KERNEL_BASE := 0x80000000
BOARD_TAGS_OFFSET := 0xE000000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_CMDLINE := bootopt=64S3,32S1,32S1
BOARD_MKBOOTIMG_ARGS := --kernel_offset $(BOARD_KERNEL_OFFSET) --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_TAGS_OFFSET)
TARGET_KERNEL_SOURCE := kernel/blu/d790q
TARGET_KERNEL_CONFIG := d5028m_blu_gmo_defconfig
TARGET_BOARD_KERNEL_HEADERS := $(LOCAL_PATH)/kernel-headers
#TARGET_KERNEL_CUSTOM_TOOLCHAIN := blu-armeabi

# PARTITIONS
# Partition info
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 16777216
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 16777216
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 838860800
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1240465408
BOARD_FLASH_BLOCK_SIZE := 131072
BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := false
BOARD_HAS_LARGE_FILESYSTEM := true


# USB OTG and External Sdcard
TARGET_USES_EXFAT := true
TARGET_USES_NTFS := true

# GRAPHICS
USE_OPENGL_RENDERER := true
BOARD_EGL_CFG := $(LOCAL_PATH)/egl.cfg

# RECOVERY
BOARD_HAS_NO_SELECT_BUTTON := true

RECOVERY_VARIANT := carliv

ifneq ($(RECOVERY_VARIANT),twrp)
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/etc/recovery.fstab
endif

# CARLIV
ifeq ($(RECOVERY_VARIANT),carliv)
TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
DEVICE_SCREEN_WIDTH := 480
DEVICE_SCREEN_HEIGHT := 854
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/musb-hdrc.0.auto/gadget/lun%d/file
TARGET_RECOVERY_LCD_BACKLIGHT_PATH := /sys/class/leds/lcd-backlight/brightness
VIBRATOR_TIMEOUT_FILE := /sys/devices/virtual/timed_output/vibrator/enable
DEVICE_RESOLUTION := 480x854
BOARD_HAS_MTK_CPU := true
BOARD_INCLUDE_CRYPTO := false
BOARD_USE_ADOPTED_STORAGE := true
BOARD_USE_CUSTOM_RECOVERY_FONT := \"font_10x18.h\"
endif

# TWRP
ifeq ($(RECOVERY_VARIANT),twrp)
TW_THEME := portrait_mdpi
DEVICE_RESOLUTION := 480x800
TARGET_SCREEN_HEIGHT := 800
TARGET_SCREEN_WIDTH := 480
TW_THEME := portrait_mdpi
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/etc/twrp.fstab
TW_CUSTOM_CPU_TEMP_PATH := /sys/devices/virtual/thermal/thermal_zone1/temp
TW_BRIGHTNESS_PATH := /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness
TARGET_SCREEN_HEIGHT := 800
TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/recovery/root/etc/twrp.fstab
BOARD_HAS_NO_SELECT_BUTTON := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/musb-hdrc.0.auto/gadget/lun%d/file
TW_BRIGHTNESS_PATH := /sys/devices/platform/leds-mt65xx/leds/lcd-backlight/brightness
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TW_MAX_BRIGHTNESS := 255
TW_USE_MODEL_HARDWARE_ID_FOR_DEVICE_ID := true
TW_EXCLUDE_SUPERSU := true
TW_INCLUDE_FB2PNG := true
RECOVERY_SDCARD_ON_DATA := true
TW_INTERNAL_STORAGE_PATH := "/emmc"
TW_INTERNAL_STORAGE_MOUNT_POINT := "emmc"
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"
TW_INCLUDE_CRYPTO := true
TW_CRYPTO_FS_TYPE := "ext4"
TW_CRYPTO_REAL_BLKDEV := "/dev/block/platform/mtk-msdc.0/11120000.msdc0/by-name/userdata"
TW_CRYPTO_MNT_POINT := "/data"
TW_CRYPTO_FS_OPTIONS := "nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered"
TW_EXCLUDE_SUPERSU := true
TW_USE_TOOLBOX := false
endif

10 changes: 10 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifeq ($(TARGET_PREBUILT_KERNEL),)
# LOCAL_KERNEL := device/vendor/codename/kernel
#else
# LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
#endif
#
#PRODUCT_COPY_FILES += \
# $(LOCAL_KERNEL):kernel
#
#$(call inherit-product-if-exists, build/target/product/full.mk)
Loading

0 comments on commit 6d63af9

Please sign in to comment.