debugfs now links to a new libext2_support library, which only includes
cstring.c (Android separates other pieces of libsupport into separate
libraries).
e2fsck now builds with -Wno-unused-variable to work around an unused
variable introduced by
cabde4999d1d10b6ace32eaddc99699b91e40551.
libext_e2p builds the new ljs.c file, and links to ws2_32 on Windows for
ntohl().
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Change-Id: I42edce0478f1529f44acdbef1495ec5270e3a61e
From AOSP commit:
af14814afe0cb3389ecc4b9e9422bd7e8962e0ed
"libext2_quota",
"libext2_com_err",
"libext2_e2p",
+ "libext2_support",
]
cc_binary {
],
cflags: [
"-Wno-sign-compare",
- "-fno-strict-aliasing"
+ "-fno-strict-aliasing",
],
}
"getversion.c",
"hashstr.c",
"iod.c",
+ "ljs.c",
"ls.c",
"mntopts.c",
"parse_num.c",
"percent.c",
],
- cflags: ["-Wno-error=attributes"],
+ cflags: [
+ "-Wno-error=attributes",
+ "-Wno-unused-parameter",
+ ],
target: {
windows: {
enabled: true,
cflags: [
"-Wno-unused-variable",
- "-Wno-unused-parameter",
],
clang_cflags: [
"-Wno-error=typedef-redefinition",
],
+ host_ldlibs: [
+ "-lws2_32",
+ ],
},
},
export_include_dirs: ["."],
export_header_lib_headers: ["libext2-headers"],
}
+
+cc_library {
+ name: "libext2_support",
+ host_supported: true,
+ defaults: ["e2fsprogs-defaults"],
+
+ srcs: [
+ "cstring.c",
+ ],
+ header_libs: ["libext2-headers"],
+ export_include_dirs: ["."],
+}