forked from projectceladon/pciutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroid.mk
40 lines (33 loc) · 1.08 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Makefile to build pciutils
# store the upper level directory
# so it can be restored later
PCIUTILS_LOCAL_PATH := $(call my-dir)
# include subdirectories (e.g. for libpci)
include $(call all-subdir-makefiles)
INCLUDES = $(LOCAL_PATH)
INCLUDES += $(LOCAL_PATH)/lib
INCLUDES += $(LOCAL_PATH)/include/pci
#INCLUDES += bionic/libc/include
#INCLUDES += bionic/libc/arch-x86/include
#INCLUDES += bionic/libc/kernel/common
#INCLUDES += bionic/libc/kernel/arch-x86
#INCLUDES += bionic/libm/include
LOCAL_PATH := $(PCIUTILS_LOCAL_PATH)
# lspci
include $(CLEAR_VARS)
LOCAL_MODULE:= lspci
LOCAL_MODULE_TAGS:= optional
LOCAL_MODULE_PATH:= $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_SRC_FILES:= lspci.c common.c ls-caps.c ls-ecaps.c ls-kernel.c ls-map.c ls-tree.c ls-vpd.c
LOCAL_C_INCLUDES:= $(INCLUDES)
LOCAL_STATIC_LIBRARIES:= libpci_static
include $(BUILD_EXECUTABLE)
# pci.ids
include $(CLEAR_VARS)
LOCAL_MODULE:= pci.ids
LOCAL_MODULE_CLASS:= ETC
LOCAL_MODULE_TAGS:= optional
LOCAL_MODULE_PATH:= $(TARGET_OUT_ETC)/pciutils
LOCAL_REQUIRED_MODULES:= pci.ids
LOCAL_SRC_FILES:= pci.ids
include $(BUILD_PREBUILT)