Skip to content

Instantly share code, notes, and snippets.

@nemith
Created July 11, 2012 19:40
Show Gist options
  • Save nemith/3092742 to your computer and use it in GitHub Desktop.
Save nemith/3092742 to your computer and use it in GitHub Desktop.
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 1e9e798..7fa7b34 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -58,25 +58,17 @@ BOARD_USES_UBOOT := true
# Fallback prebuilt kernel
TARGET_PREBUILT_KERNEL := device/bn/encore/prebuilt/boot/kernel
-BOARD_HAS_LARGE_FILESYSTEM := true
-BOARD_RECOVERY_IGNORE_BOOTABLES := true
-BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/bn/encore/recovery/recovery_ui.c
-TARGET_RECOVERY_PRE_COMMAND := "dd if=/dev/zero of=/rom/bcb bs=64 count=1 > /dev/null 2>&1 ; echo 'recovery' >> /rom/bcb ; sync"
-
-# audio stuff
+# Audio
BOARD_USES_AUDIO_LEGACY := true
-#HARDWARE_OMX := true
+HARDWARE_OMX := true
# Modem
TARGET_NO_RADIOIMAGE := true
-# HW Graphics (EGL fixes + webkit fix)
-# USE_OPENGL_RENDERER := true
+# Graphics
+USE_OPENGL_RENDERER := true
BOARD_EGL_CFG := device/bn/encore/egl.cfg
-#COMMON_GLOBAL_CFLAGS += -DMISSING_EGL_EXTERNAL_IMAGE \
-# -DMISSING_EGL_PIXEL_FORMAT_YV12 \
-# -DMISSING_GRALLOC_BUFFERS
# Workaround for eglconfig error
BOARD_NO_RGBX_8888 := true
@@ -106,21 +98,15 @@ WIFI_DRIVER_MODULE_ARG := ""
# Bluetooth
BOARD_HAVE_BLUETOOTH := true
+#GPS
BOARD_HAVE_FAKE_GPS := true
+#Camera (or lack their of)
USE_CAMERA_STUB := true
BOARD_USES_TI_OMAP_MODEM_AUDIO := false
BOARD_HAS_NO_MISC_PARTITION := true
ifdef HARDWARE_OMX
-OMX_JPEG := true
-OMX_VENDOR := ti
-OMX_VENDOR_INCLUDES := \
- hardware/ti/omx/system/src/openmax_il/omx_core/inc \
- hardware/ti/omx/image/src/openmax_il/jpeg_enc/inc
-OMX_VENDOR_WRAPPER := TI_OMX_Wrapper
-BOARD_OPENCORE_LIBRARIES := libOMX_Core
-BOARD_OPENCORE_FLAGS := -DHARDWARE_OMX=1
BOARD_CAMERA_LIBRARIES := libcamera
endif
@@ -130,7 +116,14 @@ endif
BOARD_USES_SECURE_SERVICES := true
-#Config for building TWRP
+
+# Recovery
+BOARD_HAS_LARGE_FILESYSTEM := true
+BOARD_RECOVERY_IGNORE_BOOTABLES := true
+BOARD_CUSTOM_RECOVERY_KEYMAPPING := ../../device/bn/encore/recovery/recovery_ui.c
+TARGET_RECOVERY_PRE_COMMAND := "dd if=/dev/zero of=/rom/bcb bs=64 count=1 > /dev/null 2>&1 ; echo 'recovery' >> /rom/bcb ; sync"
+
+# TWRP
DEVICE_RESOLUTION := 1024x600
RECOVERY_TOUCHSCREEN_SWAP_XY := true
RECOVERY_TOUCHSCREEN_FLIP_Y := true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment