Snowball: Support for MALI
Change-Id: Idf2ebb0a994d8d6a0cf1971a8fe471084805a9f5
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/71035
Reviewed-by: Patrik RYD <patrik.ryd@stericsson.com>
Tested-by: Patrik RYD <patrik.ryd@stericsson.com>
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 9852b4b..344a16e 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -3,7 +3,7 @@
# Product-specific compile-time definitions.
#
-TARGET_BOARD_PLATFORM := snowball
+TARGET_BOARD_PLATFORM := snowball
TARGET_NO_BOOTLOADER := true # Uses u-boot instead
TARGET_NO_KERNEL := false
KERNEL_CONFIG := u8500_android_defconfig
@@ -50,6 +50,20 @@
TARGET_GATOR_WITH_MALI_SUPPORT := MALI_400
TARGET_MALI_DRIVER_DIR := drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali
+# If build with a vendor tarball (or ST-Ericsson internal build)
+# then include the vendor.mk file.
+ifneq ($(wildcard $(TOP)/vendor/st-ericsson/snowball/vendor.mk),)
+include $(TOP)/vendor/st-ericsson/snowball/vendor.mk
+else
+# If we do not have vendor support then enable the software graphics
+# work around (hack)
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.nohardwaregfx=true
+endif
+
+#Let all everyone know that we are building for Snowball
+TARGET_EXTRA_CFLAGS += -DTARGET_BOARD_SNOWBALL
+
# Snowball uses a Nova A9500 -- Dual-Core Cortex A9
TARGET_EXTRA_CFLAGS += $(call cc-option,-mtune=cortex-a9,$(call cc-option,-mtune=cortex-a8)) $(call cc-option,-mcpu=cortex-a9,$(call cc-option,-mcpu=cortex-a8))
diff --git a/device.mk b/device.mk
index 355841a..4efd04b 100644
--- a/device.mk
+++ b/device.mk
@@ -49,10 +49,6 @@
PRODUCT_PACKAGES += \
make_ext4fs
-# Enable the software graphics work around (hack)
-PRODUCT_PROPERTY_OVERRIDES += \
- ro.nohardwaregfx=true
-
# Set screen DPI to 120 to boot into tablet GUI
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density = 120
diff --git a/egl.cfg b/egl.cfg
index c4a1437..9438b87 100644
--- a/egl.cfg
+++ b/egl.cfg
@@ -1 +1,2 @@
0 0 android
+0 1 mali