[LSC] Add LOCAL_LICENSE_KINDS to kernel/configs

Added SPDX-license-identifier-Apache-2.0 to:
  tools/Android.bp

Added SPDX-license-identifier-Apache-2.0 legacy_notice to:
  Android.bp

Added legacy_notice to:
  android-4.19/Android.bp
  android-5.10/Android.bp
  android-5.4/Android.bp
  build/Android.bp
  p/android-4.14/Android.bp
  p/android-4.4/Android.bp
  p/android-4.9/Android.bp
  q/android-4.14/Android.bp
  q/android-4.19/Android.bp
  q/android-4.9/Android.bp
  r/android-4.14/Android.bp
  r/android-4.19/Android.bp
  r/android-5.4/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I9ea7130bab3e5a972419363e003286b533b30d6d
This commit is contained in:
Bob Badour 2021-03-02 01:01:45 -08:00
parent 530d828283
commit c5bfd2ec01
15 changed files with 168 additions and 0 deletions

42
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: ["kernel_configs_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: "kernel_configs_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"legacy_notice",
],
// large-scale-change unable to identify any license_text files
}

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_current_4.19",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_current_5.10",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_current_5.4",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
bootstrap_go_package {
name: "kernel-config-soong-rules",
pkgPath: "android/soong/kernel/configs",

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_p_4.14",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_p_4.4",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_p_4.9",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_q_4.14",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_q_4.19",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_q_4.9",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_r_4.14",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_r_4.19",
srcs: [

View file

@ -12,6 +12,15 @@
// 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 "kernel_configs_license"
// to get the below license kinds:
// legacy_notice
default_applicable_licenses: ["kernel_configs_license"],
}
kernel_config {
name: "kernel_config_r_5.4",
srcs: [

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 "kernel_configs_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["kernel_configs_license"],
}
python_binary_host {
name: "kconfig_xml_fixup",
main: "kconfig_xml_fixup.py",