diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-17 04:21:03 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-12-17 04:21:03 +0000 |
commit | 57ec8af8e30615d9d3a175a72e9bbcf97c0cb1b1 (patch) | |
tree | 0aa714114d62903a9a8e0aeaae7fcd224775532a | |
parent | 80d89c7bde7ea961f5e256c93756da3ded3ad967 (diff) | |
parent | 04f14b861890325b19642277fab2ed6c252cb632 (diff) | |
download | sg3_utils-57ec8af8e30615d9d3a175a72e9bbcf97c0cb1b1.tar.gz |
Snap for 9414774 from 04f14b861890325b19642277fab2ed6c252cb632 to udc-release
Change-Id: I808ebef0d683806b775fe42097b4a152e761cec5
-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"], +} |