Implement copy_files function
Bug: 193540681 Test: treehugger Change-Id: Iffc64551e733747a9a29c14b1f674b3a533f44ba
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
### PRODUCT_COPY_FILES += device_from:device_to
|
||||
### include $(LOCAL_PATH)/include1.mk
|
||||
### PRODUCT_PACKAGES += dev_after
|
||||
### PRODUCT_COPY_FILES += $(call find-copy-subdir-files,audio_platform_info*.xml,device/google/redfin/audio,$(TARGET_COPY_OUT_VENDOR)/etc) xyz
|
||||
### PRODUCT_COPY_FILES += $(call find-copy-subdir-files,audio_platform_info*.xml,device/google/redfin/audio,$(TARGET_COPY_OUT_VENDOR)/etc) xyz:/etc/xyz
|
||||
### PRODUCT_COPY_FILES += $(call copy-files,x.xml y.xml,/etc)
|
||||
### $(call add_soong_namespace,NS1)
|
||||
### $(call add_soong_config_var_value,NS1,v1,abc)
|
||||
### $(call add_soong_config_var_value,NS1,v2,def)
|
||||
@@ -45,7 +46,8 @@ def init(g, handle):
|
||||
_include1_init(g, handle)
|
||||
cfg["PRODUCT_PACKAGES"] += ["dev_after"]
|
||||
cfg["PRODUCT_COPY_FILES"] += (rblf.find_and_copy("audio_platform_info*.xml", "device/google/redfin/audio", "||VENDOR-PATH-PH||/etc") +
|
||||
["xyz"])
|
||||
["xyz:/etc/xyz"])
|
||||
cfg["PRODUCT_COPY_FILES"] += rblf.copy_files("x.xml y.xml", "/etc")
|
||||
rblf.add_soong_config_namespace(g, "NS1")
|
||||
rblf.add_soong_config_var_value(g, "NS1", "v1", "abc")
|
||||
rblf.add_soong_config_var_value(g, "NS1", "v2", "def")
|
||||
|
@@ -51,7 +51,9 @@ assert_eq(
|
||||
"part_from:part_to",
|
||||
"device_from:device_to",
|
||||
"device/google/redfin/audio/audio_platform_info_noextcodec_snd.xml:||VENDOR-PATH-PH||/etc/audio_platform_info_noextcodec_snd.xml",
|
||||
"xyz"
|
||||
"xyz:/etc/xyz",
|
||||
"x.xml:/etc/x.xml",
|
||||
"y.xml:/etc/y.xml",
|
||||
],
|
||||
"PRODUCT_HOST_PACKAGES": ["host"],
|
||||
"PRODUCT_PACKAGES": [
|
||||
|
Reference in New Issue
Block a user