From 295376ebe3641dcbc73d177246baf385c9f97f67 Mon Sep 17 00:00:00 2001 From: "Justin E. Goodell" Date: Tue, 2 Aug 2011 14:48:33 -0400 Subject: [PATCH] add droid2we (droid2 global) support (1/2) this is dependant on forking the device tree found here: https://github.com/RevNumbers/android_device_motorola_droid2we Change-Id: Id1e71eef51f310c7bee3320af7d6095a7b3dd09b --- CHANGELOG.mkdn | 1 + products/AndroidProducts.mk | 1 + products/cyanogen_droid2we.mk | 57 +++++++++++++++++++++++++++++++++++ vendorsetup.sh | 1 + 4 files changed, 60 insertions(+) create mode 100644 products/cyanogen_droid2we.mk diff --git a/CHANGELOG.mkdn b/CHANGELOG.mkdn index 62c73bca..8dcfa879 100644 --- a/CHANGELOG.mkdn +++ b/CHANGELOG.mkdn @@ -50,6 +50,7 @@ Maintainers: * Xperia Arc (LT15i): Bin4ry,defer,jerpelea (FreeXperia team) * Xperia Neo (MT15i): Bin4ry,defer,jerpelea (FreeXperia team) * Xperia Play (R800i): Bin4ry,defer,jerpelea (FreeXperia team) +* Droid2we (Droid2 Global): RevNumbers, x13thangelx Translators: ------------ diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index a195c74e..3a927dba 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -12,6 +12,7 @@ PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/cyanogen_desirec.mk \ $(LOCAL_DIR)/cyanogen_dream_sapphire.mk \ $(LOCAL_DIR)/cyanogen_droid2.mk \ + $(LOCAL_DIR)/cyanogen_droid2we.mk \ $(LOCAL_DIR)/cyanogen_encore.mk \ $(LOCAL_DIR)/cyanogen_espresso.mk \ $(LOCAL_DIR)/cyanogen_fascinatemtd.mk \ diff --git a/products/cyanogen_droid2we.mk b/products/cyanogen_droid2we.mk new file mode 100644 index 00000000..48c5883b --- /dev/null +++ b/products/cyanogen_droid2we.mk @@ -0,0 +1,57 @@ +# Inherit device configuration for Droid2WE. +$(call inherit-product, device/motorola/droid2we/droid2we.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_droid2we +PRODUCT_BRAND := motorola +PRODUCT_DEVICE := droid2we +PRODUCT_MODEL := DROID2 GLOBAL +PRODUCT_MANUFACTURER := Motorola +PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=droid2we_vzw BUILD_ID=S273 BUILD_DISPLAY_ID=VZW BUILD_FINGERPRINT=verizon/droid2we_vzw/cdma_droid2we/droid2we:2.2/S273/2.4.330:user/ota-rel-keys,release-keys PRIVATE_BUILD_DESC="cdma_droid2we-user 2.2 S273 2.4.330 ota-rel-keys,release-keys" TARGET_DEVICE=cdma_droid2we PRODUCT_BRAND=verizon BUILD_NUMBER=2.4.330 BUILD_UTC_DATE=1287722464 TARGET_BUILD_TYPE=user BUILD_VERSION_TAGS=release-keys USER=xrpk47 + +# Build kernel +#PRODUCT_SPECIFIC_DEFINES += TARGET_PREBUILT_KERNEL= +#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_DIR=kernel-msm +#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_CONFIG=cyanogen_droid2we_defconfig + +# Extra Droid2WE overlay +PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/droid2we + +# Add the Torch app +PRODUCT_PACKAGES += Torch + +# Build GanOptimizer +#PRODUCT_PACKAGES += GanOptimizer + +# Broadcom FM radio +#$(call inherit-product, vendor/cyanogen/products/bcm_fm_radio.mk) + +# +# Set ro.modversion +# +ifdef CYANOGEN_NIGHTLY + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-DROID2WE-KANG +else + ifdef CYANOGEN_RELEASE + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.1.0-RC1-DROID2WE + else + PRODUCT_PROPERTY_OVERRIDES += \ + ro.modversion=CyanogenMod-7.1.0-RC1-DROID2WE-KANG + endif +endif + +# +# Copy Droid2WE specific prebuilt files +# +PRODUCT_COPY_FILES += \ + vendor/cyanogen/prebuilt/hdpi/media/bootanimation.zip:system/media/bootanimation.zip diff --git a/vendorsetup.sh b/vendorsetup.sh index 0bbc629c..cc7ea649 100644 --- a/vendorsetup.sh +++ b/vendorsetup.sh @@ -11,6 +11,7 @@ add_lunch_combo cyanogen_crespo4g-eng add_lunch_combo cyanogen_desirec-eng add_lunch_combo cyanogen_dream_sapphire-eng add_lunch_combo cyanogen_droid2-eng +add_lunch_combo cyanogen_droid2we-eng add_lunch_combo cyanogen_encore-eng add_lunch_combo cyanogen_espresso-eng add_lunch_combo cyanogen_fascinatemtd-eng