summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Badour <bbadour@google.com>2021-03-12 04:43:20 -0800
committerBob Badour <bbadour@google.com>2021-03-12 13:13:04 -0800
commit16747b5b51ba61ed350c3a37d8e4252b5e3e07bf (patch)
treedbe297f35f8462ff979f58d2dfd2a8ea101215ec
parent892d724fd20d4b5bd9b0c731a5993d66550e115f (diff)
[LSC] Add LOCAL_LICENSE_KINDS to hardware/google/pixel
Added SPDX-license-identifier-Apache-2.0 to: atrace/Android.bp bootctrl/Android.bp dynamic_partitions/Android.bp fastboot/Android.bp health/Android.bp kernel_headers/Android.bp misc_writer/Android.bp mm/Android.bp perfstatsd/Android.bp pixelstats/Android.bp power-libperfmgr/Android.bp power-libperfmgr/libperfmgr/Android.bp powerstats/Android.bp powerstats/aidl/Android.bp pwrstats_util/Android.bp radio/Android.bp radio/gril_carrier_nv_headers/Android.bp recovery/Android.bp usb/Android.bp vibrator/Android.bp vibrator/common/Android.bp vibrator/cs40l25/Android.bp vibrator/cs40l25/bench/Android.bp vibrator/cs40l25/tests/Android.bp vibrator/drv2624/Android.bp vibrator/drv2624/apex/Android.bp vibrator/drv2624/bench/Android.bp vibrator/drv2624/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: Android.bp thermal/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d Merged-in: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d
-rw-r--r--Android.bp28
-rw-r--r--atrace/Android.bp4
-rw-r--r--bootctrl/Android.bp4
-rw-r--r--dynamic_partitions/Android.bp4
-rw-r--r--fastboot/Android.bp4
-rw-r--r--health/Android.bp4
-rw-r--r--kernel_headers/Android.bp4
-rw-r--r--misc_writer/Android.bp4
-rw-r--r--mm/Android.bp4
-rw-r--r--perfstatsd/Android.bp4
-rw-r--r--pixelstats/Android.bp5
-rw-r--r--power-libperfmgr/Android.bp4
-rw-r--r--power-libperfmgr/libperfmgr/Android.bp4
-rw-r--r--powerstats/Android.bp6
-rw-r--r--powerstats/aidl/Android.bp4
-rw-r--r--pwrstats_util/Android.bp4
-rw-r--r--radio/Android.bp4
-rw-r--r--radio/gril_carrier_nv_headers/Android.bp6
-rw-r--r--recovery/Android.bp4
-rw-r--r--thermal/Android.bp10
-rw-r--r--usb/Android.bp4
-rw-r--r--vibrator/Android.bp4
-rw-r--r--vibrator/common/Android.bp4
-rw-r--r--vibrator/cs40l25/Android.bp4
-rw-r--r--vibrator/cs40l25/bench/Android.bp4
-rw-r--r--vibrator/cs40l25/tests/Android.bp4
-rw-r--r--vibrator/drv2624/Android.bp4
-rw-r--r--vibrator/drv2624/apex/Android.bp6
-rw-r--r--vibrator/drv2624/bench/Android.bp4
-rw-r--r--vibrator/drv2624/tests/Android.bp4
30 files changed, 153 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp
index e91352c..284a095 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,3 +1,31 @@
soong_namespace {
imports: ["hardware/google/interfaces"],
}
+
+package {
+ default_applicable_licenses: ["hardware_google_pixel_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: "hardware_google_pixel_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
+}
diff --git a/atrace/Android.bp b/atrace/Android.bp
index 8ddb7c8..08ca125 100644
--- a/atrace/Android.bp
+++ b/atrace/Android.bp
@@ -13,6 +13,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: "android.hardware.atrace@1.0-service.pixel",
defaults: ["hidl_defaults"],
diff --git a/bootctrl/Android.bp b/bootctrl/Android.bp
index 9aa1f26..27f8af1 100644
--- a/bootctrl/Android.bp
+++ b/bootctrl/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_library {
name: "android.hardware.boot@1.2-impl-pixel-legacy",
stem: "android.hardware.boot@1.0-impl-1.2-pixel-legacy",
diff --git a/dynamic_partitions/Android.bp b/dynamic_partitions/Android.bp
index ba0557f..a5e54a9 100644
--- a/dynamic_partitions/Android.bp
+++ b/dynamic_partitions/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
sh_binary {
name: "check_dynamic_partitions",
src: "check_dynamic_partitions",
diff --git a/fastboot/Android.bp b/fastboot/Android.bp
index bc2c726..c40b69f 100644
--- a/fastboot/Android.bp
+++ b/fastboot/Android.bp
@@ -13,6 +13,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: "android.hardware.fastboot@1.1-impl.pixel",
recovery: true,
diff --git a/health/Android.bp b/health/Android.bp
index 95b26b7..7461532 100644
--- a/health/Android.bp
+++ b/health/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_library {
name: "libpixelhealth",
vendor: true,
diff --git a/kernel_headers/Android.bp b/kernel_headers/Android.bp
index 552467b..660a592 100644
--- a/kernel_headers/Android.bp
+++ b/kernel_headers/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
kernel_headers {
name: "qti_kernel_headers",
vendor: true,
diff --git a/misc_writer/Android.bp b/misc_writer/Android.bp
index 73c44d2..6ad523a 100644
--- a/misc_writer/Android.bp
+++ b/misc_writer/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_defaults {
name: "misc_writer_defaults",
vendor: true,
diff --git a/mm/Android.bp b/mm/Android.bp
index f733d7e..b00d7fd 100644
--- a/mm/Android.bp
+++ b/mm/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
sh_binary {
name: "mm_logd",
src: "init.mm.logging.sh",
diff --git a/perfstatsd/Android.bp b/perfstatsd/Android.bp
index 541aff7..9c7228a 100644
--- a/perfstatsd/Android.bp
+++ b/perfstatsd/Android.bp
@@ -14,6 +14,10 @@
* limitations under the License.
*/
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_defaults {
name: "perfstatsd_defaults",
diff --git a/pixelstats/Android.bp b/pixelstats/Android.bp
index d9dbd44..0497a41 100644
--- a/pixelstats/Android.bp
+++ b/pixelstats/Android.bp
@@ -13,6 +13,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: "pixelatoms-cpp",
vendor: true,
@@ -77,4 +81,3 @@ cc_library {
],
header_libs: ["chre_api"],
}
-
diff --git a/power-libperfmgr/Android.bp b/power-libperfmgr/Android.bp
index d1331dc..006b359 100644
--- a/power-libperfmgr/Android.bp
+++ b/power-libperfmgr/Android.bp
@@ -13,6 +13,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: "libdisppower-pixel",
proprietary: true,
diff --git a/power-libperfmgr/libperfmgr/Android.bp b/power-libperfmgr/libperfmgr/Android.bp
index c84e731..2de7e75 100644
--- a/power-libperfmgr/libperfmgr/Android.bp
+++ b/power-libperfmgr/libperfmgr/Android.bp
@@ -14,6 +14,10 @@
// limitations under the License.
//
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_defaults {
name: "libperfmgr_defaults",
local_include_dirs: ["include"],
diff --git a/powerstats/Android.bp b/powerstats/Android.bp
index 2ea09a3..992e304 100644
--- a/powerstats/Android.bp
+++ b/powerstats/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_library_static {
name: "libpixelpowerstats",
vendor_available: true,
@@ -51,4 +55,4 @@ cc_library {
"pixel_stateresidency_provider_aidl_interface-ndk_platform",
"android.hardware.power.stats-V1-ndk_platform",
],
-} \ No newline at end of file
+}
diff --git a/powerstats/aidl/Android.bp b/powerstats/aidl/Android.bp
index 55c1a58..b0c361f 100644
--- a/powerstats/aidl/Android.bp
+++ b/powerstats/aidl/Android.bp
@@ -14,6 +14,10 @@
* limitations under the License.
*/
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
aidl_interface {
name: "pixelpowerstats_provider_aidl_interface",
unstable: true,
diff --git a/pwrstats_util/Android.bp b/pwrstats_util/Android.bp
index 7d47714..6703efe 100644
--- a/pwrstats_util/Android.bp
+++ b/pwrstats_util/Android.bp
@@ -12,6 +12,10 @@
// 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: ["Android-Apache-2.0"],
+}
+
cc_library_static {
name: "libpwrstatsutil",
defaults: ["pwrstatsutil_defaults"],
diff --git a/radio/Android.bp b/radio/Android.bp
index f761ca4..b41a09d 100644
--- a/radio/Android.bp
+++ b/radio/Android.bp
@@ -1,4 +1,8 @@
// Define the soong config module for Pixel in this Android.bp
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
soong_config_module_type {
name: "pixel_glog_cc_defaults",
diff --git a/radio/gril_carrier_nv_headers/Android.bp b/radio/gril_carrier_nv_headers/Android.bp
index e671ad3..845945a 100644
--- a/radio/gril_carrier_nv_headers/Android.bp
+++ b/radio/gril_carrier_nv_headers/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_library_headers {
name: "gril_carrier_nv_headers",
sanitize:{
@@ -7,4 +11,4 @@ cc_library_headers {
export_include_dirs: [
"inc/",
],
-} \ No newline at end of file
+}
diff --git a/recovery/Android.bp b/recovery/Android.bp
index d904e8e..4c7e0c7 100644
--- a/recovery/Android.bp
+++ b/recovery/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_library_static {
name: "librecovery_ui_pixel",
owner: "google",
diff --git a/thermal/Android.bp b/thermal/Android.bp
index 8b4151a..675cc5d 100644
--- a/thermal/Android.bp
+++ b/thermal/Android.bp
@@ -1,3 +1,13 @@
+package {
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "hardware_google_pixel_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Apache-2.0
+ // SPDX-license-identifier-BSD
+ default_applicable_licenses: ["hardware_google_pixel_license"],
+}
+
cc_binary {
name: "android.hardware.thermal@2.0-service.pixel",
defaults: [
diff --git a/usb/Android.bp b/usb/Android.bp
index 8b2cc59..348e224 100644
--- a/usb/Android.bp
+++ b/usb/Android.bp
@@ -14,6 +14,10 @@
* limitations under the License.
*/
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_library_static {
name: "libpixelusb",
vendor_available: true,
diff --git a/vibrator/Android.bp b/vibrator/Android.bp
index 36b43b5..2d6d4d4 100644
--- a/vibrator/Android.bp
+++ b/vibrator/Android.bp
@@ -13,6 +13,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: "PixelVibratorDefaults",
relative_install_path: "hw",
diff --git a/vibrator/common/Android.bp b/vibrator/common/Android.bp
index d40e7a9..04fbc4d 100644
--- a/vibrator/common/Android.bp
+++ b/vibrator/common/Android.bp
@@ -13,6 +13,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: "PixelVibratorCommon",
srcs: [
diff --git a/vibrator/cs40l25/Android.bp b/vibrator/cs40l25/Android.bp
index f0aab55..b321f4d 100644
--- a/vibrator/cs40l25/Android.bp
+++ b/vibrator/cs40l25/Android.bp
@@ -13,6 +13,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: "android.hardware.vibrator-defaults.cs40l25",
cflags: [
diff --git a/vibrator/cs40l25/bench/Android.bp b/vibrator/cs40l25/bench/Android.bp
index 87a9dc0..110fea8 100644
--- a/vibrator/cs40l25/bench/Android.bp
+++ b/vibrator/cs40l25/bench/Android.bp
@@ -13,6 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_benchmark {
name: "VibratorHalCs40l25Benchmark",
defaults: ["VibratorHalCs40l25TestDefaults"],
diff --git a/vibrator/cs40l25/tests/Android.bp b/vibrator/cs40l25/tests/Android.bp
index 7acdece..438df06 100644
--- a/vibrator/cs40l25/tests/Android.bp
+++ b/vibrator/cs40l25/tests/Android.bp
@@ -13,6 +13,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: "VibratorHalCs40l25TestSuite",
defaults: ["VibratorHalCs40l25TestDefaults"],
diff --git a/vibrator/drv2624/Android.bp b/vibrator/drv2624/Android.bp
index 594aaeb..ef792a3 100644
--- a/vibrator/drv2624/Android.bp
+++ b/vibrator/drv2624/Android.bp
@@ -13,6 +13,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: "android.hardware.vibrator-defaults.drv2624",
cflags: [
diff --git a/vibrator/drv2624/apex/Android.bp b/vibrator/drv2624/apex/Android.bp
index 81228e5..016a793 100644
--- a/vibrator/drv2624/apex/Android.bp
+++ b/vibrator/drv2624/apex/Android.bp
@@ -1,3 +1,7 @@
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
apex {
name: "com.android.vibrator.drv2624",
manifest: "apex_manifest.json",
@@ -52,4 +56,4 @@ prebuilt_etc {
name: "com.android.vibrator.drv2624.rc",
src: "com.android.vibrator.drv2624.rc",
installable: false,
-} \ No newline at end of file
+}
diff --git a/vibrator/drv2624/bench/Android.bp b/vibrator/drv2624/bench/Android.bp
index 6227dc5..e2d68da 100644
--- a/vibrator/drv2624/bench/Android.bp
+++ b/vibrator/drv2624/bench/Android.bp
@@ -13,6 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
cc_benchmark {
name: "VibratorHalDrv2624Benchmark",
defaults: ["VibratorHalDrv2624TestDefaults"],
diff --git a/vibrator/drv2624/tests/Android.bp b/vibrator/drv2624/tests/Android.bp
index 4c85740..8f392a1 100644
--- a/vibrator/drv2624/tests/Android.bp
+++ b/vibrator/drv2624/tests/Android.bp
@@ -13,6 +13,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: "VibratorHalDrv2624TestSuite",
defaults: ["VibratorHalDrv2624TestDefaults"],