codeworkx | 62f02ba | 2012-05-20 12:00:36 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2010 ARM Limited. All rights reserved. |
| 3 | # |
| 4 | # Copyright (C) 2008 The Android Open Source Project |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | |
| 18 | |
| 19 | LOCAL_PATH := $(call my-dir) |
| 20 | |
| 21 | # HAL module implemenation, not prelinked and stored in |
| 22 | # hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so |
| 23 | include $(CLEAR_VARS) |
| 24 | LOCAL_PRELINK_MODULE := false |
| 25 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 26 | LOCAL_SHARED_LIBRARIES := liblog libcutils libGLESv1_CM libGLES_mali libion |
| 27 | LOCAL_MODULE_TAGS := eng optional |
| 28 | |
| 29 | # Include the UMP header files |
| 30 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include |
| 31 | |
| 32 | LOCAL_SRC_FILES := \ |
| 33 | gralloc_module.cpp \ |
| 34 | alloc_device.cpp \ |
| 35 | framebuffer_device.cpp |
| 36 | |
| 37 | # For now we override arch and ABI values to allow us to work with a |
| 38 | # libmali that has been forced to armv7, eventually we can let android |
| 39 | # pick for us |
| 40 | |
| 41 | ifeq ($(TARGET_PRODUCT), armboard_v7a) |
| 42 | # Support for ARM platforms |
Daniel Hillenbrand | 353fecb | 2012-07-22 16:14:08 +0200 | [diff] [blame] | 43 | LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -DGRALLOC_16_BITS -DSTANDARD_LINUX_SCREEN \ |
codeworkx | 62f02ba | 2012-05-20 12:00:36 +0200 | [diff] [blame] | 44 | -march=armv7-a \ |
| 45 | -mfloat-abi=softfp |
| 46 | LOCAL_MODULE := gralloc.default |
| 47 | |
| 48 | else |
| 49 | #Default to goldfish |
Daniel Hillenbrand | 353fecb | 2012-07-22 16:14:08 +0200 | [diff] [blame] | 50 | LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -DSTANDARD_LINUX_SCREEN \ |
codeworkx | 62f02ba | 2012-05-20 12:00:36 +0200 | [diff] [blame] | 51 | -march=armv7-a \ |
| 52 | -mfloat-abi=softfp \ |
| 53 | -DVITHAR_HACK |
| 54 | |
| 55 | LOCAL_MODULE := gralloc.smdk5250 |
| 56 | endif |
| 57 | |
| 58 | |
| 59 | include $(BUILD_SHARED_LIBRARY) |