Add Malata smb_a1004 and a1011 (Harmony ref. designs) support

Change-Id: Ia6db1fd6a2bcba15b00f56c58935a236575c881b
diff --git a/CHANGELOG.mkdn b/CHANGELOG.mkdn
index c4b2dfc..b0a4581 100644
--- a/CHANGELOG.mkdn
+++ b/CHANGELOG.mkdn
@@ -28,6 +28,7 @@
 * Z71 (Boston, G1305, XT502, A60, Blaze, others): arcee
 * Wildfire: Jacob Crawley, Arne Coucheron
 * Harmony (Malata smb_a1002/smb_b9701): bekit, pershoot
+* Harmony (Malata smb_a1004/smb_a1011): arcee
 * Ace (Desire HD): Kali-
 * Glacier (MT4G): Zinx, Kmobs
 * Click (Tattoo): KalimochoAz
diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk
index 745a66b..d183761 100644
--- a/products/AndroidProducts.mk
+++ b/products/AndroidProducts.mk
@@ -29,6 +29,8 @@
     $(LOCAL_DIR)/cyanogen_passion.mk \
     $(LOCAL_DIR)/cyanogen_sholes.mk \
     $(LOCAL_DIR)/cyanogen_smb_a1002.mk \
+    $(LOCAL_DIR)/cyanogen_smb_a1004.mk \
+    $(LOCAL_DIR)/cyanogen_smb_a1011.mk \
     $(LOCAL_DIR)/cyanogen_smb_b9701.mk \
     $(LOCAL_DIR)/cyanogen_speedy.mk \
     $(LOCAL_DIR)/cyanogen_supersonic.mk \
diff --git a/products/cyanogen_smb_a1004.mk b/products/cyanogen_smb_a1004.mk
new file mode 100644
index 0000000..1212119
--- /dev/null
+++ b/products/cyanogen_smb_a1004.mk
@@ -0,0 +1,41 @@
+$(call inherit-product, device/malata/smb_a1004/smb_a1004.mk)
+
+# Inherit some common cyanogenmod stuff.
+$(call inherit-product, vendor/cyanogen/products/common_full.mk)
+
+#
+# Setup device specific product configuration.
+#
+PRODUCT_NAME := cyanogen_smb_a1004
+PRODUCT_BRAND := malata
+PRODUCT_DEVICE := smb_a1004
+PRODUCT_MODEL := SMB-A1004
+PRODUCT_MANUFACTURER := malata
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=smb_a1004 BUILD_ID=GRJ22 BUILD_DISPLAY_ID=GRJ22 BUILD_FINGERPRINT=google/passion/passion:2.3.4/GRJ22/121341:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.3.4 GRJ22 121341 release-keys"
+
+# Extra overlay
+PRODUCT_PACKAGE_OVERLAYS += \
+    vendor/cyanogen/overlay/tablet \
+    vendor/cyanogen/overlay/smb_a1002
+
+#
+# Set ro.modversion
+#
+ifdef CYANOGEN_NIGHTLY
+    PRODUCT_PROPERTY_OVERRIDES += \
+        ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-SMB-A1004
+else
+    ifdef CYANOGEN_RELEASE
+        PRODUCT_PROPERTY_OVERRIDES += \
+            ro.modversion=CyanogenMod-7.1.0-RC0-SMB-A1004
+    else
+        PRODUCT_PROPERTY_OVERRIDES += \
+            ro.modversion=CyanogenMod-7.1.0-RC0-SMB-A1004-KANG
+    endif
+endif
+
+#
+# Copy passion specific prebuilt files
+#
+PRODUCT_COPY_FILES +=  \
+    vendor/cyanogen/prebuilt/hdpi/media/bootanimation.zip:system/media/bootanimation.zip
diff --git a/products/cyanogen_smb_a1011.mk b/products/cyanogen_smb_a1011.mk
new file mode 100644
index 0000000..5ace262
--- /dev/null
+++ b/products/cyanogen_smb_a1011.mk
@@ -0,0 +1,41 @@
+$(call inherit-product, device/malata/smb_a1011/smb_a1011.mk)
+
+# Inherit some common cyanogenmod stuff.
+$(call inherit-product, vendor/cyanogen/products/common_full.mk)
+
+#
+# Setup device specific product configuration.
+#
+PRODUCT_NAME := cyanogen_smb_a1011
+PRODUCT_BRAND := malata
+PRODUCT_DEVICE := smb_a1011
+PRODUCT_MODEL := SMB-A1011
+PRODUCT_MANUFACTURER := malata
+PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=smb_a1011 BUILD_ID=GRJ22 BUILD_DISPLAY_ID=GRJ22 BUILD_FINGERPRINT=google/passion/passion:2.3.4/GRJ22/121341:user/release-keys PRIVATE_BUILD_DESC="passion-user 2.3.4 GRJ22 121341 release-keys"
+
+# Extra overlay
+PRODUCT_PACKAGE_OVERLAYS += \
+    vendor/cyanogen/overlay/tablet \
+    vendor/cyanogen/overlay/smb_a1002
+
+#
+# Set ro.modversion
+#
+ifdef CYANOGEN_NIGHTLY
+    PRODUCT_PROPERTY_OVERRIDES += \
+        ro.modversion=CyanogenMod-7-$(shell date +%m%d%Y)-NIGHTLY-SMB-A1011
+else
+    ifdef CYANOGEN_RELEASE
+        PRODUCT_PROPERTY_OVERRIDES += \
+            ro.modversion=CyanogenMod-7.1.0-RC0-SMB-A1011
+    else
+        PRODUCT_PROPERTY_OVERRIDES += \
+            ro.modversion=CyanogenMod-7.1.0-RC0-SMB-A1011-KANG
+    endif
+endif
+
+#
+# Copy passion 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 fe0ea91..84073b6 100644
--- a/vendorsetup.sh
+++ b/vendorsetup.sh
@@ -28,6 +28,8 @@
 add_lunch_combo cyanogen_passion-eng
 add_lunch_combo cyanogen_sholes-eng
 add_lunch_combo cyanogen_smb_a1002-eng
+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_speedy-eng
 add_lunch_combo cyanogen_supersonic-eng