From ec98d2ded90715f04e3751aa1fa56d8d6a21bfbd Mon Sep 17 00:00:00 2001 From: Martin Brabham Date: Thu, 24 Mar 2011 06:08:38 -0700 Subject: [PATCH] Adding desirec to cyanogen vendor Change-Id: Iedee7e53633289ac7a12815bf9122643ede159b5 --- products/AndroidProducts.mk | 1 + products/cyanogen_desirec.mk | 48 ++++++++++++++++++++++++++++++++++++ vendorsetup.sh | 1 + 3 files changed, 50 insertions(+) create mode 100644 products/cyanogen_desirec.mk diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index 4bcfa194..2705c909 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -6,6 +6,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/cyanogen_buzz.mk \ $(LOCAL_DIR)/cyanogen_click.mk \ $(LOCAL_DIR)/cyanogen_crespo.mk \ + $(LOCAL_DIR)/cyanogen_desirec.mk \ $(LOCAL_DIR)/cyanogen_dream_sapphire.mk \ $(LOCAL_DIR)/cyanogen_encore.mk \ $(LOCAL_DIR)/cyanogen_espresso.mk \ diff --git a/products/cyanogen_desirec.mk b/products/cyanogen_desirec.mk new file mode 100644 index 00000000..2c95efce --- /dev/null +++ b/products/cyanogen_desirec.mk @@ -0,0 +1,48 @@ +# Inherit AOSP device configuration for desirec. +$(call inherit-product, device/htc/desirec/device_desirec.mk) + +# Inherit some common cyanogenmod stuff. +$(call inherit-product, vendor/cyanogen/products/common_full.mk) + +# Inherit apns list from common +$(call inherit-product, vendor/cyanogen/products/gsm.mk) + +# +# Setup device specific product configuration. +# +PRODUCT_NAME := cyanogen_desirec +PRODUCT_BRAND := verizon +PRODUCT_DEVICE := desirec +PRODUCT_MODEL := ERIS +PRODUCT_MANUFACTURER := HTC +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" + +# Use Prebuilt kernel from desirec device tree +PRODUCT_SPECIFIC_DEFINES += TARGET_PREBUILT_KERNEL=device/htc/desirec/kernel + +# Extra overlay for Gallery3D orientation hack +PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/heroc + +# Enable Windows Media +WITH_WINDOWS_MEDIA := true +# +# Set ro.modversion +# +ifdef CYANOGEN_NIGHTLY + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-Eris +else + ifdef CYANOGEN_RELEASE + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.0.0-RC2-Eris + else + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.0.0-RC2-KANG-Eris + endif +endif + +# +# Copy dream/sapphire 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 44ef373c..663404d5 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -5,6 +5,7 @@ add_lunch_combo cyanogen_bravoc-eng add_lunch_combo cyanogen_buzz-eng add_lunch_combo cyanogen_click-eng add_lunch_combo cyanogen_crespo-eng +add_lunch_combo cyanogen_desirec-eng add_lunch_combo cyanogen_dream_sapphire-eng add_lunch_combo cyanogen_encore-eng add_lunch_combo cyanogen_espresso-eng