From 430209e9b1dc841f03ecd4ec04d36528eaadfc68 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Sat, 23 Oct 2010 15:33:39 +0100 Subject: [PATCH] one: Add Geeksphone ONE product Change-Id: I666848bcec6d726b02b80a739dfe827cbe79b946 --- products/AndroidProducts.mk | 3 ++- products/cyanogen_one.mk | 44 +++++++++++++++++++++++++++++++++++++ vendorsetup.sh | 1 + 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 products/cyanogen_one.mk diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index ada2036d..329b801c 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -12,4 +12,5 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/cyanogen_liberty.mk \ $(LOCAL_DIR)/cyanogen_vibrant.mk \ $(LOCAL_DIR)/cyanogen_legend.mk \ - $(LOCAL_DIR)/cyanogen_vision.mk + $(LOCAL_DIR)/cyanogen_vision.mk \ + $(LOCAL_DIR)/cyanogen_one.mk diff --git a/products/cyanogen_one.mk b/products/cyanogen_one.mk new file mode 100644 index 00000000..2a0505db --- /dev/null +++ b/products/cyanogen_one.mk @@ -0,0 +1,44 @@ +# Inherit AOSP device configuration for geeksphone one. +$(call inherit-product, device/geeksphone/one/one.mk) + +# Inherit some common cyanogenmod stuff. +$(call inherit-product, vendor/cyanogen/products/common.mk) + +# Include GSM stuff +$(call inherit-product, vendor/cyanogen/products/gsm.mk) + +# +# Setup device specific product configuration. +# +PRODUCT_NAME := cyanogen_one +PRODUCT_BRAND := geeksphone +PRODUCT_DEVICE := one +TARGET_OTA_ASSERT_DEVICE := geeksphone-one +PRODUCT_MODEL := Geeksphone ONE +PRODUCT_MANUFACTURER := Geeksphone +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_DEVICE=geeksphone-one PRODUCT_NAME=geeksphone_one BUILD_ID=FRG83 BUILD_DISPLAY_ID=FRG83 BUILD_FINGERPRINT=google/passion/passion/mahimahi:2.2.1/FRG83/60505:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.2.1 FRG83 60505 release-keys" + +# +# Move dalvik cache to data partition where there is more room to solve startup problems +# +PRODUCT_PROPERTY_OVERRIDES += dalvik.vm.dexopt-data-only=1 + +# +# Set ro.modversion +# + + + +ifdef CYANOGEN_NIGHTLY + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-6-$(shell date +%m%d%Y)-NIGHTLY-ONE +else + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-6.1.0-RC1-ONE +endif + +# +# Copy GPO specific prebuilt files +# +PRODUCT_COPY_FILES += \ + vendor/cyanogen/prebuilt/ldpi/media/bootanimation.zip:system/media/bootanimation.zip diff --git a/vendorsetup.sh b/vendorsetup.sh index 03d81e91..e7f9613b 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -12,5 +12,6 @@ add_lunch_combo cyanogen_liberty-eng add_lunch_combo cyanogen_vibrant-eng add_lunch_combo cyanogen_legend-eng add_lunch_combo cyanogen_vision-eng +add_lunch_combo cyanogen_one-eng PATH=$PATH:$PWD/vendor/cyanogen/tools ; export PATH