Skip to content

Commit

Permalink
eva: switch to common
Browse files Browse the repository at this point in the history
  • Loading branch information
OldDroid committed Apr 3, 2017
1 parent 30c97da commit 0e7d547
Show file tree
Hide file tree
Showing 213 changed files with 11 additions and 4,602 deletions.
2 changes: 1 addition & 1 deletion Android.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2017 OldDroid
# Copyright (C) 2017 OpenKirin, OldDroid
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2017 OldDroid
# Copyright (C) 2017 OpenKirin, OldDroid
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -15,4 +15,4 @@
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/omni_eva.mk
$(LOCAL_DIR)/omni_eva.mk
48 changes: 4 additions & 44 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2017 OldDroid
# Copyright (C) 2017 OpenKirin, OldDroid
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,56 +14,16 @@
# limitations under the License.
#

LOCAL_PATH := device/huawei/eva
DEVICE_PATH := device/huawei/eva

# Platform
TARGET_BOARD_PLATFORM := hi3650

# Bootloader
TARGET_NO_BOOTLOADER := true
TARGET_BOOTLOADER_BOARD_NAME := hi3650

# Architecture
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-a
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_ABI2 :=
TARGET_CPU_VARIANT := generic

TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := cortex-a7

TARGET_CPU_SMP := true
ARCH_ARM_HAVE_TLS_REGISTER := true
include device/hisi/3650-common/BoardConfigCommon.mk

# Kernel
BOARD_KERNEL_BASE := 0x00478000
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_CMDLINE := loglevel=4 page_tracker=on androidboot.selinux=permissive
BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x07b88000 --tags_offset 0x07588000
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
TARGET_PREBUILT_KERNEL := $(DEVICE_PATH)/kernel

# Partitions
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 33554432
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2080374784
BOARD_USERDATAIMAGE_PARTITION_SIZE := 26935820288
BOARD_FLASH_BLOCK_SIZE := 131072
BOARD_VOLD_EMMC_SHARES_DEV_MAJOR := true

# TWRP
RECOVERY_VARIANT := twrp
TW_THEME := portrait_hdpi

BOARD_SUPPRESS_SECURE_ERASE := true
RECOVERY_SDCARD_ON_DATA := true
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888
TW_BRIGHTNESS_PATH := /sys/class/leds/lcd_backlight0/brightness
TW_CUSTOM_BATTERY_PATH := /sys/class/power_supply/Battery
TW_EXCLUDE_SUPERSU := true
29 changes: 3 additions & 26 deletions omni_eva.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2017 OldDroid
# Copyright (C) 2017 OpenKirin, OldDroid
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,33 +14,10 @@
# limitations under the License.
#

## Specify phone tech before including full_phone
$(call inherit-product, vendor/omni/config/gsm.mk)

# Inherit from the common Open Source product configuration
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)

# Inherit some common Omni stuff.
$(call inherit-product, vendor/omni/config/common.mk)

PRODUCT_PACKAGES += \
charger_res_images \
charger

ADDITIONAL_DEFAULT_PROPERTIES += \
ro.secure=0 \
ro.adb.secure=0 \
security.perf_harden=0 \
ro.allow.mock.location=1

PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
sys.usb.configfs=1 \
sys.usb.config=mtp,adb \
persist.sys.usb.config=manufacture,adb \
sys.usb.controller=ff100000.dwc3
# Include hi3650 common
$(call inherit-product, device/hisi/3650-common/device-common.mk)

PRODUCT_NAME := omni_eva
PRODUCT_DEVICE := eva
PRODUCT_BRAND := Huawei
PRODUCT_MODEL := HUAWEI-P9
PRODUCT_MANUFACTURER := HUAWEI
14 changes: 0 additions & 14 deletions recovery.fstab

This file was deleted.

22 changes: 0 additions & 22 deletions recovery/root/fstab.hi3650

This file was deleted.

127 changes: 0 additions & 127 deletions recovery/root/init.rc

This file was deleted.

38 changes: 0 additions & 38 deletions recovery/root/init.recovery.hi3650.rc

This file was deleted.

Loading

0 comments on commit 0e7d547

Please sign in to comment.