blob: ab20bf5edc16190558e11ac2dd5e8d275c0bfe3c [file] [log] [blame]
bigbiff bigbiffe60683a2013-02-22 20:55:50 -05001LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4
bigbiff7b4c7a62015-01-01 19:44:14 -05005LOCAL_MODULE := libutil-linux
6LOCAL_MODULE_TAGS := optional
7#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
8LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
9LOCAL_SRC_FILES = lib/at.c \
10 lib/blkdev.c \
11 lib/canonicalize.c \
12 lib/colors.c \
13 lib/crc32.c \
14 lib/crc64.c \
15 lib/env.c \
16 lib/exec_shell.c \
17 lib/fileutils.c \
18 lib/ismounted.c \
19 lib/langinfo.c \
20 lib/linux_version.c \
21 lib/loopdev.c \
22 lib/mangle.c \
23 lib/match.c \
24 lib/mbsalign.c \
25 lib/md5.c \
26 lib/pager.c \
27 lib/path.c \
28 lib/procutils.c \
29 lib/randutils.c \
30 lib/setproctitle.c \
31 lib/strutils.c \
32 lib/sysfs.c \
33
Ethan Yonkerd6786b82015-01-05 09:01:29 -060034LOCAL_C_INCLUDES += \
bigbiff7b4c7a62015-01-01 19:44:14 -050035 $(LOCAL_PATH)/include \
Ethan Yonkerd6786b82015-01-05 09:01:29 -060036 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -050037
38LOCAL_SHARED_LIBRARIES += libc
39include $(BUILD_SHARED_LIBRARY)
40
41include $(CLEAR_VARS)
42
43LOCAL_MODULE := libuuid
44LOCAL_MODULE_TAGS := optional
45#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
46LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
47LOCAL_SRC_FILES = libuuid/src/clear.c \
48 libuuid/src/copy.c \
49 libuuid/src/isnull.c \
50 libuuid/src/parse.c \
51 libuuid/src/unpack.c \
52 libuuid/src/uuid_time.c \
53 libuuid/src/compare.c \
54 libuuid/src/gen_uuid.c \
55 libuuid/src/pack.c \
56 libuuid/src/test_uuid.c \
57 libuuid/src/unparse.c
58
59LOCAL_C_INCLUDES += $(LOCAL_PATH)/libuuid/src \
60 $(LOCAL_PATH)/include \
Ethan Yonkerd6786b82015-01-05 09:01:29 -060061 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -050062
63LOCAL_SHARED_LIBRARIES += libc libutil-linux
64
65include $(BUILD_SHARED_LIBRARY)
66
67include $(CLEAR_VARS)
68
69LOCAL_MODULE := libfdisk
70LOCAL_MODULE_TAGS := optional
71#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
72LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
73LOCAL_SRC_FILES = libfdisk/src/alignment.c \
74 libfdisk/src/context.c \
75 libfdisk/src/init.c \
76 libfdisk/src/partition.c \
77 libfdisk/src/sgi.c \
78 libfdisk/src/test.c \
79 libfdisk/src/ask.c \
80 libfdisk/src/dos.c \
81 libfdisk/src/iter.c \
82 libfdisk/src/parttype.c \
83 libfdisk/src/sun.c \
84 libfdisk/src/utils.c \
85 libfdisk/src/bsd.c \
86 libfdisk/src/gpt.c \
87 libfdisk/src/label.c \
88 libfdisk/src/script.c \
89 libfdisk/src/table.c
90
91LOCAL_C_INCLUDES += $(LOCAL_PATH)/libfdisk/src \
92 $(LOCAL_PATH)/include \
93 $(LOCAL_PATH)/libuuid/src \
Ethan Yonkerd6786b82015-01-05 09:01:29 -060094 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -050095
96LOCAL_SHARED_LIBRARIES += libc libutil-linux libuuid
97include $(BUILD_SHARED_LIBRARY)
98
99include $(CLEAR_VARS)
100
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500101LOCAL_MODULE := libblkid
102LOCAL_MODULE_TAGS := optional
Vojtech Bocek7cc278b2013-02-24 01:40:19 +0100103#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
bigbiff7b4c7a62015-01-01 19:44:14 -0500104LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
105LOCAL_SRC_FILES = src/cache.c \
106 src/config.c \
107 src/dev.c \
108 src/devname.c \
109 src/devno.c \
110 src/encode.c \
111 src/evaluate.c \
112 src/getsize.c \
113 src/init.c \
114 src/llseek.c \
115 src/probe.c \
116 src/read.c \
117 src/resolve.c \
118 src/save.c \
119 src/tag.c \
120 src/verify.c \
121 src/version.c \
122 src/partitions/aix.c \
123 src/partitions/bsd.c \
124 src/partitions/dos.c \
125 src/partitions/gpt.c \
126 src/partitions/mac.c \
127 src/partitions/minix.c \
128 src/partitions/partitions.c \
129 src/partitions/sgi.c \
130 src/partitions/solaris_x86.c \
131 src/partitions/sun.c \
132 src/partitions/ultrix.c \
133 src/partitions/unixware.c \
134 src/superblocks/adaptec_raid.c \
135 src/superblocks/bcache.c \
136 src/superblocks/befs.c \
137 src/superblocks/bfs.c \
138 src/superblocks/btrfs.c \
139 src/superblocks/cramfs.c \
140 src/superblocks/ddf_raid.c \
141 src/superblocks/drbd.c \
142 src/superblocks/drbdproxy_datalog.c \
143 src/superblocks/exfat.c \
144 src/superblocks/ext.c \
145 src/superblocks/f2fs.c \
146 src/superblocks/gfs.c \
147 src/superblocks/hfs.c \
148 src/superblocks/highpoint_raid.c \
149 src/superblocks/hpfs.c \
150 src/superblocks/iso9660.c \
151 src/superblocks/isw_raid.c \
152 src/superblocks/jfs.c \
153 src/superblocks/jmicron_raid.c \
154 src/superblocks/linux_raid.c \
155 src/superblocks/lsi_raid.c \
156 src/superblocks/luks.c \
157 src/superblocks/lvm.c \
158 src/superblocks/minix.c \
159 src/superblocks/netware.c \
160 src/superblocks/nilfs.c \
161 src/superblocks/ntfs.c \
162 src/superblocks/nvidia_raid.c \
163 src/superblocks/ocfs.c \
164 src/superblocks/promise_raid.c \
165 src/superblocks/refs.c \
166 src/superblocks/reiserfs.c \
167 src/superblocks/romfs.c \
168 src/superblocks/silicon_raid.c \
169 src/superblocks/squashfs.c \
170 src/superblocks/superblocks.c \
171 src/superblocks/swap.c \
172 src/superblocks/sysv.c \
173 src/superblocks/ubifs.c \
174 src/superblocks/udf.c \
175 src/superblocks/ufs.c \
176 src/superblocks/vfat.c \
177 src/superblocks/via_raid.c \
178 src/superblocks/vmfs.c \
179 src/superblocks/vxfs.c \
180 src/superblocks/xfs.c \
181 src/superblocks/zfs.c \
182 src/topology/dm.c \
183 src/topology/evms.c \
184 src/topology/ioctl.c \
185 src/topology/lvm.c \
186 src/topology/md.c \
187 src/topology/sysfs.c \
188 src/topology/topology.c \
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500189
bigbiff7b4c7a62015-01-01 19:44:14 -0500190LOCAL_C_INCLUDES += $(LOCAL_PATH)/include \
Ethan Yonkerd6786b82015-01-05 09:01:29 -0600191 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -0500192
Ethan Yonkerd6786b82015-01-05 09:01:29 -0600193LOCAL_SHARED_LIBRARIES += libc libutil-linux
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500194include $(BUILD_SHARED_LIBRARY)