OSDN Git Service

generic_x86: add hardware acceleration support
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 Aug 2011 10:59:31 +0000 (18:59 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 Aug 2011 11:01:13 +0000 (19:01 +0800)
target/board/generic_x86/BoardConfig.mk
target/product/generic_x86.mk

index 2d6c961..5984ab3 100644 (file)
@@ -19,7 +19,6 @@ TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
 # the following variables could be overridden
 TARGET_NO_BOOTLOADER ?= true
 TARGET_NO_RECOVERY ?= true
-TARGET_HARDWARE_3D ?= false
 TARGET_PROVIDES_INIT_RC ?= true
 TARGET_HAS_THIRD_PARTY_APPS ?= false
 
@@ -38,4 +37,9 @@ BOARD_USES_TSLIB ?= true
 BOARD_WPA_SUPPLICANT_DRIVER ?= AWEXT
 WPA_SUPPLICANT_VERSION ?= VER_0_6_X
 
-BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot_hardware=$(TARGET_PRODUCT) acpi_sleep=s3_bios,s3_mode $(if $(BOARD_USES_DRM),,video=-16)
+ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
+TARGET_HARDWARE_3D := true
+BOARD_EGL_CFG ?= device/common/gpu/egl_mesa.cfg
+endif
+
+BOARD_KERNEL_CMDLINE := root=/dev/ram0 androidboot_hardware=$(TARGET_PRODUCT) acpi_sleep=s3_bios,s3_mode $(if $(BOARD_GPU_DRIVERS),,video=-16)
index de7a522..f5d9dfe 100644 (file)
@@ -45,6 +45,9 @@ $(call inherit-product,$(SRC_TARGET_DIR)/product/generic.mk)
 # Pick up some sounds
 $(call inherit-product,frameworks/base/data/sounds/OriginalAudio.mk)
 
+# Get the hardware acceleration libraries
+$(call inherit-product-if-exists,device/common/gpu/gpu_mesa.mk)
+
 # Get the touchscreen calibration tool
 $(call inherit-product-if-exists,external/tslib/tslib.mk)