2021-02-17 04:02:14 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["system_core_toolbox_license"],
|
|
|
|
}
|
|
|
|
|
|
|
|
// Added automatically by a large-scale-change
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
license {
|
|
|
|
name: "system_core_toolbox_license",
|
|
|
|
visibility: [":__subpackages__"],
|
|
|
|
license_kinds: [
|
|
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
|
|
],
|
|
|
|
license_text: [
|
|
|
|
"NOTICE",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2018-01-08 22:50:55 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "toolbox_defaults",
|
|
|
|
cflags: [
|
|
|
|
"-Werror",
|
|
|
|
"-Wno-unused-parameter",
|
|
|
|
"-Wno-unused-const-variable",
|
2018-01-23 01:15:55 +01:00
|
|
|
"-D_FILE_OFFSET_BITS=64",
|
2017-05-23 03:08:02 +02:00
|
|
|
],
|
2018-01-08 22:50:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
genrule {
|
|
|
|
name: "toolbox_input_labels",
|
|
|
|
tool_files: ["generate-input.h-labels.py"],
|
|
|
|
cmd: "$(location) $(in) >$(out)",
|
|
|
|
srcs: [":kernel_input_headers"],
|
|
|
|
out: ["input.h-labels.h"],
|
|
|
|
}
|
|
|
|
|
2018-01-09 22:20:08 +01:00
|
|
|
cc_defaults {
|
|
|
|
name: "toolbox_binary_defaults",
|
2018-01-08 22:50:55 +01:00
|
|
|
defaults: ["toolbox_defaults"],
|
|
|
|
srcs: [
|
|
|
|
"toolbox.c",
|
|
|
|
"getevent.c",
|
2018-01-02 20:50:16 +01:00
|
|
|
"getprop.cpp",
|
2019-07-30 20:53:15 +02:00
|
|
|
"modprobe.cpp",
|
2019-06-05 19:26:54 +02:00
|
|
|
"setprop.cpp",
|
|
|
|
"start.cpp",
|
2018-01-08 22:50:55 +01:00
|
|
|
],
|
|
|
|
generated_headers: [
|
|
|
|
"toolbox_input_labels",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
2018-01-02 20:50:16 +01:00
|
|
|
"libbase",
|
2018-01-08 22:50:55 +01:00
|
|
|
],
|
2019-07-30 20:53:15 +02:00
|
|
|
static_libs: [
|
|
|
|
"libmodprobe",
|
|
|
|
"libpropertyinfoparser",
|
|
|
|
],
|
2018-01-08 22:50:55 +01:00
|
|
|
|
|
|
|
symlinks: [
|
|
|
|
"getevent",
|
2018-01-02 20:50:16 +01:00
|
|
|
"getprop",
|
2019-07-30 20:53:15 +02:00
|
|
|
"modprobe",
|
2019-06-05 19:26:54 +02:00
|
|
|
"setprop",
|
|
|
|
"start",
|
|
|
|
"stop",
|
2018-01-08 22:50:55 +01:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2018-01-09 22:20:08 +01:00
|
|
|
cc_binary {
|
|
|
|
name: "toolbox",
|
|
|
|
defaults: ["toolbox_binary_defaults"],
|
2018-05-29 09:41:30 +02:00
|
|
|
recovery_available: true,
|
2018-01-09 22:20:08 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
cc_binary {
|
|
|
|
name: "toolbox_vendor",
|
|
|
|
stem: "toolbox",
|
|
|
|
vendor: true,
|
|
|
|
defaults: ["toolbox_binary_defaults"],
|
|
|
|
}
|