diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..4d9a698 --- /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/lge/ms695/AndroidBoardVendor.mk diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..d60d233 --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,2 @@ +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/device_ms695.mk diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..6d18c2a --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,26 @@ +USE_CAMERA_STUB := true + +# inherit from the proprietary version +-include vendor/lge/ms695/BoardConfigVendor.mk + +TARGET_NO_BOOTLOADER := true +TARGET_BOARD_PLATFORM := unknown +TARGET_CPU_ABI := armeabi +TARGET_BOOTLOADER_BOARD_NAME := ms695 + +BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200,n8 androidboot.hardware=m3 +BOARD_KERNEL_BASE := 0x00200000 +BOARD_KERNEL_PAGESIZE := 4096 + +# 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/lge/ms695/kernel + +#BOARD_HAS_NO_SELECT_BUTTON := true +# Use this flag if the board has a ext4 partition larger than 2gb +#BOARD_HAS_LARGE_FILESYSTEM := true \ No newline at end of file diff --git a/cm.mk b/cm.mk new file mode 100644 index 0000000..f8510d6 --- /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 := ms695 + +# Inherit some common CM stuff. +$(call inherit-product, vendor/cm/config/common_full_phone.mk) + +# Inherit device configuration +$(call inherit-product, device/lge/ms695/device_ms695.mk) + +## Device identifier. This must come after all inclusions +PRODUCT_DEVICE := ms695 +PRODUCT_NAME := cm_ms695 +PRODUCT_BRAND := lge +PRODUCT_MODEL := ms695 +PRODUCT_MANUFACTURER := lge diff --git a/device_ms695.mk b/device_ms695.mk new file mode 100644 index 0000000..6abab4c --- /dev/null +++ b/device_ms695.mk @@ -0,0 +1,27 @@ +$(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/lge/ms695/ms695-vendor.mk) + +DEVICE_PACKAGE_OVERLAYS += device/lge/ms695/overlay + +LOCAL_PATH := device/lge/ms695 +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_COPY_FILES += \ + $(LOCAL_PATH)/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh + +PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 +PRODUCT_NAME := full_ms695 +PRODUCT_DEVICE := ms695 diff --git a/kernel b/kernel new file mode 100644 index 0000000..22c0fd4 Binary files /dev/null and b/kernel differ diff --git a/recovery.fstab b/recovery.fstab new file mode 100644 index 0000000..740aa2b --- /dev/null +++ b/recovery.fstab @@ -0,0 +1,37 @@ +# Copyright (c) 2011, Code Aurora Forum. 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 Code Aurora Forum, Inc. 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] + +/boot emmc /dev/block/mmcblk0p9 +/cache ext4 /dev/block/mmcblk0p16 +/data ext4 /dev/block/mmcblk0p21 +/misc emmc /dev/block/mmcblk0p8 +/recovery emmc /dev/block/mmcblk0p17 +/sdcard vfat /dev/block/mmcblk0p20 dev/block/mmcblk1p1 +/system ext4 /dev/block/mmcblk0p14 +#/sys_boot vfat /dev/block/mmcblk0p3 diff --git a/recovery/postrecoveryboot.sh b/recovery/postrecoveryboot.sh new file mode 100755 index 0000000..67a1c99 --- /dev/null +++ b/recovery/postrecoveryboot.sh @@ -0,0 +1,10 @@ +#!/sbin/sh + +# Script by Tyler Montgomery ( http://thecubed.com ) + +# This script is ran right after recovery is launched. +# also, launch this script if you're stuck in a bootloop! + +# Zero out boot recovery and wipe data command +busybox dd if=/dev/zero bs=1 seek=7864320 count=111 conv=notrunc of=/dev/block/mmcblk0p8 + diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..bdbead7 --- /dev/null +++ b/system.prop @@ -0,0 +1,3 @@ +# +# system.prop for ms695 +#