1# 2# Copyright © 2011 Intel Corporation 3# 4# Permission is hereby granted, free of charge, to any person obtaining a 5# copy of this software and associated documentation files (the "Software"), 6# to deal in the Software without restriction, including without limitation 7# on the rights to use, copy, modify, merge, publish, distribute, sub 8# license, and/or sell copies of the Software, and to permit persons to whom 9# the Software is furnished to do so, subject to the following conditions: 10# 11# The above copyright notice and this permission notice (including the next 12# paragraph) shall be included in all copies or substantial portions of the 13# Software. 14# 15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 18# IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21# DEALINGS IN THE SOFTWARE. 22# 23 24ifndef BOARD_LIBPCIACCESS_HWDATA 25 BOARD_LIBPCIACCESS_HWDATA := external/hwids 26endif 27 28LOCAL_PATH := $(call my-dir) 29include $(CLEAR_VARS) 30 31LOCAL_MODULE := libpciaccess 32LOCAL_MODULE_TAGS := optional 33 34LOCAL_CFLAGS := \ 35 -DHAVE_INTTYPES_H \ 36 -DHAVE_STDINT_H \ 37 -DHAVE_STRINGS_H \ 38 -DHAVE_STRING_H \ 39 -Dlinux \ 40 -DPCIIDS_PATH=\"$(BOARD_LIBPCIACCESS_HWDATA)\" 41 42LOCAL_C_INCLUDES := \ 43 $(LOCAL_PATH)/include 44 45LOCAL_SRC_FILES := \ 46 src/common_bridge.c \ 47 src/common_capability.c \ 48 src/common_device_name.c \ 49 src/common_init.c \ 50 src/common_interface.c \ 51 src/common_io.c \ 52 src/common_iterator.c \ 53 src/common_map.c \ 54 src/common_vgaarb.c \ 55 src/linux_devmem.c \ 56 src/linux_sysfs.c 57 58include $(BUILD_SHARED_LIBRARY) 59 60