Remove "cp $(out) ." from genrule

$(out) is the correct location for the output, and "." is the root of the source tree.  Remove "cp $(out) ." to avoid writing to the source tree.

Bug: 185211826
Change-Id: I71d961d885e450641773de3299ce6f1014b8ce92
Test: treehugger
This commit is contained in:
Colin Cross
2021-05-11 18:56:41 +00:00
parent 3a8ea8727d
commit 139b977fae

View File

@@ -100,8 +100,7 @@ genrule {
+ "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && "
+ "mkdir -p $$RES_DIR/values && "
+ "cp $${INPUTS[1]} $$RES_DIR/values && "
+ "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR && "
+ "cp $(out) ."
+ "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
}
android_app {