2017-01-13 01:48:04 +08:00
|
|
|
// Copyright 2017 The Android Open Source Project
|
|
|
|
|
|
|
|
//##########################################################################
|
|
|
|
// Build e2fsdroid
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "e2fsdroid",
|
|
|
|
host_supported: true,
|
2018-06-20 13:21:54 +08:00
|
|
|
recovery_available: true,
|
2018-02-27 02:54:20 +08:00
|
|
|
defaults: ["e2fsprogs-defaults"],
|
2017-01-13 01:48:04 +08:00
|
|
|
|
|
|
|
srcs: [
|
|
|
|
"e2fsdroid.c",
|
|
|
|
"block_range.c",
|
|
|
|
"fsmap.c",
|
|
|
|
"block_list.c",
|
|
|
|
"base_fs.c",
|
|
|
|
"perms.c",
|
|
|
|
"basefs_allocator.c",
|
|
|
|
],
|
2017-07-13 04:29:38 +08:00
|
|
|
target: {
|
|
|
|
host: {
|
|
|
|
static_libs: [
|
|
|
|
"libext2_com_err",
|
|
|
|
"libext2_misc",
|
|
|
|
"libext2fs",
|
|
|
|
"libsparse",
|
|
|
|
"libz",
|
|
|
|
"libcutils",
|
|
|
|
"libbase",
|
|
|
|
"libselinux",
|
|
|
|
"libcrypto",
|
|
|
|
"liblog",
|
|
|
|
],
|
2017-10-28 02:44:15 +08:00
|
|
|
sanitize: {
|
|
|
|
address: false, // http://b/68387795 - heap overflow in e2fsdroid
|
|
|
|
},
|
2017-07-13 04:29:38 +08:00
|
|
|
},
|
|
|
|
android: {
|
|
|
|
shared_libs: [
|
|
|
|
"libext2fs",
|
|
|
|
"libext2_com_err",
|
|
|
|
"libext2_misc",
|
|
|
|
"libcutils",
|
|
|
|
"libbase",
|
|
|
|
"libselinux",
|
|
|
|
"libcrypto",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
stl: "libc++_static",
|
2017-01-13 01:48:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
//##########################################################################
|
|
|
|
// Build ext2simg
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "ext2simg",
|
|
|
|
host_supported: true,
|
2018-02-27 02:54:20 +08:00
|
|
|
defaults: ["e2fsprogs-defaults"],
|
2017-01-13 01:48:04 +08:00
|
|
|
|
|
|
|
srcs: ["ext2simg.c"],
|
|
|
|
shared_libs: [
|
|
|
|
"libext2fs",
|
|
|
|
"libext2_com_err",
|
|
|
|
"libsparse",
|
2017-09-28 07:11:57 +08:00
|
|
|
"libz",
|
2017-01-13 01:48:04 +08:00
|
|
|
],
|
|
|
|
}
|