blob: bc797a21f3322c9cd2953625b212ce570c39b643 [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
bigbiffad58e1b2020-07-06 20:24:34 -04007#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/
Ethan Yonker58f21322018-08-24 11:17:36 -05008LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
9LOCAL_CFLAGS += -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-format -Wno-pointer-arith
bigbiff7b4c7a62015-01-01 19:44:14 -050010LOCAL_SRC_FILES = lib/at.c \
11 lib/blkdev.c \
12 lib/canonicalize.c \
13 lib/colors.c \
14 lib/crc32.c \
15 lib/crc64.c \
16 lib/env.c \
17 lib/exec_shell.c \
18 lib/fileutils.c \
19 lib/ismounted.c \
20 lib/langinfo.c \
21 lib/linux_version.c \
22 lib/loopdev.c \
23 lib/mangle.c \
24 lib/match.c \
25 lib/mbsalign.c \
26 lib/md5.c \
27 lib/pager.c \
28 lib/path.c \
29 lib/procutils.c \
30 lib/randutils.c \
31 lib/setproctitle.c \
32 lib/strutils.c \
33 lib/sysfs.c \
34
Ethan Yonkerd6786b82015-01-05 09:01:29 -060035LOCAL_C_INCLUDES += \
bigbiff7b4c7a62015-01-01 19:44:14 -050036 $(LOCAL_PATH)/include \
Ethan Yonkerd6786b82015-01-05 09:01:29 -060037 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -050038
39LOCAL_SHARED_LIBRARIES += libc
40include $(BUILD_SHARED_LIBRARY)
41
42include $(CLEAR_VARS)
43
44LOCAL_MODULE := libuuid
45LOCAL_MODULE_TAGS := optional
bigbiffad58e1b2020-07-06 20:24:34 -040046#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/
Andreas Schneider5a850bd2020-03-06 22:30:07 +010047LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC -DHAVE_SYS_FILE_H
Ethan Yonker58f21322018-08-24 11:17:36 -050048LOCAL_CFLAGS += -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-format -Wno-pointer-arith
bigbiff7b4c7a62015-01-01 19:44:14 -050049LOCAL_SRC_FILES = libuuid/src/clear.c \
50 libuuid/src/copy.c \
51 libuuid/src/isnull.c \
52 libuuid/src/parse.c \
53 libuuid/src/unpack.c \
54 libuuid/src/uuid_time.c \
55 libuuid/src/compare.c \
56 libuuid/src/gen_uuid.c \
57 libuuid/src/pack.c \
58 libuuid/src/test_uuid.c \
59 libuuid/src/unparse.c
60
61LOCAL_C_INCLUDES += $(LOCAL_PATH)/libuuid/src \
62 $(LOCAL_PATH)/include \
Ethan Yonkerd6786b82015-01-05 09:01:29 -060063 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -050064
65LOCAL_SHARED_LIBRARIES += libc libutil-linux
66
67include $(BUILD_SHARED_LIBRARY)
68
69include $(CLEAR_VARS)
70
71LOCAL_MODULE := libfdisk
72LOCAL_MODULE_TAGS := optional
bigbiffad58e1b2020-07-06 20:24:34 -040073#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/
Ethan Yonker58f21322018-08-24 11:17:36 -050074LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
75LOCAL_CFLAGS += -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-format -Wno-pointer-arith
bigbiff7b4c7a62015-01-01 19:44:14 -050076LOCAL_SRC_FILES = libfdisk/src/alignment.c \
77 libfdisk/src/context.c \
78 libfdisk/src/init.c \
79 libfdisk/src/partition.c \
80 libfdisk/src/sgi.c \
81 libfdisk/src/test.c \
82 libfdisk/src/ask.c \
83 libfdisk/src/dos.c \
84 libfdisk/src/iter.c \
85 libfdisk/src/parttype.c \
86 libfdisk/src/sun.c \
87 libfdisk/src/utils.c \
88 libfdisk/src/bsd.c \
89 libfdisk/src/gpt.c \
90 libfdisk/src/label.c \
91 libfdisk/src/script.c \
92 libfdisk/src/table.c
93
94LOCAL_C_INCLUDES += $(LOCAL_PATH)/libfdisk/src \
95 $(LOCAL_PATH)/include \
96 $(LOCAL_PATH)/libuuid/src \
Ethan Yonkerd6786b82015-01-05 09:01:29 -060097 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -050098
99LOCAL_SHARED_LIBRARIES += libc libutil-linux libuuid
100include $(BUILD_SHARED_LIBRARY)
101
102include $(CLEAR_VARS)
103
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500104LOCAL_MODULE := libblkid
105LOCAL_MODULE_TAGS := optional
bigbiffad58e1b2020-07-06 20:24:34 -0400106#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/
Ethan Yonker58f21322018-08-24 11:17:36 -0500107LOCAL_CFLAGS := -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
108LOCAL_CFLAGS += -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-format -Wno-pointer-arith
bigbiff7b4c7a62015-01-01 19:44:14 -0500109LOCAL_SRC_FILES = src/cache.c \
110 src/config.c \
111 src/dev.c \
112 src/devname.c \
113 src/devno.c \
114 src/encode.c \
115 src/evaluate.c \
116 src/getsize.c \
117 src/init.c \
118 src/llseek.c \
119 src/probe.c \
120 src/read.c \
121 src/resolve.c \
122 src/save.c \
123 src/tag.c \
124 src/verify.c \
125 src/version.c \
126 src/partitions/aix.c \
127 src/partitions/bsd.c \
128 src/partitions/dos.c \
129 src/partitions/gpt.c \
130 src/partitions/mac.c \
131 src/partitions/minix.c \
132 src/partitions/partitions.c \
133 src/partitions/sgi.c \
134 src/partitions/solaris_x86.c \
135 src/partitions/sun.c \
136 src/partitions/ultrix.c \
137 src/partitions/unixware.c \
138 src/superblocks/adaptec_raid.c \
139 src/superblocks/bcache.c \
140 src/superblocks/befs.c \
141 src/superblocks/bfs.c \
142 src/superblocks/btrfs.c \
143 src/superblocks/cramfs.c \
144 src/superblocks/ddf_raid.c \
145 src/superblocks/drbd.c \
146 src/superblocks/drbdproxy_datalog.c \
147 src/superblocks/exfat.c \
148 src/superblocks/ext.c \
Gao Xiang70b83292021-11-22 22:46:43 +0800149 src/superblocks/erofs.c \
bigbiff7b4c7a62015-01-01 19:44:14 -0500150 src/superblocks/f2fs.c \
151 src/superblocks/gfs.c \
152 src/superblocks/hfs.c \
153 src/superblocks/highpoint_raid.c \
154 src/superblocks/hpfs.c \
155 src/superblocks/iso9660.c \
156 src/superblocks/isw_raid.c \
157 src/superblocks/jfs.c \
158 src/superblocks/jmicron_raid.c \
159 src/superblocks/linux_raid.c \
160 src/superblocks/lsi_raid.c \
161 src/superblocks/luks.c \
162 src/superblocks/lvm.c \
163 src/superblocks/minix.c \
164 src/superblocks/netware.c \
165 src/superblocks/nilfs.c \
166 src/superblocks/ntfs.c \
167 src/superblocks/nvidia_raid.c \
168 src/superblocks/ocfs.c \
169 src/superblocks/promise_raid.c \
170 src/superblocks/refs.c \
171 src/superblocks/reiserfs.c \
172 src/superblocks/romfs.c \
173 src/superblocks/silicon_raid.c \
174 src/superblocks/squashfs.c \
175 src/superblocks/superblocks.c \
176 src/superblocks/swap.c \
177 src/superblocks/sysv.c \
178 src/superblocks/ubifs.c \
179 src/superblocks/udf.c \
180 src/superblocks/ufs.c \
181 src/superblocks/vfat.c \
182 src/superblocks/via_raid.c \
183 src/superblocks/vmfs.c \
184 src/superblocks/vxfs.c \
185 src/superblocks/xfs.c \
186 src/superblocks/zfs.c \
187 src/topology/dm.c \
188 src/topology/evms.c \
189 src/topology/ioctl.c \
190 src/topology/lvm.c \
191 src/topology/md.c \
192 src/topology/sysfs.c \
193 src/topology/topology.c \
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500194
bigbiff7b4c7a62015-01-01 19:44:14 -0500195LOCAL_C_INCLUDES += $(LOCAL_PATH)/include \
Ethan Yonkerd6786b82015-01-05 09:01:29 -0600196 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -0500197
Ethan Yonkerd6786b82015-01-05 09:01:29 -0600198LOCAL_SHARED_LIBRARIES += libc libutil-linux
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500199include $(BUILD_SHARED_LIBRARY)