mkvendor.sh: Initial commit of peregrine

This commit is contained in:
David Rouleau 2014-06-15 18:20:18 -04:00
commit 9b697108e9
8 changed files with 123 additions and 0 deletions

8
AndroidBoard.mk Normal file
View File

@ -0,0 +1,8 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)
# include the non-open-source counterpart to this file
-include vendor/motorola/peregrine/AndroidBoardVendor.mk

2
AndroidProducts.mk Normal file
View File

@ -0,0 +1,2 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/device_peregrine.mk

30
BoardConfig.mk Normal file
View File

@ -0,0 +1,30 @@
USE_CAMERA_STUB := true
# inherit from the proprietary version
-include vendor/motorola/peregrine/BoardConfigVendor.mk
TARGET_ARCH := arm
TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := unknown
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_CPU_VARIANT := cortex-a7
ARCH_ARM_HAVE_TLS_REGISTER := true
TARGET_BOOTLOADER_BOARD_NAME := peregrine
BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_PAGESIZE := 2048
# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x105c0000
BOARD_FLASH_BLOCK_SIZE := 131072
TARGET_PREBUILT_KERNEL := device/motorola/peregrine/kernel
BOARD_HAS_NO_SELECT_BUTTON := true

18
cm.mk Normal file
View File

@ -0,0 +1,18 @@
## Specify phone tech before including full_phone
$(call inherit-product, vendor/cm/config/gsm.mk)
# Release name
PRODUCT_RELEASE_NAME := peregrine
# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)
# Inherit device configuration
$(call inherit-product, device/motorola/peregrine/device_peregrine.mk)
## Device identifier. This must come after all inclusions
PRODUCT_DEVICE := peregrine
PRODUCT_NAME := cm_peregrine
PRODUCT_BRAND := motorola
PRODUCT_MODEL := peregrine
PRODUCT_MANUFACTURER := motorola

24
device_peregrine.mk Normal file
View File

@ -0,0 +1,24 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/motorola/peregrine/peregrine-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/motorola/peregrine/overlay
LOCAL_PATH := device/motorola/peregrine
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := $(LOCAL_PATH)/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
$(call inherit-product, build/target/product/full.mk)
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_peregrine
PRODUCT_DEVICE := peregrine

BIN
kernel Normal file

Binary file not shown.

38
recovery.fstab Normal file
View File

@ -0,0 +1,38 @@
# Copyright (c) 2011, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# mount point fstype device [device2] [length=]
boot /boot emmc defaults defaults
cache /cache ext4 noatime,nosuid,nodev,barrier=1,data=ordered wait,check
misc /misc emmc defaults defaults
recovery /recovery emmc defaults defaults
userdata /data f2fs noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc wait,check
system /system ext4 ro,barrier=1 wait
modem /modem ext4 defaults defaults
customize /customize ext4 defaults defaults

3
system.prop Normal file
View File

@ -0,0 +1,3 @@
#
# system.prop for peregrine
#