-
Notifications
You must be signed in to change notification settings - Fork 10
/
Android.mk
195 lines (151 loc) · 4.22 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
LOCAL_PATH:= $(call my-dir)
S:=dist/src/libudev
libudev_common_src_files := \
$(S)/libudev-device-private.c \
$(S)/libudev-device.c \
$(S)/libudev-enumerate.c \
$(S)/libudev-hwdb.c \
$(S)/libudev-list.c \
$(S)/libudev-monitor.c \
$(S)/libudev-queue-private.c \
$(S)/libudev-queue.c \
$(S)/libudev-util.c \
$(S)/libudev.c \
$(S)/../shared/conf-files.c \
$(S)/../shared/dev-setup.c \
$(S)/../shared/env-util.c \
$(S)/../shared/fileio.c \
$(S)/../shared/hashmap.c \
$(S)/../shared/exit-status.c \
$(S)/../shared/label.c \
$(S)/../shared/mkdir.c \
$(S)/../shared/path-util.c \
$(S)/../shared/set.c \
$(S)/../shared/strbuf.c \
$(S)/../shared/strv.c \
$(S)/../shared/strxcpyx.c \
$(S)/../shared/time-util.c \
$(S)/../shared/utf8.c \
$(S)/../shared/util.c \
android/glob.c \
android/log.c \
android/missing.c
libudev_common_c_includes := \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
$(LOCAL_PATH)/dist/src/shared \
$(LOCAL_PATH)/dist/src/systemd \
libudev_common_c_flags := \
-Wno-missing-field-initializers \
-Wno-unknown-attributes \
-std=gnu99 \
-include $(LOCAL_PATH)/android/udev.h
### libudev.so
include $(CLEAR_VARS)
S:=dist/src/libudev
LOCAL_SRC_FILES:= \
$(libudev_common_src_files)
LOCAL_C_INCLUDES += \
$(libudev_common_c_includes)
LOCAL_CFLAGS += \
$(libudev_common_c_flags)
LOCAL_SHARED_LIBRARIES += libcutils
LOCAL_LDLIBS := -llog
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_MODULE:= libudev
LOCAL_MODULE_TAGS := optional
LOCAL_PRELINK_MODULE:= false
include $(BUILD_SHARED_LIBRARY)
### libudev.a
include $(CLEAR_VARS)
S:=dist/src/libudev
LOCAL_SRC_FILES:= \
$(libudev_common_src_files)
LOCAL_C_INCLUDES += \
$(libudev_common_c_includes)
LOCAL_CFLAGS += \
$(libudev_common_c_flags)
LOCAL_MODULE:= libudev
LOCAL_MODULE_TAGS := optional
LOCAL_PRELINK_MODULE:= false
include $(BUILD_STATIC_LIBRARY)
### udevadm
include $(CLEAR_VARS)
S:=dist/src/udev
LOCAL_SRC_FILES:= \
$(S)/udev-ctrl.c \
$(S)/udev-builtin.c \
$(S)/udev-builtin-btrfs.c \
$(S)/udev-builtin-hwdb.c \
$(S)/udev-builtin-input_id.c \
$(S)/udev-builtin-keyboard.c \
$(S)/udev-builtin-net_id.c \
$(S)/udev-builtin-path_id.c \
$(S)/udev-builtin-usb_id.c \
$(S)/udev-event.c \
$(S)/udev-node.c \
$(S)/udev-rules.c \
$(S)/udev-watch.c \
$(S)/udevadm.c \
$(S)/udevadm-control.c \
$(S)/udevadm-hwdb.c \
$(S)/udevadm-info.c \
$(S)/udevadm-monitor.c \
$(S)/udevadm-settle.c \
$(S)/udevadm-test.c \
$(S)/udevadm-test-builtin.c \
$(S)/udevadm-trigger.c \
android/qsortr.c
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
$(LOCAL_PATH)/dist/src/shared \
$(LOCAL_PATH)/dist/src/systemd \
$(LOCAL_PATH)/dist/src/libudev \
LOCAL_CFLAGS += -Wno-missing-field-initializers
LOCAL_CFLAGS += -std=gnu99
LOCAL_CFLAGS += -include $(LOCAL_PATH)/android/udev.h
LOCAL_CFLAGS += -DVERSION=\"$(shell head -n 1 $(LOCAL_PATH)/VERSION)\"
LOCAL_STATIC_LIBRARIES := libudev libcutils liblog libc
LOCAL_MODULE := udevadm
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)/sbin
#include $(BUILD_EXECUTABLE)
### udevd
include $(CLEAR_VARS)
S:=dist/src/udev
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/android \
$(LOCAL_PATH)/dist/src/shared \
$(LOCAL_PATH)/dist/src/systemd \
$(LOCAL_PATH)/dist/src/libudev \
LOCAL_SRC_FILES:= \
$(S)/udevd.c \
$(S)/udev-builtin.c \
$(S)/udev-builtin-btrfs.c \
$(S)/udev-builtin-firmware.c \
$(S)/udev-builtin-hwdb.c \
$(S)/udev-builtin-input_id.c \
$(S)/udev-builtin-keyboard.c \
$(S)/udev-builtin-net_id.c \
$(S)/udev-builtin-path_id.c \
$(S)/udev-builtin-usb_id.c \
$(S)/udev-ctrl.c \
$(S)/udev-event.c \
$(S)/udev-node.c \
$(S)/udev-rules.c \
$(S)/udev-watch.c
LOCAL_CFLAGS += -Wno-missing-field-initializers
LOCAL_CFLAGS += -std=gnu99
LOCAL_CFLAGS += -include $(LOCAL_PATH)/android/udev.h
LOCAL_CFLAGS += -DVERSION=\"$(shell head -n 1 $(LOCAL_PATH)/VERSION)\"
LOCAL_STATIC_LIBRARIES := libudev libcutils liblog libc
LOCAL_MODULE := udevd
LOCAL_MODULE_TAGS := optional
LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)/sbin
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)/sbin
#include $(BUILD_EXECUTABLE)