cyanogen: Add smultron / Sony Ericsson Xperia Mini
Add support for the Xperia Mini.
Build product: cyanogen_smultron
Change-Id: I6813acb5dbb3f3dee9df6653a91b458554720020
diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk
index 8416562..9e693b4 100644
--- a/products/AndroidProducts.mk
+++ b/products/AndroidProducts.mk
@@ -44,6 +44,7 @@
$(LOCAL_DIR)/cyanogen_smb_a1004.mk \
$(LOCAL_DIR)/cyanogen_smb_a1011.mk \
$(LOCAL_DIR)/cyanogen_smb_b9701.mk \
+ $(LOCAL_DIR)/cyanogen_smultron.mk \
$(LOCAL_DIR)/cyanogen_speedy.mk \
$(LOCAL_DIR)/cyanogen_supersonic.mk \
$(LOCAL_DIR)/cyanogen_v9.mk \
diff --git a/products/cyanogen_smultron.mk b/products/cyanogen_smultron.mk
new file mode 100644
index 0000000..e8d4dd3
--- /dev/null
+++ b/products/cyanogen_smultron.mk
@@ -0,0 +1,55 @@
+# Inherit device configuration for smultron.
+$(call inherit-product, device/semc/smultron/device_smultron.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_smultron
+PRODUCT_BRAND := SEMC
+PRODUCT_DEVICE := smultron
+PRODUCT_MODEL := ST15i
+PRODUCT_MANUFACTURER := Sony Ericsson
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=ST15i BUILD_ID=4.0.A.2.368 BUILD_DISPLAY_ID=4.0.A.2.368 BUILD_FINGERPRINT=SEMC/ST15i_1249-6227/ST15i:2.3.3/4.0.A.2.368/j_b_3w:user/release-keys PRIVATE_BUILD_DESC="ST15i-user 2.3.3 4.0.A.2.368 j_b_3w test-keys"
+
+# Build kernel
+#PRODUCT_SPECIFIC_DEFINES += TARGET_PREBUILT_KERNEL=
+#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_DIR=kernel-msm
+#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_CONFIG=cyanogen_smultron_defconfig
+
+# Extra smultron overlay
+PRODUCT_PACKAGE_OVERLAYS += vendor/cyanogen/overlay/smultron
+
+# Add the Torch app
+#PRODUCT_PACKAGES += Torch
+
+
+# BCM 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-XperiaMini-ST15i
+else
+ ifdef CYANOGEN_RELEASE
+ PRODUCT_PROPERTY_OVERRIDES += \
+ ro.modversion=CyanogenMod-7.1.0-RC1-XperiaMini-ST15i
+ else
+ PRODUCT_PROPERTY_OVERRIDES += \
+ ro.modversion=CyanogenMod-7.1.0-RC1-XperiaMini-ST15i-KANG
+ endif
+endif
+
+#
+# Copy passion 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 c9bf75c..55e7297 100644
--- a/vendorsetup.sh
+++ b/vendorsetup.sh
@@ -43,6 +43,7 @@
add_lunch_combo cyanogen_smb_a1004-eng
add_lunch_combo cyanogen_smb_a1011-eng
add_lunch_combo cyanogen_smb_b9701-eng
+add_lunch_combo cyanogen_smultron-eng
add_lunch_combo cyanogen_speedy-eng
add_lunch_combo cyanogen_supersonic-eng
add_lunch_combo cyanogen_u8220-eng