cm: Add P990 device (LG Optimus 2X)
Change-Id: I98ce03a0b554ce8f95c76dc0025a5621cfe5fb78
diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk
index 0001786..a20c2a9 100644
--- a/products/AndroidProducts.mk
+++ b/products/AndroidProducts.mk
@@ -20,8 +20,9 @@
$(LOCAL_DIR)/cyanogen_leo.mk \
$(LOCAL_DIR)/cyanogen_liberty.mk \
$(LOCAL_DIR)/cyanogen_one.mk \
- $(LOCAL_DIR)/cyanogen_passion.mk \
+ $(LOCAL_DIR)/cyanogen_p990.mk \
$(LOCAL_DIR)/cyanogen_p999.mk \
+ $(LOCAL_DIR)/cyanogen_passion.mk \
$(LOCAL_DIR)/cyanogen_sholes.mk \
$(LOCAL_DIR)/cyanogen_speedy.mk \
$(LOCAL_DIR)/cyanogen_supersonic.mk \
diff --git a/products/cyanogen_p990.mk b/products/cyanogen_p990.mk
new file mode 100644
index 0000000..fbe4550
--- /dev/null
+++ b/products/cyanogen_p990.mk
@@ -0,0 +1,46 @@
+# Inherit device configuration
+$(call inherit-product, device/lge/p990/p990.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_p990
+PRODUCT_BRAND := lge
+PRODUCT_DEVICE := p990
+PRODUCT_MODEL := Optimus 2X
+PRODUCT_MANUFACTURER := LGE
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=lge_star BUILD_ID=FRG83G BUILD_DISPLAY_ID=GRI40 BUILD_FINGERPRINT=lge/lge_star/p990/p990:2.2.2/FRG83G/lgp990-V10b.2ED2ADCFFC:user/release-keys PRIVATE_BUILD_DESC="star-user 2.2.2 FRG83G 2ED2ADCFFC release-keys"
+
+# Extra Star overlay
+PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/star
+
+#
+# Set ro.modversion
+#
+ifdef CYANOGEN_NIGHTLY
+ PRODUCT_PROPERTY_OVERRIDES += \
+ ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-Optimus2X
+else
+ ifdef CYANOGEN_RELEASE
+ PRODUCT_PROPERTY_OVERRIDES += \
+ ro.modversion=CyanogenMod-7.0.2-Optimus2X
+ else
+ PRODUCT_PROPERTY_OVERRIDES += \
+ ro.modversion=CyanogenMod-7.0.2-Optimus2X-KANG
+ endif
+endif
+
+#
+# Copy prebuilt files
+#
+PRODUCT_COPY_FILES += \
+ vendor/cyanogen/prebuilt/hdpi/media/bootanimation.zip:system/media/bootanimation.zip
+
+# Add the Torch app
+PRODUCT_PACKAGES += Torch
diff --git a/vendorsetup.sh b/vendorsetup.sh
index f77b51a..456beda 100644
--- a/vendorsetup.sh
+++ b/vendorsetup.sh
@@ -19,8 +19,9 @@
add_lunch_combo cyanogen_leo-eng
add_lunch_combo cyanogen_liberty-eng
add_lunch_combo cyanogen_one-eng
-add_lunch_combo cyanogen_passion-eng
+add_lunch_combo cyanogen_p990-eng
add_lunch_combo cyanogen_p999-eng
+add_lunch_combo cyanogen_passion-eng
add_lunch_combo cyanogen_sholes-eng
add_lunch_combo cyanogen_speedy-eng
add_lunch_combo cyanogen_supersonic-eng