diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-17 07:19:39 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-17 07:19:39 +0000 |
commit | 7280e8a2b0fea40ed8a6bdb6e12a072a272eb831 (patch) | |
tree | 0aa714114d62903a9a8e0aeaae7fcd224775532a | |
parent | aaa2d76c29d9cda36b14729220b0a1b730d1874b (diff) | |
parent | 57ec8af8e30615d9d3a175a72e9bbcf97c0cb1b1 (diff) | |
download | sg3_utils-7280e8a2b0fea40ed8a6bdb6e12a072a272eb831.tar.gz |
Snap for 9415569 from 57ec8af8e30615d9d3a175a72e9bbcf97c0cb1b1 to udc-d1-release
Change-Id: I3f72d5e467af68998caa4326f8fd46edc2effc48
-rw-r--r-- | Android.bp | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp new file mode 100644 index 00000000..ec32bdae --- /dev/null +++ b/Android.bp @@ -0,0 +1,82 @@ +// Copyright 2022 The Android Open Source Project + +package { + default_applicable_licenses: ["LICENSE"], +} + +// See also https://spdx.org/licenses/ +license { + name: "LICENSE", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-BSD-2-Clause", + "SPDX-license-identifier-BSD-2-Clause-NetBSD", + "SPDX-license-identifier-BSD-3-Clause", + "SPDX-license-identifier-GPL-2.0-only", + "SPDX-license-identifier-GPL-2.0-or-later", + "SPDX-license-identifier-GPL-3.0-or-later", + ], + license_text: [ + "LICENSE", + "COPYING", + ], +} + +cc_defaults { + name: "sg3_utils-defaults", + cflags: [ + "-D_FILE_OFFSET_BITS=64", + "-D_LARGEFILE64_SOURCE", + "-Wextra", + "-Wall", + "-Werror", + ], + local_include_dirs: [ + "include", + ], + // Core only. See also https://source.android.com/docs/core/architecture/bootloader/partitions/product-interfaces. + system_ext_specific: true, + target: { + host: { + enabled: false, + }, + windows: { + enabled: false, + }, + }, +} + +cc_library { + name: "libsgutils2", + defaults: ["sg3_utils-defaults"], + srcs: [ + "lib/sg_lib.c", + "lib/sg_pr2serr.c", + "lib/sg_lib_data.c", + "lib/sg_lib_names.c", + "lib/sg_cmds_basic.c", + "lib/sg_cmds_basic2.c", + "lib/sg_cmds_extra.c", + "lib/sg_cmds_mmc.c", + "lib/sg_pt_common.c", + "lib/sg_json_builder.c", + // Linux only. + "lib/sg_pt_linux.c", + "lib/sg_io_linux.c", + "lib/sg_pt_linux_nvme.c", + ], +} + +cc_binary { + name: "sg_read_buffer", + defaults: ["sg3_utils-defaults"], + srcs: ["src/sg_read_buffer.c"], + shared_libs: ["libsgutils2"], +} + +cc_binary { + name: "sg_write_buffer", + defaults: ["sg3_utils-defaults"], + srcs: ["src/sg_write_buffer.c"], + shared_libs: ["libsgutils2"], +} |