NOTICE file only module

To pick up a NOTICE file in LOCAL_PATH and attach it to
/system/lib/libfoo.so, use the following syntax:

include $(CLEAR_VARS)
LOCAL_MODULE_CLASS := NOTICE_FILES
LOCAL_INSTALLED_MODULE := $(PRODUCT_OUT)/system/lib/libfoo.so
include $(BUILD_NOTICE_FILE)

Bug: 7460213
Change-Id: Ie692be72deab37be04d1b578578c131a0885a090
This commit is contained in:
Ying Wang
2012-11-01 17:22:33 -07:00
parent 6487fc1889
commit 13d6950ef8
5 changed files with 20 additions and 9 deletions

View File

@@ -582,6 +582,6 @@ $(foreach tag,$(LOCAL_MODULE_TAGS),\
## NOTICE files
###########################################################
include $(BUILD_SYSTEM)/notice_files.mk
include $(BUILD_NOTICE_FILE)
#:vi noexpandtab

View File

@@ -79,6 +79,7 @@ BUILD_DROIDDOC:= $(BUILD_SYSTEM)/droiddoc.mk
BUILD_COPY_HEADERS := $(BUILD_SYSTEM)/copy_headers.mk
BUILD_NATIVE_TEST := $(BUILD_SYSTEM)/native_test.mk
BUILD_HOST_NATIVE_TEST := $(BUILD_SYSTEM)/host_native_test.mk
BUILD_NOTICE_FILE := $(BUILD_SYSTEM)/notice_files.mk
-include cts/build/config.mk

View File

@@ -9,6 +9,16 @@ ifeq ($(LOCAL_MODULE_CLASS),GYP)
notice_file :=
endif
ifeq ($(LOCAL_MODULE_CLASS),NOTICE_FILES)
# If this is a NOTICE-only module, we don't include base_rule.mk,
# so my_prefix is not set at this point.
ifeq ($(LOCAL_IS_HOST_MODULE),true)
my_prefix := HOST_
else
my_prefix := TARGET_
endif
endif
ifdef notice_file
# This relies on the name of the directory in PRODUCT_OUT matching where