platform_system_core/libmodprobe/Android.bp
Kelvin Zhang bdd595f0f9 Allow libmodprobe to be used by host binaries
Cuttlefish tooling need libmodprobe to determine if a kernel module is
signed.

Bug: 273752147
Test: th
Change-Id: Icea49802d032b27bd89ed8f0bee1bc4814298774
2023-03-29 15:29:02 -07:00

37 lines
732 B
Text

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libmodprobe",
cflags: [
"-Werror",
],
vendor_available: true,
ramdisk_available: true,
recovery_available: true,
host_supported: true,
srcs: [
"libmodprobe.cpp",
"libmodprobe_ext.cpp",
],
shared_libs: [
"libbase",
],
export_include_dirs: ["include/"],
}
cc_test {
name: "libmodprobe_tests",
cflags: ["-Werror"],
shared_libs: [
"libbase",
],
local_include_dirs: ["include/"],
srcs: [
"libmodprobe_test.cpp",
"libmodprobe.cpp",
"libmodprobe_ext_test.cpp",
],
test_suites: ["device-tests"],
}