[LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware

Added SPDX-license-identifier-Apache-2.0 to:
  modules/audio/Android.bp
  modules/audio_remote_submix/Android.bp
  modules/audio_remote_submix/tests/Android.bp
  modules/camera/3_0/Android.bp
  modules/consumerir/Android.bp
  modules/fingerprint/Android.bp
  modules/gralloc/Android.mk
  modules/hwcomposer/Android.bp
  modules/input/evdev/Android.bp
  modules/local_time/Android.bp
  modules/nfc-nci/Android.bp
  modules/nfc/Android.bp
  modules/power/Android.bp
  modules/radio/Android.bp
  modules/sensors/Android.bp
  modules/sensors/Android.mk
  modules/sensors/dynamic_sensor/Android.bp
  modules/sensors/dynamic_sensor/HidUtils/Android.bp
  modules/soundtrigger/Android.bp
  modules/thermal/Android.bp
  modules/tv_input/Android.bp
  modules/usbaudio/Android.bp
  modules/usbcamera/Android.bp
  modules/vibrator/Android.bp
  modules/vr/Android.bp
  tests/camera3/Android.bp
  tests/fingerprint/Android.bp
  tests/hardware/Android.bp
  tests/hwc/Android.bp
  tests/input/evdev/Android.bp
  tests/nusensors/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  Android.bp
  modules/camera/3_4/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I28924363e6c478f5d0b465b63534c4efd041c770
This commit is contained in:
Bob Badour 2021-02-12 20:51:13 -08:00
parent ead6cd16d8
commit d7984ccf02
33 changed files with 303 additions and 0 deletions

View file

@ -1,5 +1,35 @@
// Copyright 2006 The Android Open Source Project // Copyright 2006 The Android Open Source Project
package {
default_applicable_licenses: ["hardware_libhardware_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_libhardware_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
],
license_text: [
"NOTICE",
],
}
cc_library_headers { cc_library_headers {
name: "libhardware_headers", name: "libhardware_headers",
header_libs: [ header_libs: [

View file

@ -18,6 +18,15 @@
// //
// The format of the name is audio.<type>.<hardware/etc>.so where the only // The format of the name is audio.<type>.<hardware/etc>.so where the only
// required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc. // required type is 'primary'. Other possibilites are 'a2dp', 'usb', etc.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "audio.primary.default", name: "audio.primary.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "audio.r_submix.default", name: "audio.r_submix.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_test { cc_test {
name: "r_submix_tests", name: "r_submix_tests",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "camera.default", name: "camera.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -88,6 +88,9 @@ v4l2_test_files := \
# ============================================================================== # ==============================================================================
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := camera.v4l2 LOCAL_MODULE := camera.v4l2
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE
LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_CFLAGS += $(v4l2_cflags) LOCAL_CFLAGS += $(v4l2_cflags)
LOCAL_SHARED_LIBRARIES := $(v4l2_shared_libs) LOCAL_SHARED_LIBRARIES := $(v4l2_shared_libs)
@ -103,6 +106,9 @@ include $(BUILD_SHARED_LIBRARY)
# ============================================================================== # ==============================================================================
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := camera.v4l2_test LOCAL_MODULE := camera.v4l2_test
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE
LOCAL_CFLAGS += $(v4l2_cflags) LOCAL_CFLAGS += $(v4l2_cflags)
LOCAL_SHARED_LIBRARIES := $(v4l2_shared_libs) LOCAL_SHARED_LIBRARIES := $(v4l2_shared_libs)
LOCAL_STATIC_LIBRARIES := \ LOCAL_STATIC_LIBRARIES := \

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "consumerir.default", name: "consumerir.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "fingerprint.default", name: "fingerprint.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -31,6 +31,9 @@ LOCAL_SRC_FILES := \
LOCAL_HEADER_LIBRARIES := libhardware_headers LOCAL_HEADER_LIBRARIES := libhardware_headers
LOCAL_MODULE := gralloc.default LOCAL_MODULE := gralloc.default
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../NOTICE
LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -Wno-missing-field-initializers LOCAL_CFLAGS:= -DLOG_TAG=\"gralloc\" -Wno-missing-field-initializers
ifeq ($(TARGET_USE_PAN_DISPLAY),true) ifeq ($(TARGET_USE_PAN_DISPLAY),true)
LOCAL_CFLAGS += -DUSE_PAN_DISPLAY=1 LOCAL_CFLAGS += -DUSE_PAN_DISPLAY=1

View file

@ -14,6 +14,15 @@
// HAL module implemenation stored in // HAL module implemenation stored in
// hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so // hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "hwcomposer.default", name: "hwcomposer.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -13,6 +13,15 @@
// limitations under the License. // limitations under the License.
// Evdev module implementation // Evdev module implementation
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "libinput_evdev", name: "libinput_evdev",

View file

@ -21,6 +21,15 @@
// seen in libhardware/hardware.c // seen in libhardware/hardware.c
// //
// The format of the name is local_time.<hardware>.so // The format of the name is local_time.<hardware>.so
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "local_time.default", name: "local_time.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "nfc_nci.default", name: "nfc_nci.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "nfc.default", name: "nfc.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "power.default", name: "power.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -13,6 +13,15 @@
// limitations under the License. // limitations under the License.
// Stub radio HAL module, used for tests // Stub radio HAL module, used for tests
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "radio.fm.default", name: "radio.fm.default",
relative_install_path: "hw", relative_install_path: "hw",

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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_static { cc_library_static {
name: "multihal", name: "multihal",
vendor: true, vendor: true,

View file

@ -21,6 +21,9 @@ ifeq ($(USE_SENSOR_MULTI_HAL),true)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := sensors.$(TARGET_DEVICE) LOCAL_MODULE := sensors.$(TARGET_DEVICE)
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../NOTICE
LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_PROPRIETARY_MODULE := true LOCAL_PROPRIETARY_MODULE := true

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_defaults { cc_defaults {
name: "dynamic_sensor_defaults", name: "dynamic_sensor_defaults",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_defaults { cc_defaults {
name: "hid_defaults", name: "hid_defaults",
cflags: [ cflags: [

View file

@ -13,6 +13,15 @@
// limitations under the License. // limitations under the License.
// Stub sound_trigger HAL module, used for tests // Stub sound_trigger HAL module, used for tests
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "sound_trigger.stub.default", name: "sound_trigger.stub.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "thermal.default", name: "thermal.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "tv_input.default", name: "tv_input.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_defaults { cc_defaults {
name: "audio.usb_defaults", name: "audio.usb_defaults",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "camera.usb.default", name: "camera.usb.default",
relative_install_path: "hw", relative_install_path: "hw",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "vibrator.default", name: "vibrator.default",

View file

@ -12,6 +12,15 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_shared { cc_library_shared {
name: "vr.default", name: "vr.default",
relative_install_path: "hw", relative_install_path: "hw",

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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_test { cc_test {
name: "camera3_tests", name: "camera3_tests",
srcs: ["camera3tests.cpp"], srcs: ["camera3tests.cpp"],

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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_test { cc_test {
name: "fingerprint_tests", name: "fingerprint_tests",
srcs: ["fingerprint_tests.cpp"], srcs: ["fingerprint_tests.cpp"],

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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_static { cc_library_static {
name: "static-hal-check", name: "static-hal-check",
srcs: [ 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_library_static { cc_library_static {
name: "libcnativewindow", name: "libcnativewindow",
srcs: [ 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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_test { cc_test {
name: "libinput_evdevtests", name: "libinput_evdevtests",

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 "hardware_libhardware_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_libhardware_license"],
}
cc_binary { cc_binary {
name: "test-nusensors", name: "test-nusensors",