[LSC] Add LOCAL_LICENSE_KINDS to system/core

Added SPDX-license-identifier-Apache-2.0 to:
  bootstat/Android.bp
  cli-test/Android.bp
  code_coverage/Android.bp
  cpio/Android.bp
  debuggerd/crasher/Android.bp
  debuggerd/proto/Android.bp
  diagnose_usb/Android.bp
  fs_mgr/libdm/Android.bp
  fs_mgr/libfiemap/Android.bp
  fs_mgr/liblp/Android.bp
  fs_mgr/libsnapshot/Android.bp
  fs_mgr/libstorage_literals/Android.bp
  fs_mgr/libvbmeta/Android.bp
  fs_mgr/tests/Android.bp
  fs_mgr/tools/Android.bp
  gatekeeperd/Android.bp
  healthd/Android.bp
  healthd/testdata/Android.bp
  init/Android.bp
  init/Android.mk
  init/sysprop/Android.bp
  init/test_kill_services/Android.bp
  init/test_service/Android.bp
  libappfuse/Android.bp
  libasyncio/Android.bp
  libbinderwrapper/Android.bp
  libcrypto_utils/Android.bp
  libcrypto_utils/tests/Android.bp
  libdiskconfig/Android.bp
  libgrallocusage/Android.bp
  libkeyutils/mini_keyctl/Android.bp
  libmodprobe/Android.bp
  libnetutils/Android.bp
  libpackagelistparser/Android.bp
  libprocessgroup/Android.bp
  libprocessgroup/cgrouprc/Android.bp
  libprocessgroup/cgrouprc_format/Android.bp
  libprocessgroup/profiles/Android.bp
  libprocessgroup/setup/Android.bp
  libqtaguid/Android.bp
  libsparse/Android.bp
  libstats/push_compat/Android.bp
  libsuspend/Android.bp
  libsync/Android.bp
  libsystem/Android.bp
  libsysutils/Android.bp
  libusbhost/Android.bp
  libutils/Android.bp
  libvndksupport/Android.bp
  libvndksupport/tests/Android.bp
  llkd/Android.bp
  llkd/tests/Android.bp
  property_service/libpropertyinfoparser/Android.bp
  property_service/libpropertyinfoserializer/Android.bp
  property_service/property_info_checker/Android.bp
  qemu_pipe/Android.bp
  reboot/Android.bp
  rootdir/Android.bp
  rootdir/Android.mk
  rootdir/avb/Android.bp
  rootdir/avb/Android.mk
  run-as/Android.bp
  sdcard/Android.bp
  set-verity-state/Android.bp
  shell_and_utilities/Android.bp
  storaged/Android.bp
  toolbox/Android.bp
  trusty/apploader/Android.bp
  trusty/confirmationui/Android.bp
  trusty/confirmationui/fuzz/Android.bp
  trusty/coverage/Android.bp
  trusty/fuzz/Android.bp
  trusty/fuzz/test/Android.bp
  trusty/gatekeeper/Android.bp
  trusty/gatekeeper/fuzz/Android.bp
  trusty/keymaster/Android.bp
  trusty/keymaster/fuzz/Android.bp
  trusty/libtrusty/Android.bp
  trusty/libtrusty/tipc-test/Android.bp
  trusty/secure_dpu/Android.bp
  trusty/storage/interface/Android.bp
  trusty/storage/lib/Android.bp
  trusty/storage/proxy/Android.bp
  trusty/storage/tests/Android.bp
  trusty/utils/spiproxyd/Android.bp
  trusty/utils/trusty-ut-ctrl/Android.bp
  usbd/Android.bp
  watchdogd/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  debuggerd/Android.bp
  fastboot/Android.bp
  libkeyutils/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT
to:
  libcutils/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
to:
  fs_mgr/Android.bp
  fs_mgr/libfs_avb/Android.bp
  trusty/Android.bp
  trusty/utils/rpmb_dev/Android.bp

Added SPDX-license-identifier-BSD
to:
  fastboot/fuzzy_fastboot/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Id740a7d2884556081fdb68876584b25eb95e1bef
This commit is contained in:
Bob Badour 2021-02-16 19:02:14 -08:00
parent d57652f15b
commit d69ad69a93
97 changed files with 695 additions and 2 deletions

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
bootstat_lib_src_files = [
"boot_event_record_store.cpp",
]

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "cli-test",
host_supported: true,

View File

@ -1,4 +1,8 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
prebuilt_etc {
name: "code_coverage.policy",
sub_dir: "seccomp_policy",

View File

@ -1,5 +1,9 @@
// Copyright 2005 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary_host {
name: "mkbootfs",
srcs: ["mkbootfs.c"],

View File

@ -1,3 +1,31 @@
package {
default_applicable_licenses: ["system_core_debuggerd_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "system_core_debuggerd_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
],
// large-scale-change unable to identify any license_text files
}
cc_defaults {
name: "debuggerd_defaults",
cflags: [

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "crasher-defaults",

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
filegroup {
name: "libtombstone_proto-src",
srcs: ["tombstone.proto"],

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libdiagnose_usb",
cflags: ["-Wall", "-Wextra", "-Werror"],

View File

@ -14,6 +14,34 @@
// This is required because no Android.bp can include a library defined in an
// Android.mk. Eventually should kill libfastboot (defined in Android.mk)
package {
default_applicable_licenses: ["system_core_fastboot_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "system_core_fastboot_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
],
// large-scale-change unable to identify any license_text files
}
cc_library_host_static {
name: "libfastboot2",

View File

@ -1,3 +1,12 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_core_fastboot_license"
// to get the below license kinds:
// SPDX-license-identifier-BSD
default_applicable_licenses: ["system_core_fastboot_license"],
}
cc_test_host {
name: "fuzzy_fastboot",
compile_multilib: "first",

View File

@ -14,6 +14,34 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["system_core_fs_mgr_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "system_core_fs_mgr_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-MIT",
],
// large-scale-change unable to identify any license_text files
}
cc_defaults {
name: "fs_mgr_defaults",
sanitize: {

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libdm",
defaults: ["fs_mgr_defaults"],

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libfiemap_headers",
recovery_available: true,

View File

@ -14,6 +14,16 @@
// limitations under the License.
//
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_core_fs_mgr_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-MIT
default_applicable_licenses: ["system_core_fs_mgr_license"],
}
cc_library_static {
name: "libfs_avb",
defaults: ["fs_mgr_defaults"],

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
liblp_lib_deps = [
"libbase",
"liblog",

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "libsnapshot_defaults",
defaults: ["fs_mgr_defaults"],

View File

@ -1,4 +1,8 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libstorage_literals_headers",
host_supported: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
libvbmeta_lib_deps = [
"libbase",
"libcrypto",

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test {
name: "CtsFsMgrTestCases",
test_suites: [

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "dmctl",
srcs: ["dmctl.cpp"],

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "gatekeeperd",
cflags: [

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libhealthd_headers",
vendor_available: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
filegroup {
name: "libhealthd_charger_test_data",
srcs: ["**/*.*"],

View File

@ -14,6 +14,23 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["system_core_init_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "system_core_init_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
init_common_sources = [
"action.cpp",
"action_manager.cpp",

View File

@ -64,6 +64,9 @@ LOCAL_SRC_FILES := \
util.cpp \
LOCAL_MODULE := init_first_stage
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
LOCAL_MODULE_STEM := init
LOCAL_FORCE_STATIC_EXECUTABLE := true
@ -137,6 +140,9 @@ endif
include $(CLEAR_VARS)
LOCAL_MODULE := init_system
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
LOCAL_REQUIRED_MODULES := \
init_second_stage \
@ -145,6 +151,9 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS)
LOCAL_MODULE := init_vendor
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
LOCAL_REQUIRED_MODULES := \
init_first_stage \

View File

@ -1,3 +1,12 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_core_init_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_core_init_license"],
}
sysprop_library {
name: "com.android.sysprop.init",
srcs: ["InitProperties.sysprop"],

View File

@ -1,3 +1,12 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_core_init_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_core_init_license"],
}
cc_test {
name: "init_kill_services_test",
srcs: ["init_kill_services_test.cpp"],

View File

@ -14,6 +14,15 @@
// limitations under the License.
//
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_core_init_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_core_init_license"],
}
cc_binary {
name: "test_service",
srcs: ["test_service.cpp"],

View File

@ -1,5 +1,9 @@
// Copyright 2016 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "libappfuse_defaults",
local_include_dirs: ["include"],

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "libasyncio_defaults",
cflags: [

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "libbinderwrapper_defaults",

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libcrypto_utils",
vendor_available: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test_host {
name: "libcrypto_utils_test",
srcs: ["android_pubkey_test.cpp"],

View File

@ -14,6 +14,37 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["system_core_libcutils_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "system_core_libcutils_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-MIT",
],
license_text: [
"NOTICE",
],
}
filegroup {
name: "android_filesystem_config_header",
srcs: ["include/private/android_filesystem_config.h"],

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libdiskconfig",
vendor_available: true,

View File

@ -12,6 +12,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["system_core_libgrallocusage_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "system_core_libgrallocusage_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_library {
name: "libgrallocusage",
vendor_available: true,

View File

@ -1,3 +1,31 @@
package {
default_applicable_licenses: ["system_core_libkeyutils_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "system_core_libkeyutils_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
],
// large-scale-change unable to identify any license_text files
}
cc_library {
name: "libkeyutils",
cflags: ["-Werror"],

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libmini_keyctl_static",
srcs: [

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libmodprobe",
cflags: [

View File

@ -1,3 +1,20 @@
package {
default_applicable_licenses: ["system_core_libnetutils_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "system_core_libnetutils_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_library_shared {
name: "libnetutils",
vendor_available: true,

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libpackagelistparser",
ramdisk_available: true,

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libprocessgroup_headers",
vendor_available: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libcgrouprc",
host_supported: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libcgrouprc_format",
host_supported: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
prebuilt_etc {
name: "cgroups.json",
src: "cgroups.json",

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_shared {
name: "libprocessgroup_setup",
recovery_available: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libqtaguid_headers",
vendor_available: false,

View File

@ -1,5 +1,9 @@
// Copyright 2010 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libsparse",
host_supported: true,

View File

@ -19,6 +19,10 @@
// protocols. This library should only be used by DNS resolver or other
// native modules on Q that log pushed atoms to statsd.
// =========================================================================
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "libstatspush_compat_defaults",
srcs: [
@ -65,4 +69,3 @@ cc_test {
],
static_libs: ["libgmock"],
}

View File

@ -1,5 +1,9 @@
// Copyright 2012 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libsuspend",
srcs: [

View File

@ -1,3 +1,20 @@
package {
default_applicable_licenses: ["system_core_libsync_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "system_core_libsync_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
ndk_headers {
name: "libsync_headers",
from: "include/ndk",

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "libsystem_headers",
vendor_available: true,

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libsysutils",
vendor_available: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libusbhost",
vendor_available: true,

View File

@ -12,6 +12,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["system_core_libutils_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "system_core_libutils_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_library_headers {
name: "libutils_headers",
vendor_available: true,

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libvndksupport",
native_bridge_supported: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test {
name: "libvndksupport-tests",
srcs: [

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "llkd_headers",

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test {
name: "llkd_unit_test",

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libpropertyinfoparser",
host_supported: true,

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "propertyinfoserializer_defaults",
host_supported: true,

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "property_info_checker",
host_supported: true,

View File

@ -1,5 +1,9 @@
// Copyright 2011 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libqemu_pipe",
vendor_available: true,

View File

@ -1,5 +1,9 @@
// Copyright 2013 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "reboot",
srcs: ["reboot.c"],

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
prebuilt_etc {
name: "init.rc",
src: "init.rc",

View File

@ -5,6 +5,8 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := init-debug.rc
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/init
@ -18,6 +20,8 @@ ifneq ($(filter address,$(SANITIZE_TARGET)),)
include $(CLEAR_VARS)
LOCAL_MODULE := asan.options
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(TARGET_OUT)
@ -29,6 +33,8 @@ ASAN_EXTRACT_FILES :=
ifeq ($(SANITIZE_TARGET_SYSTEM),true)
include $(CLEAR_VARS)
LOCAL_MODULE:= asan_extract
LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS:= notice
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_SRC_FILES := asan_extract.sh
@ -47,6 +53,8 @@ endif
include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE := init.environ.rc
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
EXPORT_GLOBAL_ASAN_OPTIONS :=
@ -182,6 +190,8 @@ endef
# sanitizer.libraries.txt
include $(CLEAR_VARS)
LOCAL_MODULE := sanitizer.libraries.txt
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)
LOCAL_MODULE_STEM := $(LOCAL_MODULE)
@ -206,6 +216,8 @@ $(LOCAL_BUILT_MODULE):
# adb_debug.prop in debug ramdisk
include $(CLEAR_VARS)
LOCAL_MODULE := adb_debug.prop
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_DEBUG_RAMDISK_OUT)

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
filegroup {
name: "q-gsi_avbpubkey",
srcs: [

View File

@ -19,6 +19,8 @@ endif
include $(CLEAR_VARS)
LOCAL_MODULE := q-gsi.avbpubkey
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(my_gsi_avb_keys_path)
@ -30,6 +32,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := q-developer-gsi.avbpubkey
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(my_gsi_avb_keys_path)
@ -41,6 +45,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := r-gsi.avbpubkey
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(my_gsi_avb_keys_path)
@ -52,6 +58,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := r-developer-gsi.avbpubkey
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(my_gsi_avb_keys_path)
@ -63,6 +71,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := s-gsi.avbpubkey
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(my_gsi_avb_keys_path)
@ -74,6 +84,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := s-developer-gsi.avbpubkey
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(my_gsi_avb_keys_path)
@ -85,6 +97,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := qcar-gsi.avbpubkey
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_PATH := $(my_gsi_avb_keys_path)

View File

@ -14,6 +14,23 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["system_core_run-as_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "system_core_run-as_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"NOTICE",
],
}
cc_binary {
name: "run-as",
srcs: [

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
srcs: ["sdcard.cpp"],
name: "sdcard",

View File

@ -1,5 +1,9 @@
// Copyright 2019 The Android Open Source Project
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "set-verity-state",
srcs: ["set-verity-state.cpp"],

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
phony {
name: "shell_and_utilities",
required: [

View File

@ -14,6 +14,10 @@
* limitations under the License.
*/
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "storaged_defaults",

View File

@ -1,3 +1,20 @@
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",
],
}
cc_defaults {
name: "toolbox_defaults",
cflags: [

42
trusty/Android.bp Normal file
View File

@ -0,0 +1,42 @@
//
// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["system_core_trusty_license"],
}
// Added automatically by a large-scale-change that took the approach of
// 'apply every license found to every target'. While this makes sure we respect
// every license restriction, it may not be entirely correct.
//
// e.g. GPL in an MIT project might only apply to the contrib/ directory.
//
// Please consider splitting the single license below into multiple licenses,
// taking care not to lose any license_kind information, and overriding the
// default license using the 'licenses: [...]' property on targets as needed.
//
// For unused files, consider creating a 'fileGroup' with "//visibility:private"
// to attach the license to, and including a comment whether the files may be
// used in the current project.
// See: http://go/android-license-faq
license {
name: "system_core_trusty_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-MIT",
],
// large-scale-change unable to identify any license_text files
}

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "trusty_apploader",
vendor: true,

View File

@ -19,6 +19,10 @@
// to only building on ARM if they include assembly. Individual makefiles
// are responsible for having their own logic, for fine-grained control.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "android.hardware.confirmationui@1.0-service.trusty",
relative_install_path: "hw",

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_fuzz {
name: "trusty_confirmationui_fuzzer",
defaults: ["trusty_fuzzer_defaults"],

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library {
name: "libtrusty_coverage",
vendor_available: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "trusty_fuzzer_defaults",
shared_libs: [

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_fuzz {
name: "trusty_test_fuzzer",
defaults: ["trusty_fuzzer_defaults"],

View File

@ -19,6 +19,10 @@
// to only building on ARM if they include assembly. Individual makefiles
// are responsible for having their own logic, for fine-grained control.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "android.hardware.gatekeeper@1.0-service.trusty",
defaults: ["hidl_defaults"],

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_fuzz {
name: "trusty_gatekeeper_fuzzer",
defaults: ["trusty_fuzzer_defaults"],

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "android.hardware.keymaster@3.0-service.trusty",
defaults: ["hidl_defaults"],
@ -107,4 +111,3 @@ cc_binary {
"-Werror",
],
}

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_fuzz {
name: "trusty_keymaster_fuzzer",
defaults: ["trusty_fuzzer_defaults"],

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "libtrusty_defaults",
srcs: ["trusty.c"],

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test {
name: "tipc-test",
vendor: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_headers {
name: "secure_dpu_headers",
vendor: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libtrustystorageinterface",
vendor: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_library_static {
name: "libtrustystorage",
vendor: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "storageproxyd",
vendor: true,

View File

@ -14,6 +14,10 @@
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test {
name: "secure-storage-unit-test",
vendor: true,

View File

@ -11,6 +11,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_core_trusty_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-MIT
default_applicable_licenses: ["system_core_trusty_license"],
}
cc_binary {
name: "rpmb_dev",
vendor: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "spiproxyd",
vendor: true,

View File

@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "trusty-ut-ctrl",
vendor: true,

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "usbd",
init_rc: ["usbd.rc"],

View File

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary {
name: "watchdogd",
recovery_available: true,