Add macros for non-module license metadata and deps
Gets rid of .meta_module files and instead defers emitting rules until after all the non-module targets have been processed. Allows direct dependency on .meta_lic files, which in turn depend on license text files. Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Test: m systemlicense Test: m reportmissinglicenses Change-Id: I2c467feac6e13a9366ff66f924889f1dbd48c3f1
This commit is contained in:
@@ -87,6 +87,24 @@ define word-colon
|
||||
$(word $(1),$(subst :,$(space),$(2)))
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
## Read a colon-separated sublist out of a colon-separated
|
||||
## list of words.
|
||||
## This has similar behavior to the built-in function
|
||||
## $(wordlist s,e,str) except both the input and output
|
||||
## word lists are colon-separated.
|
||||
##
|
||||
## The individual words may not contain spaces.
|
||||
##
|
||||
## $(1): 1 based index start
|
||||
## $(2): 1 based index end (can be 0)
|
||||
## $(3): value of the form a:b:c...
|
||||
###########################################################
|
||||
|
||||
define wordlist-colon
|
||||
$(subst $(space),:,$(wordlist $(1),$(2),$(subst :,$(space),$(3))))
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
## Convert "a=b c= d e = f = g h=" into "a=b c=d e= f=g h="
|
||||
##
|
||||
|
Reference in New Issue
Block a user