blob: 2ccbb596414692d5c2f96feb2a577eb89a8da687 (
plain)
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
|
LOCAL_PATH := $(call my-dir)
libext2fs_src_files := \
ext2_err.c \
alloc.c \
alloc_sb.c \
alloc_stats.c \
alloc_tables.c \
atexit.c \
badblocks.c \
bb_inode.c \
bitmaps.c \
bitops.c \
blkmap64_ba.c \
blkmap64_rb.c \
blknum.c \
block.c \
bmap.c \
check_desc.c \
crc16.c \
crc32c.c \
csum.c \
closefs.c \
dblist.c \
dblist_dir.c \
digest_encode.c \
dirblock.c \
dirhash.c \
dir_iterate.c \
dupfs.c \
expanddir.c \
ext_attr.c \
extent.c \
fallocate.c \
fileio.c \
finddev.c \
flushb.c \
freefs.c \
gen_bitmap.c \
gen_bitmap64.c \
get_num_dirs.c \
get_pathname.c \
getsize.c \
getsectsize.c \
i_block.c \
icount.c \
imager.c \
ind_block.c \
initialize.c \
inline.c \
inline_data.c \
inode.c \
io_manager.c \
ismounted.c \
link.c \
llseek.c \
lookup.c \
mmp.c \
mkdir.c \
mkjournal.c \
namei.c \
native.c \
newdir.c \
openfs.c \
progress.c \
punch.c \
qcow2.c \
rbtree.c \
read_bb.c \
read_bb_file.c \
res_gdt.c \
rw_bitmaps.c \
sha256.c \
sha512.c \
swapfs.c \
symlink.c \
undo_io.c \
unix_io.c \
sparse_io.c \
unlink.c \
valid_blk.c \
version.c
# get rid of this?!
libext2fs_src_files += test_io.c
libext2fs_shared_libraries := \
libext2_com_err \
libext2_uuid
libext2fs_system_shared_libraries := libc
libext2fs_static_libraries := \
libext2_com_err \
libext2_uuid_static
libext2fs_system_static_libraries := libc
libext2fs_c_includes := external/e2fsprogs/lib
libext2fs_cflags := -O2 -g -W -Wall -Wno-unused-parameter
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext2fs_src_files)
LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2fs_system_shared_libraries)
LOCAL_SHARED_LIBRARIES := $(libext2fs_shared_libraries) libsparse libz
LOCAL_C_INCLUDES := $(libext2fs_c_includes)
LOCAL_EXPORT_C_INCLUDE_DIRS := $(libext2fs_c_includes)
LOCAL_CFLAGS := $(libext2fs_cflags)
LOCAL_MODULE := libext2fs
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext2fs_src_files)
LOCAL_STATIC_LIBRARIES := $(libext2fs_static_libraries) $(libext2fs_system_static_libraries) libsparse libz
LOCAL_C_INCLUDES := $(libext2fs_c_includes)
LOCAL_EXPORT_C_INCLUDE_DIRS := $(libext2fs_c_includes)
LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
LOCAL_MODULE := libext2fs
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext2fs_src_files)
LOCAL_WHOLE_STATIC_LIBRARIES := libext2_com_err-host
LOCAL_STATIC_LIBRARIES := libsparse libz
LOCAL_C_INCLUDES := $(libext2fs_c_includes)
LOCAL_EXPORT_C_INCLUDE_DIRS := $(libext2fs_c_includes)
LOCAL_CFLAGS := $(libext2fs_cflags)
LOCAL_MODULE := libext2fs-host
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_HOST_OS := darwin linux windows
LOCAL_CFLAGS_windows := -isystem external/e2fsprogs/include/nonunix -Wno-format
LOCAL_LDLIBS_windows := -lws2_32
include $(BUILD_HOST_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext2fs_src_files)
LOCAL_WHOLE_STATIC_LIBRARIES := libext2_com_err-host
LOCAL_STATIC_LIBRARIES := libsparse libz
LOCAL_C_INCLUDES := $(libext2fs_c_includes)
LOCAL_EXPORT_C_INCLUDE_DIRS := $(libext2fs_c_includes)
LOCAL_CFLAGS := $(libext2fs_cflags) $(libext2fs_cflags_linux)
LOCAL_MODULE := libext2fs-host
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_HOST_OS := darwin linux windows
LOCAL_CFLAGS_windows := -isystem external/e2fsprogs/include/nonunix -Wno-format
LOCAL_LDLIBS_windows := -lws2_32
include $(BUILD_HOST_STATIC_LIBRARY)
|