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

@ -34,11 +34,11 @@ ifdef LOCAL_IS_HOST_MODULE
ifneq ($(LOCAL_IS_HOST_MODULE),true)
$(error $(LOCAL_PATH): LOCAL_IS_HOST_MODULE must be "true" or empty, not "$(LOCAL_IS_HOST_MODULE)")
endif
my_prefix:=HOST_
my_host:=host-
my_prefix := HOST_
my_host := host-
else
my_prefix:=TARGET_
my_host:=
my_prefix := TARGET_
my_host :=
endif
###########################################################
@ -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

@ -22,9 +22,9 @@
LOCAL_IS_HOST_MODULE := $(call true-or-empty,$(LOCAL_IS_HOST_MODULE))
ifeq ($(LOCAL_IS_HOST_MODULE),true)
my_prefix:=HOST_
my_prefix := HOST_
else
my_prefix:=TARGET_
my_prefix := TARGET_
endif
LOCAL_MODULE_CLASS := $(strip $(LOCAL_MODULE_CLASS))

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

View File

@ -17,9 +17,9 @@ $(error dont use LOCAL_PREBUILT_JAVA_LIBRARIES anymore LOCAL_PATH=$(LOCAL_PATH))
endif
ifdef LOCAL_IS_HOST_MODULE
my_prefix:=HOST_
my_prefix := HOST_
else
my_prefix:=TARGET_
my_prefix := TARGET_
endif
ifeq (SHARED_LIBRARIES,$(LOCAL_MODULE_CLASS))
# Put the built targets of all shared libraries in a common directory