Skip to content

Commit

Permalink
[LSC] Add LOCAL_LICENSE_KINDS to device/google/sunfish
Browse files Browse the repository at this point in the history
Added SPDX-license-identifier-Apache-2.0 to:
  bootctrl/Android.bp
  health/Android.bp
  keymaster/Android.bp
  overlay_packages/SettingsOverlayG025J/Android.bp
  overlay_packages/SettingsOverlayG025M/Android.bp
  overlay_packages/SettingsOverlayG025N/Android.bp
  pixelstats/Android.bp
  powerstats/Android.bp
  rro_overlays/WifiOverlay/Android.bp
  sunfish/overlay/packages/apps/NoCutoutOverlay/Android.bp
  usb/Android.bp
  vibrator/Android.bp
  vibrator/apex/Android.bp
  vibrator/common/Android.bp
  vibrator/common/bench/Android.bp
  vibrator/drv2624/Android.bp
  vibrator/drv2624/bench/Android.bp
  vibrator/drv2624/tests/Android.bp
  voice_processing/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
    SPDX-license-identifier-MIT legacy_not_a_contribution
    legacy_unencumbered
to:
  Android.bp

Added SPDX-license-identifier-BSD
to:
  gpt-utils/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I63560849d80af79ae86a0a97c375c5ab221ea477
Merged-in: I63560849d80af79ae86a0a97c375c5ab221ea477
  • Loading branch information
bbadour committed Mar 12, 2021
1 parent 2a4261a commit a9d55f7
Show file tree
Hide file tree
Showing 21 changed files with 121 additions and 6 deletions.
31 changes: 31 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,34 @@ soong_namespace {
"hardware/qcom/bootctrl",
],
}

package {
default_applicable_licenses: ["device_google_sunfish_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: "device_google_sunfish_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-MIT",
"legacy_not_a_contribution",
"legacy_unencumbered",
],
// large-scale-change unable to identify any license_text files
}
4 changes: 4 additions & 0 deletions bootctrl/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 {
name: "bootctrl.sm6150",
defaults: ["bootctrl_hal_defaults"],
Expand Down
9 changes: 9 additions & 0 deletions gpt-utils/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "device_google_sunfish_license"
// to get the below license kinds:
// SPDX-license-identifier-BSD
default_applicable_licenses: ["device_google_sunfish_license"],
}

cc_library {
name: "libgptutils.sunfish",
vendor: true,
Expand Down
4 changes: 4 additions & 0 deletions health/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_shared {
name: "[email protected]",
stem: "[email protected]",
Expand Down
4 changes: 4 additions & 0 deletions keymaster/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "wait_for_strongbox",
relative_install_path: "hw",
Expand Down
6 changes: 5 additions & 1 deletion overlay_packages/SettingsOverlayG025J/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

runtime_resource_overlay {
name: "SettingsOverlayG025J",
product_specific: true,
}
}
6 changes: 5 additions & 1 deletion overlay_packages/SettingsOverlayG025M/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

runtime_resource_overlay {
name: "SettingsOverlayG025M",
product_specific: true,
}
}
6 changes: 5 additions & 1 deletion overlay_packages/SettingsOverlayG025N/Android.bp
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

runtime_resource_overlay {
name: "SettingsOverlayG025N",
product_specific: true,
}
}
5 changes: 4 additions & 1 deletion pixelstats/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "pixelstats-vendor",
init_rc: ["pixelstats-vendor.sunfish.rc"],
Expand All @@ -32,4 +36,3 @@ cc_binary {
static_libs: ["chre_client"],
header_libs: ["chre_api"],
}

4 changes: 4 additions & 0 deletions powerstats/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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_binary {
name: "[email protected]",
relative_install_path: "hw",
Expand Down
4 changes: 4 additions & 0 deletions rro_overlays/WifiOverlay/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

runtime_resource_overlay {
name: "WifiOverlay",
theme: "WifiOverlay",
Expand Down
4 changes: 4 additions & 0 deletions sunfish/overlay/packages/apps/NoCutoutOverlay/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"],
}

runtime_resource_overlay {
name: "NoCutoutOverlay",
theme: "DisplayCutoutNoCutout",
Expand Down
4 changes: 4 additions & 0 deletions usb/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]",
relative_install_path: "hw",
Expand Down
4 changes: 4 additions & 0 deletions vibrator/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "PixelVibratorDefaultsSunfish",
defaults: ["hidl_defaults"],
Expand Down
6 changes: 5 additions & 1 deletion vibrator/apex/Android.bp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}

apex {
name: "com.android.vibrator.sunfish",
manifest: "apex_manifest.json",
Expand Down Expand Up @@ -47,4 +51,4 @@ prebuilt_etc {
name: "[email protected]",
src: "[email protected]",
installable: false,
}
}
4 changes: 4 additions & 0 deletions vibrator/common/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "PixelVibratorCommonSunfish",
srcs: [
Expand Down
4 changes: 4 additions & 0 deletions vibrator/common/bench/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "VibratorHalIntegrationBenchmarkSunfish",
defaults: ["hidl_defaults"],
Expand Down
6 changes: 5 additions & 1 deletion vibrator/drv2624/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]",
defaults: ["PixelVibratorDefaultsSunfish"],
Expand Down Expand Up @@ -57,4 +61,4 @@ prebuilt_firmware {
src: "drv2624.bin",
filename_from_src: true,
proprietary: true,
}
}
4 changes: 4 additions & 0 deletions vibrator/drv2624/bench/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "VibratorHalDrv2624BenchmarkSunfish",
defaults: ["VibratorHalDrv2624TestDefaultsSunfish"],
Expand Down
4 changes: 4 additions & 0 deletions vibrator/drv2624/tests/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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: "VibratorHalDrv2624TestSuiteSunfish",
defaults: ["VibratorHalDrv2624TestDefaultsSunfish"],
Expand Down
4 changes: 4 additions & 0 deletions voice_processing/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_library_shared {
name: "libqcomvoiceprocessingdescriptors",
srcs: ["voice_processing_descriptors.c"],
Expand Down

0 comments on commit a9d55f7

Please sign in to comment.