Skip to content

Commit

Permalink
[LSC] Add LOCAL_LICENSE_KINDS to system/core
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bbadour committed Feb 19, 2021
1 parent d57652f commit d69ad69
Show file tree
Hide file tree
Showing 97 changed files with 695 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bootstat/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
4 changes: 4 additions & 0 deletions cli-test/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_binary {
name: "cli-test",
host_supported: true,
Expand Down
4 changes: 4 additions & 0 deletions code_coverage/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

prebuilt_etc {
name: "code_coverage.policy",
sub_dir: "seccomp_policy",
Expand Down
4 changes: 4 additions & 0 deletions cpio/Android.bp
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
28 changes: 28 additions & 0 deletions debuggerd/Android.bp
Original file line number Diff line number Diff line change
@@ -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: [
Expand Down
4 changes: 4 additions & 0 deletions debuggerd/crasher/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_defaults {
name: "crasher-defaults",

Expand Down
4 changes: 4 additions & 0 deletions debuggerd/proto/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

filegroup {
name: "libtombstone_proto-src",
srcs: ["tombstone.proto"],
Expand Down
4 changes: 4 additions & 0 deletions diagnose_usb/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_library_static {
name: "libdiagnose_usb",
cflags: ["-Wall", "-Wextra", "-Werror"],
Expand Down
28 changes: 28 additions & 0 deletions fastboot/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
9 changes: 9 additions & 0 deletions fastboot/fuzzy_fastboot/Android.bp
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
28 changes: 28 additions & 0 deletions fs_mgr/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/libdm/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/libfiemap/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions fs_mgr/libfs_avb/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/liblp/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
// limitations under the License.
//

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

liblp_lib_deps = [
"libbase",
"liblog",
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/libsnapshot/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/libstorage_literals/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_library_headers {
name: "libstorage_literals_headers",
host_supported: true,
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/libvbmeta/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
// limitations under the License.
//

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

libvbmeta_lib_deps = [
"libbase",
"libcrypto",
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/tests/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
4 changes: 4 additions & 0 deletions fs_mgr/tools/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
// limitations under the License.
//

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_binary {
name: "dmctl",
srcs: ["dmctl.cpp"],
Expand Down
4 changes: 4 additions & 0 deletions gatekeeperd/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
// limitations under the License.
//

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_binary {
name: "gatekeeperd",
cflags: [
Expand Down
4 changes: 4 additions & 0 deletions healthd/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_library_headers {
name: "libhealthd_headers",
vendor_available: true,
Expand Down
4 changes: 4 additions & 0 deletions healthd/testdata/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
// limitations under the License.
//

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

filegroup {
name: "libhealthd_charger_test_data",
srcs: ["**/*.*"],
Expand Down
17 changes: 17 additions & 0 deletions init/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions init/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \

Expand All @@ -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 \
Expand Down
9 changes: 9 additions & 0 deletions init/sysprop/Android.bp
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
9 changes: 9 additions & 0 deletions init/test_kill_services/Android.bp
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
Loading

0 comments on commit d69ad69

Please sign in to comment.