commit 9b697108e9c8d43d5e525c1e8817451dc0beff4e Author: David Rouleau Date: Sun Jun 15 18:20:18 2014 -0400 mkvendor.sh: Initial commit of peregrine diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..7044e6f --- /dev/null +++ b/AndroidBoard.mk @@ -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 diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..1a06807 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/device_peregrine.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..e481580 --- /dev/null +++ b/BoardConfig.mk @@ -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 diff --git a/cm.mk b/cm.mk new file mode 100644 index 0000000..cc2cfe4 --- /dev/null +++ b/cm.mk @@ -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 diff --git a/device_peregrine.mk b/device_peregrine.mk new file mode 100644 index 0000000..17379e8 --- /dev/null +++ b/device_peregrine.mk @@ -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 diff --git a/kernel b/kernel new file mode 100644 index 0000000..c0b5269 Binary files /dev/null and b/kernel differ diff --git a/recovery.fstab b/recovery.fstab new file mode 100644 index 0000000..402de79 --- /dev/null +++ b/recovery.fstab @@ -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 + diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..450bc8b --- /dev/null +++ b/system.prop @@ -0,0 +1,3 @@ +# +# system.prop for peregrine +#