Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
leopesto committed Dec 4, 2012
1 parent 293de5b commit 66a03e4
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 17 deletions.
6 changes: 5 additions & 1 deletion AndroidBoard.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ include $(CLEAR_VARS)
ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)

# include the non-open-source counterpart to this file
-include vendor/Jiayu/G2L/AndroidBoardVendor.mk

#-include vendor/jiayu/G2L/AndroidBoardVendor.mk
ifeq ($(TARGET_BOOTLOADER_BOARD_NAME),G2L)
include $(all-subdir-makefiles)
endif
3 changes: 1 addition & 2 deletions AndroidProducts.mk
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/device_G2L.mk
PRODUCT_MAKEFILES := $(LOCAL_DIR)/G2L.mk
15 changes: 12 additions & 3 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
USE_CAMERA_STUB := true

# inherit from the proprietary version
-include vendor/Jiayu/G2L/BoardConfigVendor.mk
#-include vendor/Jiayu/G2L/BoardConfigVendor.mk

TARGET_NO_BOOTLOADER := true
TARGET_BOARD_PLATFORM := mt657x
Expand All @@ -10,10 +10,13 @@ TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_ARCH_VARIANT_CPU := cortex-a9
TARGET_BOOTLOADER_BOARD_NAME := G2L


#kernel
BOARD_KERNEL_CMDLINE :=
BOARD_KERNEL_BASE := 0x10000000
BOARD_KERNEL_PAGESIZE := 2048
#TARGET_SPECIFIC_HEADER_PATH := device/jiayu/G2L/include
#TARGET_PREBUILT_RECOVERY_KERNEL := device/jiayu/G2L/kernel_recovery
#TARGET_KERNEL_CONFIG := cm_G2L_slim_defconfig

# fix this up by examining /proc/mtd on a running device
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x00600000
Expand All @@ -22,14 +25,20 @@ BOARD_SYSTEMIMAGE_PARTITION_SIZE := 0x20100000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 0xa2800000
BOARD_FLASH_BLOCK_SIZE := 131072

TARGET_PREBUILT_KERNEL := device/Jiayu/G2L/kernel
TARGET_PREBUILT_KERNEL := device/jiayu/G2L/kernel
TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/mt_usb/gadget/lun%d/file


BOARD_HAS_NO_SELECT_BUTTON := true
# Use this flag if the board has a ext4 partition larger than 2gb
#BOARD_HAS_LARGE_FILESYSTEM := true

# Internal storage
#BOARD_HAS_SDCARD_INTERNAL := true
#BOARD_SDCARD_DEVICE_PRIMARY := /dev/block/mmcblk0p1
#BOARD_SDCARD_DEVICE_SECONDARY := /dev/block/mmcblk1k1
#BOARD_SDEXT_DEVICE := /dev/block/mmcblk0p2

#twrp
DEVICE_RESOLUTION := 480x800
RECOVERY_GRAPHICS_USE_LINELENGTH := true
Expand Down
15 changes: 9 additions & 6 deletions device_G2L.mk → G2L.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ $(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/Jiayu/G2L/G2L-vendor.mk)
$(call inherit-product-if-exists, vendor/jiayu/G2L/G2L-vendor.mk)

DEVICE_PACKAGE_OVERLAYS += device/Jiayu/G2L/overlay
DEVICE_PACKAGE_OVERLAYS += device/jiayu/G2L/overlay

LOCAL_PATH := device/Jiayu/G2L
ifeq ($(TARGET_PREBUILT_KERNEL),)
Expand All @@ -18,12 +18,15 @@ PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel

PRODUCT_COPY_FILES += \
device/Jiayu/G2L/prebuilt/root/init.G2L.rc:root/init.G2L.rc \
device/Jiayu/G2L/prebuilt/root/init.G2L.usb.rc:root/init.G2L.usb.rc \
device/Jiayu/G2L/prebuilt/root/ueventd.G2L.rc:root/ueventd.rc \
device/jiayu/G2L/prebuilt/root/init.G2L.rc:root/init.G2L.rc \
device/jiayu/G2L/prebuilt/root/init.G2L.usb.rc:root/init.G2L.usb.rc \
device/jiayu/G2L/prebuilt/root/ueventd.G2L.rc:root/ueventd.rc \

$(call inherit-product, build/target/product/full.mk)

PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_G2L
PRODUCT_NAME := G2L
PRODUCT_DEVICE := G2L
PRODUCT_BRAND := jiayu
PRODUCT_MODEL := G2L
PRODUCT_MANUFACTURER := JIAYU
26 changes: 21 additions & 5 deletions cm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,31 @@ $(call inherit-product, vendor/cm/config/gsm.mk)
# Release name
PRODUCT_RELEASE_NAME := G2L

## Device identifier. This must come after all inclusions


TARGET_SCREEN_HEIGHT := 800
TARGET_SCREEN_WIDTH := 480

$(call inherit-product, device/jiayu/G2L/G2L.mk)

# Inherit some common CM stuff.
$(call inherit-product, vendor/cm/config/common_full_phone.mk)

# Inherit device configuration
$(call inherit-product, device/Jiayu/G2L/device_G2L.mk)
# Inherit some common CM9 stuff.
#$(call inherit-product-if-exists, vendor/cm/config/common_mini_phone.mk)

# Inherit some common CM stuff.
$(call inherit-product-if-exists, vendor/cm/config/gsm.mk)

## Device identifier. This must come after all inclusions
PRODUCT_DEVICE := G2L
PRODUCT_NAME := G2L
PRODUCT_BRAND := Jiayu
PRODUCT_BRAND := jiayu
PRODUCT_MODEL := G2L
PRODUCT_MANUFACTURER := Jiayu
PRODUCT_MANUFACTURER := JIAYU

UTC_DATE := $(shell date +%s)
DATE := $(shell date +%Y%m%d)

CM_BUILDTYPE := EXPERIMENTAL
CM_EXTRAVERSION := leopesto
18 changes: 18 additions & 0 deletions vendorsetup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Copyright (C) 2011 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.
#

add_lunch_combo G2L-eng
add_lunch_combo G2L-userdebug

0 comments on commit 66a03e4

Please sign in to comment.