blob: 38a192f997ffbaa6f61670da5f7b30f1d689c967 [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
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
46#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
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
73#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
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
Vojtech Bocek7cc278b2013-02-24 01:40:19 +0100106#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
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 \
149 src/superblocks/f2fs.c \
150 src/superblocks/gfs.c \
151 src/superblocks/hfs.c \
152 src/superblocks/highpoint_raid.c \
153 src/superblocks/hpfs.c \
154 src/superblocks/iso9660.c \
155 src/superblocks/isw_raid.c \
156 src/superblocks/jfs.c \
157 src/superblocks/jmicron_raid.c \
158 src/superblocks/linux_raid.c \
159 src/superblocks/lsi_raid.c \
160 src/superblocks/luks.c \
161 src/superblocks/lvm.c \
162 src/superblocks/minix.c \
163 src/superblocks/netware.c \
164 src/superblocks/nilfs.c \
165 src/superblocks/ntfs.c \
166 src/superblocks/nvidia_raid.c \
167 src/superblocks/ocfs.c \
168 src/superblocks/promise_raid.c \
169 src/superblocks/refs.c \
170 src/superblocks/reiserfs.c \
171 src/superblocks/romfs.c \
172 src/superblocks/silicon_raid.c \
173 src/superblocks/squashfs.c \
174 src/superblocks/superblocks.c \
175 src/superblocks/swap.c \
176 src/superblocks/sysv.c \
177 src/superblocks/ubifs.c \
178 src/superblocks/udf.c \
179 src/superblocks/ufs.c \
180 src/superblocks/vfat.c \
181 src/superblocks/via_raid.c \
182 src/superblocks/vmfs.c \
183 src/superblocks/vxfs.c \
184 src/superblocks/xfs.c \
185 src/superblocks/zfs.c \
186 src/topology/dm.c \
187 src/topology/evms.c \
188 src/topology/ioctl.c \
189 src/topology/lvm.c \
190 src/topology/md.c \
191 src/topology/sysfs.c \
192 src/topology/topology.c \
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500193
bigbiff7b4c7a62015-01-01 19:44:14 -0500194LOCAL_C_INCLUDES += $(LOCAL_PATH)/include \
Ethan Yonkerd6786b82015-01-05 09:01:29 -0600195 $(LOCAL_PATH)/src
bigbiff7b4c7a62015-01-01 19:44:14 -0500196
Ethan Yonkerd6786b82015-01-05 09:01:29 -0600197LOCAL_SHARED_LIBRARIES += libc libutil-linux
bigbiff bigbiffe60683a2013-02-22 20:55:50 -0500198include $(BUILD_SHARED_LIBRARY)