mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-27 12:04:43 +08:00
722b9ca4ca
The two utilities are now converted to dynamic executables as shared libraries are supported in recovery mode. As part of the conversion, shared libraries that are depended from them are also marked as recovery_available: true. Bug: 79146551 Test: adb reboot recovery, and select 'Wipe data/factory reset'. The data partition is formatted and there is no selinux denial. Signed-off-by: Theodore Ts'o <tytso@mit.edu> Change-Id: I22fbc83a4ff0496096efca90721b0db1237c32cd From AOSP commit: df1f088849ed3336bb4f6f200c29b30682f15948
70 lines
1.6 KiB
Plaintext
70 lines
1.6 KiB
Plaintext
// Copyright 2017 The Android Open Source Project
|
|
|
|
//##########################################################################
|
|
// Build e2fsdroid
|
|
|
|
cc_binary {
|
|
name: "e2fsdroid",
|
|
host_supported: true,
|
|
recovery_available: true,
|
|
defaults: ["e2fsprogs-defaults"],
|
|
|
|
srcs: [
|
|
"e2fsdroid.c",
|
|
"block_range.c",
|
|
"fsmap.c",
|
|
"block_list.c",
|
|
"base_fs.c",
|
|
"perms.c",
|
|
"basefs_allocator.c",
|
|
],
|
|
target: {
|
|
host: {
|
|
static_libs: [
|
|
"libext2_com_err",
|
|
"libext2_misc",
|
|
"libext2fs",
|
|
"libsparse",
|
|
"libz",
|
|
"libcutils",
|
|
"libbase",
|
|
"libselinux",
|
|
"libcrypto",
|
|
"liblog",
|
|
],
|
|
sanitize: {
|
|
address: false, // http://b/68387795 - heap overflow in e2fsdroid
|
|
},
|
|
},
|
|
android: {
|
|
shared_libs: [
|
|
"libext2fs",
|
|
"libext2_com_err",
|
|
"libext2_misc",
|
|
"libcutils",
|
|
"libbase",
|
|
"libselinux",
|
|
"libcrypto",
|
|
],
|
|
},
|
|
},
|
|
stl: "libc++_static",
|
|
}
|
|
|
|
//##########################################################################
|
|
// Build ext2simg
|
|
|
|
cc_binary {
|
|
name: "ext2simg",
|
|
host_supported: true,
|
|
defaults: ["e2fsprogs-defaults"],
|
|
|
|
srcs: ["ext2simg.c"],
|
|
shared_libs: [
|
|
"libext2fs",
|
|
"libext2_com_err",
|
|
"libsparse",
|
|
"libz",
|
|
],
|
|
}
|