Advertisement
infected_

Untitled

Jul 23rd, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. # Copyright (C) 2015 The SaberMod Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #
  15.  
  16. # Find host os
  17. UNAME := $(shell uname -s)
  18.  
  19. ifeq ($(strip $(UNAME)),Linux)
  20. HOST_OS := linux
  21. endif
  22.  
  23. # Only use these compilers on linux host.
  24. ifeq ($(strip $(HOST_OS)),linux)
  25.  
  26. # Sabermod configs
  27. TARGET_SM_KERNEL := 4.9
  28. SIRIUS_THREADS := 4
  29. PRODUCT_THREADS := $(SIRIUS_THREADS)
  30. ENABLE_STRICT_ALIASING := true
  31. export LOCAL_O3 := true
  32.  
  33. LOCAL_DISABLE_STRICT_ALIASING := \
  34. libcrypto_static \
  35. gatt_testtool \
  36. libssh \
  37. ssh \
  38. libsurfaceflinger \
  39. libOmxVenc \
  40. lsof
  41.  
  42. LOCAL_DISABLE_GRAPHITE := \
  43. libncurses
  44.  
  45.  
  46. GRAPHITE_KERNEL_FLAGS := \
  47. -floop-parallelize-all \
  48. -ftree-parallelize-loops=$(PRODUCT_THREADS) \
  49. -fopenmp
  50.  
  51. ifneq ($(filter 5% 6%,$(TARGET_SM_AND)),)
  52. LOCAL_DISABLE_GRAPHITE := \
  53. camera.msm8974
  54. endif
  55. endif
  56.  
  57. # General flags for gcc 4.9 to allow compilation to complete.
  58. MAYBE_UNINITIALIZED := \
  59. hwcomposer.msm8974
  60.  
  61. # Extra SaberMod GCC C flags for arch target and Kernel
  62. export EXTRA_SABERMOD_GCC_VECTORIZE := \
  63. -ftree-vectorize \
  64. -mvectorize-with-neon-quad
  65.  
  66. ifeq ($(strip $(ENABLE_STRICT_ALIASING)),true)
  67.  
  68. # Enable strict-aliasing kernel flags
  69. export CONFIG_MACH_MSM8974_SIRIUS_STRICT_ALIASING := y
  70.  
  71. # Check if something is already set in product/sm_products.mk
  72. ifndef LOCAL_DISABLE_STRICT_ALIASING
  73. LOCAL_DISABLE_STRICT_ALIASING := \
  74. libmmcamera_interface\
  75. camera.msm8974
  76. else
  77. LOCAL_DISABLE_STRICT_ALIASING += \
  78. libmmcamera_interface\
  79. camera.msm8974
  80. endif
  81. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement