From 145383fc970b76493feb57a0ed4191f0a8d4fd2c Mon Sep 17 00:00:00 2001 From: jerpelea Date: Thu, 11 Aug 2011 21:04:47 +0300 Subject: [PATCH] cyanogen: Add SEMC U20i (Xperia X10MiniPro) Change-Id: I30b8d500ffb88a1c22d07ff957bd0c910929e034 --- products/AndroidProducts.mk | 1 + products/cyanogen_mimmi.mk | 49 +++++++++++++++++++++++++++++++++++++ vendorsetup.sh | 1 + 3 files changed, 51 insertions(+) create mode 100644 products/cyanogen_mimmi.mk diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index b2951c6d..85e6070d 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -31,6 +31,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/cyanogen_mango.mk \ $(LOCAL_DIR)/cyanogen_mecha.mk \ $(LOCAL_DIR)/cyanogen_mesmerizemtd.mk \ + $(LOCAL_DIR)/cyanogen_mimmi.mk \ $(LOCAL_DIR)/cyanogen_morrison.mk \ $(LOCAL_DIR)/cyanogen_motus.mk \ $(LOCAL_DIR)/cyanogen_one.mk \ diff --git a/products/cyanogen_mimmi.mk b/products/cyanogen_mimmi.mk new file mode 100644 index 00000000..cfd3f62d --- /dev/null +++ b/products/cyanogen_mimmi.mk @@ -0,0 +1,49 @@ +# Inherit device configuration for mimmi. +$(call inherit-product, device/semc/mimmi/device_mimmi.mk) + +# Inherit some common cyanogenmod stuff. +$(call inherit-product, vendor/cyanogen/products/common_full.mk) + +# Include GSM stuff +$(call inherit-product, vendor/cyanogen/products/gsm.mk) + +# +# Setup device specific product configuration. +# +PRODUCT_NAME := cyanogen_mimmi +PRODUCT_BRAND := SEMC +PRODUCT_DEVICE := mimmi +PRODUCT_MODEL := U20i +PRODUCT_MANUFACTURER := Sony Ericsson +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_DEVICE=U20i PRODUCT_NAME=U20i BUILD_ID=3.0.1.A.0.145 BUILD_DISPLAY_ID=3.0.1.A.0.145 BUILD_FINGERPRINT=SEMC/LT15i_1247-1073/LT15i:2.3.3/3.0.1.A.0.145/bn_p:user/release-keys PRIVATE_BUILD_DESC="LT15i-user 2.3.3 3.0.1.A.0.145 bn_P test-keys" + +# Add LDPI assets, in addition to MDPI +PRODUCT_LOCALES += ldpi mdpi + +# Extra overlay for LDPI +PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/ldpi + +# Ti FM radio +#$(call inherit-product, vendor/cyanogen/products/ti_fm_radio.mk) + +# +# Set ro.modversion +# +ifdef CYANOGEN_NIGHTLY + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-X10MiniPro +else + ifdef CYANOGEN_RELEASE + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.1.0-RC1-X10MiniPro + else + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.1.0-RC1-X10MiniPro-KANG + endif +endif + +# +# Copy MDPI 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 252d5cb8..9f5a2a68 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -30,6 +30,7 @@ add_lunch_combo cyanogen_liberty-eng add_lunch_combo cyanogen_mango-eng add_lunch_combo cyanogen_mecha-eng add_lunch_combo cyanogen_mesmerizemtd-eng +add_lunch_combo cyanogen_mimmi-eng add_lunch_combo cyanogen_morrison-eng add_lunch_combo cyanogen_motus-eng add_lunch_combo cyanogen_one-eng