Advertisement
Guest User

Untitled

a guest
Nov 2nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.37 KB | None | 0 0
  1. diff a/droid-hal-$DEVICE.spec b/droid-hal-$DEVICE.spec
  2. --- a/droid-hal-$DEVICE.spec
  3. +++ b/droid-hal-$DEVICE.spec
  4.  
  5. +%define android_config \
  6. +#define MALI_QUIRKS 1\ (or WANT_ADRENO_QUIRKS)
  7. +%{nil}
  8.  
  9.  %include dhd/droid-hal-device.inc
  10.  
  11.  
  12.  
  13. With the following patch to upstream libhybris:
  14.  
  15.  
  16. diff --git a/hybris/common/Makefile.am b/hybris/common/Makefile.am
  17. index 20438f6..71d7012 100644
  18. --- a/hybris/common/Makefile.am
  19. +++ b/hybris/common/Makefile.am
  20. @@ -7,7 +7,7 @@ if !WANT_ARCH_ARM64
  21.  SUBDIRS += jb
  22.  endif
  23.  
  24. -if WANT_EXPERIMENTAL
  25. +if WANT_LINKER_MM
  26.  SUBDIRS += mm
  27.  endif
  28.  
  29. @@ -62,7 +62,7 @@ endif
  30.  if !WANT_ARCH_ARM64
  31.  libhybris_common_la_CPPFLAGS += -DWANT_LINKER_JB
  32.  endif
  33. -if WANT_EXPERIMENTAL
  34. +if WANT_LINKER_MM
  35.  libhybris_common_la_CPPFLAGS += -DWANT_LINKER_MM
  36.  endif
  37.  if WANT_ARM_TRACING
  38. diff --git a/hybris/common/hooks.c b/hybris/common/hooks.c
  39. index 29987b9..498543f 100644
  40. --- a/hybris/common/hooks.c
  41. +++ b/hybris/common/hooks.c
  42. @@ -73,6 +73,8 @@
  43.  #include <hybris/properties/properties.h>
  44.  #include <hybris/common/hooks.h>
  45.  
  46. +#include <android-config.h>
  47. +
  48.  #ifdef WANT_ARM_TRACING
  49.  #include "wrappers.h"
  50.  #endif
  51. diff --git a/hybris/configure.ac b/hybris/configure.ac
  52. index 1bbe083..1888d60 100644
  53. --- a/hybris/configure.ac
  54. +++ b/hybris/configure.ac
  55. @@ -46,7 +46,7 @@ AC_ARG_ENABLE(experimental,
  56.    [  --enable-experimental     Enable experimental features (default=disabled)],
  57.    [experimental=$enableval],
  58.    [experimental="no"])
  59. -AM_CONDITIONAL( [WANT_EXPERIMENTAL], [test x"$experimental" = x"yes"])
  60. +AM_CONDITIONAL( [WANT_MM_LINKER], [test x"$experimental" = x"yes"])
  61.  
  62.  AC_ARG_ENABLE(adreno_quirks,
  63.    [  --enable-adreno-quirks     Enable adreno quirks (default=disabled)],
  64. @@ -215,6 +215,7 @@ AC_MSG_NOTICE("Android headers version is $android_headers_major.$android_header
  65.  
  66.  # Add automake tests for version/API needs here that you need in code, including test .am's
  67.  AM_CONDITIONAL([HAS_ANDROID_7_0_0], [test $android_headers_major -ge 7 -a $android_headers_minor -ge 0 ])
  68. +AM_CONDITIONAL([HAS_ANDROID_6_0_0], [test $android_headers_major -ge 6 -a $android_headers_minor -ge 0 ])
  69.  AM_CONDITIONAL([HAS_ANDROID_5_0_0], [test $android_headers_major -ge 5 -a $android_headers_minor -ge 0 ])
  70.  AM_CONDITIONAL([HAS_ANDROID_4_2_0], [test $android_headers_major -ge 4 -a $android_headers_minor -ge 2 ])
  71.  AM_CONDITIONAL([HAS_ANDROID_4_1_0], [test $android_headers_major -ge 4 -a $android_headers_minor -ge 1 ])
  72. @@ -222,6 +223,9 @@ AM_CONDITIONAL([HAS_ANDROID_4_0_3], [test $android_headers_major -ge 4 -a $andro
  73.  AM_CONDITIONAL([HAS_ANDROID_4_0_0], [test $android_headers_major -ge 4 -a $android_headers_minor -ge 0 ])
  74.  AM_CONDITIONAL([HAS_ANDROID_2_3_0], [test $android_headers_major -ge 2 -a $android_headers_minor -ge 3 ])
  75.  
  76. +# Automatically enable MM linker for Android 6 (previously known as "experimental feature")
  77. +AM_CONDITIONAL([WANT_MM_LINKER], [test $android_headers_major -ge 6 -a $android_headers_minor -ge 0 ])
  78. +
  79.  AC_ARG_ENABLE(mali-quirks,
  80.    [  --enable-mali-quirks            Enable Mali GPU driver quirks (default=disabled)],
  81.    [mali_quirks=$enableval],
  82. @@ -297,7 +301,7 @@ echo "  debug build.............: $debug"
  83.  echo
  84.  echo "  trace...................: $trace"
  85.  echo
  86. -echo "  experimental features...: $experimental"
  87. +echo "  mm linker...............: $experimental"
  88.  echo
  89.  echo "  prefix..................: $prefix"
  90.  echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement