Merge "[LSC] Add LOCAL_LICENSE_KINDS to build/make" am: 14201eb3a3

Original change: https://android-review.googlesource.com/c/platform/build/+/1589084

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie84c75d37f4f3a79aee3fa75f304eae1e1a7fee3
This commit is contained in:
Treehugger Robot 2021-02-15 23:48:06 +00:00 committed by Automerger Merge Worker
commit 27d927752e
26 changed files with 257 additions and 2 deletions

49
Android.bp Normal file
View file

@ -0,0 +1,49 @@
//
// 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: ["build_make_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: "build_make_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-BSD",
"SPDX-license-identifier-CC-BY",
"SPDX-license-identifier-GPL",
"SPDX-license-identifier-GPL-2.0",
"SPDX-license-identifier-LGPL",
"SPDX-license-identifier-MIT",
"legacy_not_a_contribution",
"legacy_restricted",
],
// large-scale-change unable to identify any license_text files
}

View file

@ -28,6 +28,8 @@ endif
########################################################### ###########################################################
LOCAL_MODULE := $(strip $(LOCAL_MODULE)) LOCAL_MODULE := $(strip $(LOCAL_MODULE))
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-LGPL SPDX-license-identifier-MIT
LOCAL_LICENSE_CONDITIONS := notice restricted
ifeq ($(LOCAL_MODULE),) ifeq ($(LOCAL_MODULE),)
$(error $(LOCAL_PATH): LOCAL_MODULE is not defined) $(error $(LOCAL_PATH): LOCAL_MODULE is not defined)
endif endif

View file

@ -60,6 +60,8 @@ ifneq (,$(my_copy_pairs))
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := dexpreopt_bootjar.$(my_suffix) LOCAL_MODULE := dexpreopt_bootjar.$(my_suffix)
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-LGPL SPDX-license-identifier-MIT
LOCAL_LICENSE_CONDITIONS := notice restricted
LOCAL_PREBUILT_MODULE_FILE := $(my_first_src) LOCAL_PREBUILT_MODULE_FILE := $(my_first_src)
LOCAL_MODULE_PATH := $(dir $(my_first_dest)) LOCAL_MODULE_PATH := $(dir $(my_first_dest))
LOCAL_MODULE_STEM := $(notdir $(my_first_dest)) LOCAL_MODULE_STEM := $(notdir $(my_first_dest))

View file

@ -39,6 +39,8 @@ ifneq ($(strip $(LOCAL_MODULE)),)
$(error $(LOCAL_PATH): Package modules may not define LOCAL_MODULE) $(error $(LOCAL_PATH): Package modules may not define LOCAL_MODULE)
endif endif
LOCAL_MODULE := $(LOCAL_PACKAGE_NAME) LOCAL_MODULE := $(LOCAL_PACKAGE_NAME)
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD SPDX-license-identifier-GPL SPDX-license-identifier-GPL-2.0 SPDX-license-identifier-LGPL SPDX-license-identifier-MIT
LOCAL_LICENSE_CONDITIONS := notice restricted
ifneq ($(strip $(LOCAL_MODULE_CLASS)),) ifneq ($(strip $(LOCAL_MODULE_CLASS)),)
$(error $(LOCAL_PATH): Package modules may not set LOCAL_MODULE_CLASS) $(error $(LOCAL_PATH): Package modules may not set LOCAL_MODULE_CLASS)

View file

@ -19,6 +19,8 @@ my_makefile := $(lastword $(filter-out $(lastword $(MAKEFILE_LIST)),$(MAKEFILE_L
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := $(my_package_name) LOCAL_MODULE := $(my_package_name)
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := PACKAGING LOCAL_MODULE_CLASS := PACKAGING
LOCAL_MODULE_STEM := $(my_package_name).zip LOCAL_MODULE_STEM := $(my_package_name).zip
LOCAL_UNINSTALLABLE_MODULE := true LOCAL_UNINSTALLABLE_MODULE := true

View file

@ -35,6 +35,8 @@ ifdef DEVICE_MANIFEST_FILE
# $(DEVICE_MANIFEST_FILE) can be a list of files # $(DEVICE_MANIFEST_FILE) can be a list of files
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := vendor_manifest.xml LOCAL_MODULE := vendor_manifest.xml
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 legacy_not_a_contribution
LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice
LOCAL_MODULE_STEM := manifest.xml LOCAL_MODULE_STEM := manifest.xml
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/vintf LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/vintf
@ -65,6 +67,8 @@ endif
my_fragment_files := $$($$(my_fragment_files_var)) my_fragment_files := $$($$(my_fragment_files_var))
include $$(CLEAR_VARS) include $$(CLEAR_VARS)
LOCAL_MODULE := vendor_manifest_$(1).xml LOCAL_MODULE := vendor_manifest_$(1).xml
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 legacy_not_a_contribution
LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice
LOCAL_MODULE_STEM := manifest_$(1).xml LOCAL_MODULE_STEM := manifest_$(1).xml
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/vintf LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc/vintf
@ -94,6 +98,8 @@ ifdef ODM_MANIFEST_FILES
# ODM_MANIFEST_FILES is a list of files that is combined and installed as the default ODM manifest. # ODM_MANIFEST_FILES is a list of files that is combined and installed as the default ODM manifest.
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := odm_manifest.xml LOCAL_MODULE := odm_manifest.xml
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 legacy_not_a_contribution
LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice
LOCAL_MODULE_STEM := manifest.xml LOCAL_MODULE_STEM := manifest.xml
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_RELATIVE_PATH := vintf LOCAL_MODULE_RELATIVE_PATH := vintf
@ -124,6 +130,8 @@ endif
my_fragment_files := $$($$(my_fragment_files_var)) my_fragment_files := $$($$(my_fragment_files_var))
include $$(CLEAR_VARS) include $$(CLEAR_VARS)
LOCAL_MODULE := odm_manifest_$(1).xml LOCAL_MODULE := odm_manifest_$(1).xml
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 legacy_not_a_contribution
LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice
LOCAL_MODULE_STEM := manifest_$(1).xml LOCAL_MODULE_STEM := manifest_$(1).xml
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_RELATIVE_PATH := vintf LOCAL_MODULE_RELATIVE_PATH := vintf

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 "build_make_license"
// to get the below license kinds:
// legacy_restricted
default_applicable_licenses: ["build_make_license"],
}
filegroup { filegroup {
name: "vndk_lib_lists", name: "vndk_lib_lists",
srcs: [ srcs: [

View file

@ -63,6 +63,8 @@ $(check-vndk-list-timestamp): $(INTERNAL_VNDK_LIB_LIST) $(LATEST_VNDK_LIB_LIST)
# Script to update the latest VNDK lib list # Script to update the latest VNDK lib list
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := update-vndk-list.sh LOCAL_MODULE := update-vndk-list.sh
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := EXECUTABLES LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_MODULE_STEM := $(LOCAL_MODULE) LOCAL_MODULE_STEM := $(LOCAL_MODULE)
LOCAL_IS_HOST_MODULE := true LOCAL_IS_HOST_MODULE := true
@ -146,6 +148,8 @@ ifneq ($(BOARD_VNDK_VERSION),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := vndk_package LOCAL_MODULE := vndk_package
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
# Filter LLNDK libs moved to APEX to avoid pulling them into /system/LIB # Filter LLNDK libs moved to APEX to avoid pulling them into /system/LIB
LOCAL_REQUIRED_MODULES := \ LOCAL_REQUIRED_MODULES := \
$(filter-out $(LLNDK_MOVED_TO_APEX_LIBRARIES),$(LLNDK_LIBRARIES)) $(filter-out $(LLNDK_MOVED_TO_APEX_LIBRARIES),$(LLNDK_LIBRARIES))
@ -169,6 +173,8 @@ ifneq ($(BOARD_VNDK_VERSION),current)
_vndk_versions += $(BOARD_VNDK_VERSION) _vndk_versions += $(BOARD_VNDK_VERSION)
endif endif
LOCAL_MODULE := vndk_apex_snapshot_package LOCAL_MODULE := vndk_apex_snapshot_package
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := $(foreach vndk_ver,$(_vndk_versions),com.android.vndk.v$(vndk_ver)) LOCAL_REQUIRED_MODULES := $(foreach vndk_ver,$(_vndk_versions),com.android.vndk.v$(vndk_ver))
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
@ -181,6 +187,8 @@ endif # BOARD_VNDK_VERSION is set
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := gsi_skip_mount.cfg LOCAL_MODULE := gsi_skip_mount.cfg
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_STEM := skip_mount.cfg LOCAL_MODULE_STEM := skip_mount.cfg
LOCAL_SRC_FILES := $(LOCAL_MODULE) LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
@ -204,6 +212,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := init.gsi.rc LOCAL_MODULE := init.gsi.rc
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_SRC_FILES := $(LOCAL_MODULE) LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_SYSTEM_EXT_MODULE := true LOCAL_SYSTEM_EXT_MODULE := true
@ -214,6 +224,8 @@ include $(BUILD_PREBUILT)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := init.vndk-nodef.rc LOCAL_MODULE := init.vndk-nodef.rc
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_SRC_FILES := $(LOCAL_MODULE) LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_SYSTEM_EXT_MODULE := true LOCAL_SYSTEM_EXT_MODULE := true

View file

@ -1,4 +1,13 @@
// AOSP test certificate // AOSP test certificate
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "build_make_license"
// to get the below license kinds:
// legacy_restricted
default_applicable_licenses: ["build_make_license"],
}
android_app_certificate { android_app_certificate {
name: "aosp-testkey", name: "aosp-testkey",
certificate: "testkey", certificate: "testkey",

View file

@ -5,6 +5,8 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := verity_key LOCAL_MODULE := verity_key
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_SRC_FILES := $(LOCAL_MODULE) LOCAL_SRC_FILES := $(LOCAL_MODULE)
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
@ -24,6 +26,8 @@ include $(BUILD_PREBUILT)
ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true) ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := verity_key_ramdisk LOCAL_MODULE := verity_key_ramdisk
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := verity_key LOCAL_SRC_FILES := verity_key
LOCAL_MODULE_STEM := verity_key LOCAL_MODULE_STEM := verity_key
@ -37,6 +41,8 @@ ifdef PRODUCT_ADB_KEYS
ifneq ($(filter eng userdebug,$(TARGET_BUILD_VARIANT)),) ifneq ($(filter eng userdebug,$(TARGET_BUILD_VARIANT)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := adb_keys LOCAL_MODULE := adb_keys
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
LOCAL_PREBUILT_MODULE_FILE := $(PRODUCT_ADB_KEYS) LOCAL_PREBUILT_MODULE_FILE := $(PRODUCT_ADB_KEYS)
@ -51,6 +57,8 @@ endif
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := otacerts LOCAL_MODULE := otacerts
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_STEM := otacerts.zip LOCAL_MODULE_STEM := otacerts.zip
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/security LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/security
@ -65,6 +73,8 @@ $(LOCAL_BUILT_MODULE): $(SOONG_ZIP) $(DEFAULT_SYSTEM_DEV_CERTIFICATE).x509.pem
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := otacerts.recovery LOCAL_MODULE := otacerts.recovery
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_STEM := otacerts.zip LOCAL_MODULE_STEM := otacerts.zip
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/security LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/etc/security

View file

@ -12,6 +12,10 @@
// 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 {
default_applicable_licenses: ["Android-Apache-2.0"],
}
prebuilt_etc { prebuilt_etc {
name: "preinstalled-packages-platform-aosp-product.xml", name: "preinstalled-packages-platform-aosp-product.xml",
product_specific: true, product_specific: true,

View file

@ -12,6 +12,19 @@
// 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 "build_make_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-BSD
// SPDX-license-identifier-CC-BY
// SPDX-license-identifier-GPL
// SPDX-license-identifier-MIT
default_applicable_licenses: ["build_make_license"],
}
python_binary_host { python_binary_host {
name: "generate-self-extracting-archive", name: "generate-self-extracting-archive",
srcs: ["generate-self-extracting-archive.py"], srcs: ["generate-self-extracting-archive.py"],

View file

@ -2,6 +2,15 @@
// //
// Custom version of cp. // Custom version of cp.
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "build_make_license"
// to get the below license kinds:
// legacy_restricted
default_applicable_licenses: ["build_make_license"],
}
cc_binary_host { cc_binary_host {
srcs: ["acp.c"], srcs: ["acp.c"],

View file

@ -12,6 +12,10 @@
// 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 {
default_applicable_licenses: ["Android-Apache-2.0"],
}
java_binary_host { java_binary_host {
name: "apicheck", name: "apicheck",
wrapper: "etc/apicheck", wrapper: "etc/apicheck",

View file

@ -2,6 +2,15 @@
// //
// Copies files into the directory structure described by a manifest // Copies files into the directory structure described by a manifest
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "build_make_license"
// to get the below license kinds:
// legacy_restricted
default_applicable_licenses: ["build_make_license"],
}
cc_binary_host { cc_binary_host {
name: "atree", name: "atree",
srcs: [ srcs: [

View file

@ -12,6 +12,19 @@
// 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 "build_make_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
// SPDX-license-identifier-BSD
// SPDX-license-identifier-CC-BY
// SPDX-license-identifier-GPL
// SPDX-license-identifier-MIT
default_applicable_licenses: ["build_make_license"],
}
droiddoc_exported_dir { droiddoc_exported_dir {
name: "droiddoc-templates-pdk", name: "droiddoc-templates-pdk",
path: "templates-pdk", path: "templates-pdk",

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 "build_make_license"
// to get the below license kinds:
// legacy_restricted
default_applicable_licenses: ["build_make_license"],
}
bootstrap_go_package { bootstrap_go_package {
name: "soong-fs_config", name: "soong-fs_config",
pkgPath: "android/soong/fs_config", pkgPath: "android/soong/fs_config",

View file

@ -42,6 +42,8 @@ fs_config_generate_extra_partition_list := $(strip \
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_dirs LOCAL_MODULE := fs_config_dirs
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := \ LOCAL_REQUIRED_MODULES := \
fs_config_dirs_system \ fs_config_dirs_system \
fs_config_dirs_system_ext \ fs_config_dirs_system_ext \
@ -55,6 +57,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_files LOCAL_MODULE := fs_config_files
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := \ LOCAL_REQUIRED_MODULES := \
fs_config_files_system \ fs_config_files_system \
fs_config_files_system_ext \ fs_config_files_system_ext \
@ -69,6 +73,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_dirs_system_ext LOCAL_MODULE := fs_config_dirs_system_ext
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_SYSTEM_EXTIMAGE)$(BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE),_fs_config_dirs_system_ext) LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_SYSTEM_EXTIMAGE)$(BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE),_fs_config_dirs_system_ext)
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
@ -79,6 +85,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_files_system_ext LOCAL_MODULE := fs_config_files_system_ext
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_SYSTEM_EXTIMAGE)$(BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE),_fs_config_files_system_ext) LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_SYSTEM_EXTIMAGE)$(BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE),_fs_config_files_system_ext)
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
@ -89,6 +97,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_dirs_product LOCAL_MODULE := fs_config_dirs_product
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_PRODUCTIMAGE)$(BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE),_fs_config_dirs_product) LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_PRODUCTIMAGE)$(BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE),_fs_config_dirs_product)
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
@ -99,6 +109,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_files_product LOCAL_MODULE := fs_config_files_product
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_PRODUCTIMAGE)$(BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE),_fs_config_files_product) LOCAL_REQUIRED_MODULES := $(if $(BOARD_USES_PRODUCTIMAGE)$(BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE),_fs_config_files_product)
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
@ -109,6 +121,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_dirs_nonsystem LOCAL_MODULE := fs_config_dirs_nonsystem
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),_fs_config_dirs_$(t)) LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),_fs_config_dirs_$(t))
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
@ -119,6 +133,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_files_nonsystem LOCAL_MODULE := fs_config_files_nonsystem
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),_fs_config_files_$(t)) LOCAL_REQUIRED_MODULES := $(foreach t,$(fs_config_generate_extra_partition_list),_fs_config_files_$(t))
include $(BUILD_PHONY_PACKAGE) include $(BUILD_PHONY_PACKAGE)
@ -129,6 +145,8 @@ include $(BUILD_PHONY_PACKAGE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_dirs_system LOCAL_MODULE := fs_config_dirs_system
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
include $(BUILD_SYSTEM)/base_rules.mk include $(BUILD_SYSTEM)/base_rules.mk
@ -154,6 +172,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := fs_config_files_system LOCAL_MODULE := fs_config_files_system
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
include $(BUILD_SYSTEM)/base_rules.mk include $(BUILD_SYSTEM)/base_rules.mk
@ -180,6 +200,8 @@ ifneq ($(filter vendor,$(fs_config_generate_extra_partition_list)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_dirs_vendor LOCAL_MODULE := _fs_config_dirs_vendor
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc
@ -204,6 +226,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_files_vendor LOCAL_MODULE := _fs_config_files_vendor
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/etc
@ -231,6 +255,8 @@ ifneq ($(filter oem,$(fs_config_generate_extra_partition_list)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_dirs_oem LOCAL_MODULE := _fs_config_dirs_oem
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
LOCAL_MODULE_PATH := $(TARGET_OUT_OEM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_OEM)/etc
@ -255,6 +281,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_files_oem LOCAL_MODULE := _fs_config_files_oem
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
LOCAL_MODULE_PATH := $(TARGET_OUT_OEM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_OEM)/etc
@ -282,6 +310,8 @@ ifneq ($(filter odm,$(fs_config_generate_extra_partition_list)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_dirs_odm LOCAL_MODULE := _fs_config_dirs_odm
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
LOCAL_MODULE_PATH := $(TARGET_OUT_ODM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_ODM)/etc
@ -306,6 +336,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_files_odm LOCAL_MODULE := _fs_config_files_odm
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
LOCAL_MODULE_PATH := $(TARGET_OUT_ODM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_ODM)/etc
@ -333,6 +365,8 @@ ifneq ($(filter vendor_dlkm,$(fs_config_generate_extra_partition_list)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_dirs_vendor_dlkm LOCAL_MODULE := _fs_config_dirs_vendor_dlkm
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_DLKM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_DLKM)/etc
@ -357,6 +391,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_files_vendor_dlkm LOCAL_MODULE := _fs_config_files_vendor_dlkm
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_DLKM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_DLKM)/etc
@ -384,6 +420,8 @@ ifneq ($(filter odm_dlkm,$(fs_config_generate_extra_partition_list)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_dirs_odm_dlkm LOCAL_MODULE := _fs_config_dirs_odm_dlkm
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
LOCAL_MODULE_PATH := $(TARGET_OUT_ODM_DLKM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_ODM_DLKM)/etc
@ -408,6 +446,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_files_odm_dlkm LOCAL_MODULE := _fs_config_files_odm_dlkm
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
LOCAL_MODULE_PATH := $(TARGET_OUT_ODM_DLKM)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_ODM_DLKM)/etc
@ -435,6 +475,8 @@ ifneq ($(BOARD_USES_PRODUCTIMAGE)$(BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_dirs_product LOCAL_MODULE := _fs_config_dirs_product
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/etc
@ -459,6 +501,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_files_product LOCAL_MODULE := _fs_config_files_product
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT)/etc
@ -485,6 +529,8 @@ ifneq ($(BOARD_USES_SYSTEM_EXTIMAGE)$(BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_dirs_system_ext LOCAL_MODULE := _fs_config_dirs_system_ext
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs LOCAL_INSTALLED_MODULE_STEM := fs_config_dirs
LOCAL_MODULE_PATH := $(TARGET_OUT_SYSTEM_EXT)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_SYSTEM_EXT)/etc
@ -509,6 +555,8 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/fs_config_generator.py $(TARGET_FS_CONFIG_G
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := _fs_config_files_system_ext LOCAL_MODULE := _fs_config_files_system_ext
LOCAL_LICENSE_KINDS := legacy_restricted
LOCAL_LICENSE_CONDITIONS := restricted
LOCAL_MODULE_CLASS := ETC LOCAL_MODULE_CLASS := ETC
LOCAL_INSTALLED_MODULE_STEM := fs_config_files LOCAL_INSTALLED_MODULE_STEM := fs_config_files
LOCAL_MODULE_PATH := $(TARGET_OUT_SYSTEM_EXT)/etc LOCAL_MODULE_PATH := $(TARGET_OUT_SYSTEM_EXT)/etc

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 "build_make_license"
// to get the below license kinds:
// legacy_restricted
default_applicable_licenses: ["build_make_license"],
}
cc_binary_host { cc_binary_host {
name: "fs_get_stats", name: "fs_get_stats",
srcs: ["fs_get_stats.c"], srcs: ["fs_get_stats.c"],

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 "build_make_license"
// to get the below license kinds:
// legacy_restricted
default_applicable_licenses: ["build_make_license"],
}
cc_library_host_static { cc_library_host_static {
srcs: ["CopyFile.c"], srcs: ["CopyFile.c"],

View file

@ -1,3 +1,7 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
java_defaults { java_defaults {
name: "product-config-defaults", name: "product-config-defaults",
srcs: ["src/**/*.java"], srcs: ["src/**/*.java"],
@ -21,4 +25,3 @@ java_test_host {
manifest: "TEST_MANIFEST.MF", manifest: "TEST_MANIFEST.MF",
test_suites: ["general-tests"] test_suites: ["general-tests"]
} }

View file

@ -22,6 +22,10 @@
// `releasetools_X_defaults` in their defaults. // `releasetools_X_defaults` in their defaults.
// //
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
python_defaults { python_defaults {
name: "releasetools_add_img_to_target_files_defaults", name: "releasetools_add_img_to_target_files_defaults",
srcs: [ srcs: [

View file

@ -16,6 +16,10 @@
// the signapk tool (a .jar application used to sign packages) // the signapk tool (a .jar application used to sign packages)
// ============================================================ // ============================================================
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
java_binary_host { java_binary_host {
name: "signapk", name: "signapk",
srcs: ["src/**/*.java"], srcs: ["src/**/*.java"],

View file

@ -16,6 +16,10 @@
// the signtos tool - signs Trusty images // the signtos tool - signs Trusty images
// ============================================================ // ============================================================
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
java_library_host { java_library_host {
name: "signtos", name: "signtos",
srcs: ["SignTos.java"], srcs: ["SignTos.java"],

View file

@ -4,6 +4,10 @@
// Zip alignment tool // Zip alignment tool
// //
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults { cc_defaults {
name: "zipalign_defaults", name: "zipalign_defaults",
target: { target: {

View file

@ -18,6 +18,10 @@
// Zip timestamp removal tool // Zip timestamp removal tool
// //
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_binary_host { cc_binary_host {
srcs: [ srcs: [