summaryrefslogtreecommitdiffstats
path: root/products/replicant_dream_sapphire.mk
diff options
context:
space:
mode:
Diffstat (limited to 'products/replicant_dream_sapphire.mk')
-rw-r--r--products/replicant_dream_sapphire.mk51
1 files changed, 51 insertions, 0 deletions
diff --git a/products/replicant_dream_sapphire.mk b/products/replicant_dream_sapphire.mk
new file mode 100644
index 0000000..9c95df2
--- /dev/null
+++ b/products/replicant_dream_sapphire.mk
@@ -0,0 +1,51 @@
+# Inherit AOSP device configuration for dream_sapphire.
+$(call inherit-product, device/htc/dream_sapphire/full_dream_sapphire.mk)
+
+# Inherit some common replicant stuff.
+$(call inherit-product, vendor/replicant/products/common.mk)
+
+# Include GSM-only stuff
+$(call inherit-product, vendor/replicant/products/gsm.mk)
+
+#
+# Setup device specific product configuration.
+#
+PRODUCT_NAME := replicant_dream_sapphire
+PRODUCT_BRAND := google
+PRODUCT_DEVICE := dream_sapphire
+PRODUCT_MODEL := Dream/Sapphire
+PRODUCT_MANUFACTURER := HTC
+PRODUCT_BUILD_PROP_OVERRIDES += BUILD_ID=FRG83 BUILD_DISPLAY_ID=FRG83 BUILD_FINGERPRINT=tmobile/opal/sapphire/sapphire:2.2.1/FRG83/60505:user/release-keys PRIVATE_BUILD_DESC="opal-user 2.2.1 FRG83 60505 release-keys"
+
+# Build kernel
+PRODUCT_SPECIFIC_DEFINES += TARGET_PREBUILT_KERNEL=
+PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_DIR=kernel-msm
+PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_CONFIG=cyanogen_msm_defconfig
+
+# Extra DS overlay
+PRODUCT_PACKAGE_OVERLAYS += vendor/replicant/overlay/dream_sapphire
+
+# This file is used to install the correct audio profile when booted
+PRODUCT_COPY_FILES += \
+ vendor/replicant/prebuilt/dream_sapphire/etc/init.d/02audio_profile:system/etc/init.d/02audio_profile
+
+# Enable Compcache by default on D/S
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.compcache.default=18
+
+#
+# Set ro.modversion
+#
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.modversion=Replicant 2.2 (CyanogenMod 6-based)
+
+# Use the audio profile hack
+WITH_DS_HTCACOUSTIC_HACK := true
+
+#
+# Copy DS specific prebuilt files
+#
+PRODUCT_COPY_FILES += \
+ vendor/replicant/prebuilt/mdpi/media/bootanimation.zip:system/media/bootanimation.zip \
+ vendor/replicant/prebuilt/dream_sapphire/etc/AudioPara_dream.csv:system/etc/AudioPara_dream.csv \
+ vendor/replicant/prebuilt/dream_sapphire/etc/AudioPara_sapphire.csv:system/etc/AudioPara_sapphire.csv