From db0680636617aa9d8ad17e6dd3e5fbabb8133e7b Mon Sep 17 00:00:00 2001 From: Tom Giordano Date: Tue, 8 Mar 2011 00:22:17 +1100 Subject: [PATCH] Add Huawei U8220/U8230 The U8220 and U8230 are the same device. This should be compatible with both, but so far has only been tested on U8220 (aka T-Mobile Pulse). device config should be forked from https://github.com/TomGiordano/android_device_huawei_u8220 Change-Id: If0141d63d8d41360a9cfa69283e5bdbda17c1b8f --- products/AndroidProducts.mk | 1 + products/cyanogen_u8220.mk | 41 +++++++++++++++++++++++++++++++++++++ vendorsetup.sh | 1 + 3 files changed, 43 insertions(+) create mode 100644 products/cyanogen_u8220.mk diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index 91d7300c..02b547f2 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -30,6 +30,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/cyanogen_sholes.mk \ $(LOCAL_DIR)/cyanogen_speedy.mk \ $(LOCAL_DIR)/cyanogen_supersonic.mk \ + $(LOCAL_DIR)/cyanogen_u8220.mk \ $(LOCAL_DIR)/cyanogen_vega.mk \ $(LOCAL_DIR)/cyanogen_vibrantmtd.mk \ $(LOCAL_DIR)/cyanogen_vision.mk \ diff --git a/products/cyanogen_u8220.mk b/products/cyanogen_u8220.mk new file mode 100644 index 00000000..8a86b5ac --- /dev/null +++ b/products/cyanogen_u8220.mk @@ -0,0 +1,41 @@ +# Inherit AOSP device configuration for dream_sapphire. +$(call inherit-product, device/huawei/u8220/device_u8220.mk) + +# Inherit some common cyanogenmod stuff. +$(call inherit-product, vendor/cyanogen/products/common.mk) + +# Include GSM-only stuff +$(call inherit-product, vendor/cyanogen/products/gsm.mk) + +# +# Setup device specific product configuration. +# +PRODUCT_NAME := cyanogen_u8220 +PRODUCT_BRAND := huawei +PRODUCT_DEVICE := u8220 +PRODUCT_MODEL := U8220/U8230 +PRODUCT_MANUFACTURER := Huawei +PRODUCT_BUILD_PROP_OVERRIDES += BUILD_ID=GRI40 BUILD_DISPLAY_ID=GRI40 BUILD_FINGERPRINT=google/passion/passion:2.3.3/GRI40/102588:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.3.3 GRI40 102588 release-keys" + +# +# Set ro.modversion +# +ifdef CYANOGEN_NIGHTLY + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-U8220 +else + ifdef CYANOGEN_RELEASE + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.1.0-RC0-U8220 + else + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.1.0-RC0-U8220-KANG + endif +endif + + +# +# Copy DS specific prebuilt files +# +PRODUCT_COPY_FILES += \ + vendor/cyanogen/prebuilt/mdpi/media/bootanimation.zip:system/media/bootanimation.zip diff --git a/vendorsetup.sh b/vendorsetup.sh index eadee4a3..acfb6021 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -29,6 +29,7 @@ add_lunch_combo cyanogen_passion-eng add_lunch_combo cyanogen_sholes-eng add_lunch_combo cyanogen_speedy-eng add_lunch_combo cyanogen_supersonic-eng +add_lunch_combo cyanogen_u8220-eng add_lunch_combo cyanogen_vega-eng add_lunch_combo cyanogen_vibrantmtd-eng add_lunch_combo cyanogen_vision-eng