Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware" am: a3888bdcb9
am: c623db5c2c
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware/+/1588486 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2dd468eb50943dbfc53b443c84ba8fe87ae76a45
This commit is contained in:
commit
254f2f1062
33 changed files with 303 additions and 0 deletions
30
Android.bp
30
Android.bp
|
@ -1,5 +1,35 @@
|
|||
// 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 {
|
||||
name: "libhardware_headers",
|
||||
header_libs: [
|
||||
|
|
|
@ -18,6 +18,15 @@
|
|||
//
|
||||
// The format of the name is audio.<type>.<hardware/etc>.so where the only
|
||||
// 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 {
|
||||
name: "audio.primary.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "audio.r_submix.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_test {
|
||||
name: "r_submix_tests",
|
||||
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "camera.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -88,6 +88,9 @@ v4l2_test_files := \
|
|||
# ==============================================================================
|
||||
include $(CLEAR_VARS)
|
||||
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_CFLAGS += $(v4l2_cflags)
|
||||
LOCAL_SHARED_LIBRARIES := $(v4l2_shared_libs)
|
||||
|
@ -103,6 +106,9 @@ include $(BUILD_SHARED_LIBRARY)
|
|||
# ==============================================================================
|
||||
include $(CLEAR_VARS)
|
||||
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_SHARED_LIBRARIES := $(v4l2_shared_libs)
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "consumerir.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "fingerprint.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -31,6 +31,9 @@ LOCAL_SRC_FILES := \
|
|||
LOCAL_HEADER_LIBRARIES := libhardware_headers
|
||||
|
||||
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
|
||||
ifeq ($(TARGET_USE_PAN_DISPLAY),true)
|
||||
LOCAL_CFLAGS += -DUSE_PAN_DISPLAY=1
|
||||
|
|
|
@ -14,6 +14,15 @@
|
|||
|
||||
// HAL module implemenation stored in
|
||||
// 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 {
|
||||
name: "hwcomposer.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
// limitations under the License.
|
||||
|
||||
// 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 {
|
||||
name: "libinput_evdev",
|
||||
|
||||
|
|
|
@ -21,6 +21,15 @@
|
|||
// seen in libhardware/hardware.c
|
||||
//
|
||||
// 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 {
|
||||
name: "local_time.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "nfc_nci.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "nfc.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "power.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
// limitations under the License.
|
||||
|
||||
// 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 {
|
||||
name: "radio.fm.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 {
|
||||
name: "multihal",
|
||||
vendor: true,
|
||||
|
|
|
@ -21,6 +21,9 @@ ifeq ($(USE_SENSOR_MULTI_HAL),true)
|
|||
include $(CLEAR_VARS)
|
||||
|
||||
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_PROPRIETARY_MODULE := true
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "dynamic_sensor_defaults",
|
||||
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "hid_defaults",
|
||||
cflags: [
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
// limitations under the License.
|
||||
|
||||
// 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 {
|
||||
name: "sound_trigger.stub.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "thermal.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "tv_input.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_defaults {
|
||||
name: "audio.usb_defaults",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "camera.usb.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "vibrator.default",
|
||||
|
||||
|
|
|
@ -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 "hardware_libhardware_license"
|
||||
// to get the below license kinds:
|
||||
// SPDX-license-identifier-Apache-2.0
|
||||
default_applicable_licenses: ["hardware_libhardware_license"],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "vr.default",
|
||||
relative_install_path: "hw",
|
||||
|
|
|
@ -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 {
|
||||
name: "camera3_tests",
|
||||
srcs: ["camera3tests.cpp"],
|
||||
|
|
|
@ -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 {
|
||||
name: "fingerprint_tests",
|
||||
srcs: ["fingerprint_tests.cpp"],
|
||||
|
|
|
@ -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 {
|
||||
name: "static-hal-check",
|
||||
srcs: [
|
||||
|
|
|
@ -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 {
|
||||
name: "libcnativewindow",
|
||||
srcs: [
|
||||
|
|
|
@ -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 {
|
||||
name: "libinput_evdevtests",
|
||||
|
||||
|
|
|
@ -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 {
|
||||
name: "test-nusensors",
|
||||
|
||||
|
|
Loading…
Reference in a new issue