1package { 2 default_applicable_licenses: ["system_core_toolbox_license"], 3} 4 5// Added automatically by a large-scale-change 6// See: http://go/android-license-faq 7license { 8 name: "system_core_toolbox_license", 9 visibility: [":__subpackages__"], 10 license_kinds: [ 11 "SPDX-license-identifier-Apache-2.0", 12 ], 13 license_text: [ 14 "NOTICE", 15 ], 16} 17 18cc_defaults { 19 name: "toolbox_defaults", 20 cflags: [ 21 "-Werror", 22 "-Wno-unused-parameter", 23 "-Wno-unused-const-variable", 24 "-D_FILE_OFFSET_BITS=64", 25 ], 26} 27 28genrule { 29 name: "toolbox_input_labels", 30 tool_files: ["generate-input.h-labels.py"], 31 cmd: "$(location) $(in) >$(out)", 32 srcs: [":kernel_input_headers"], 33 out: ["input.h-labels.h"], 34} 35 36cc_defaults { 37 name: "toolbox_binary_defaults", 38 defaults: ["toolbox_defaults"], 39 srcs: [ 40 "toolbox.c", 41 "getevent.c", 42 "getprop.cpp", 43 "modprobe.cpp", 44 "setprop.cpp", 45 "start.cpp", 46 ], 47 generated_headers: [ 48 "toolbox_input_labels", 49 ], 50 shared_libs: [ 51 "libbase", 52 ], 53 static_libs: [ 54 "libmodprobe", 55 "libpropertyinfoparser", 56 ], 57 58 symlinks: [ 59 "getevent", 60 "getprop", 61 "modprobe", 62 "setprop", 63 "start", 64 "stop", 65 ], 66} 67 68cc_binary { 69 name: "toolbox", 70 defaults: ["toolbox_binary_defaults"], 71 recovery_available: true, 72} 73 74cc_binary { 75 name: "toolbox_vendor", 76 stem: "toolbox", 77 vendor: true, 78 defaults: ["toolbox_binary_defaults"], 79} 80