diff options
Diffstat (limited to 'android/defs.go')
-rw-r--r-- | android/defs.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/defs.go b/android/defs.go index 6e5bb053f..18eed2dae 100644 --- a/android/defs.go +++ b/android/defs.go @@ -58,6 +58,14 @@ var ( }, "cpFlags", "extraCmds") + // A copy rule that doesn't preserve symlinks. + CpNoPreserveSymlink = pctx.AndroidStaticRule("CpNoPreserveSymlink", + blueprint.RuleParams{ + Command: "rm -f $out && cp $cpFlags $in $out$extraCmds", + Description: "cp $out", + }, + "cpFlags", "extraCmds") + // A copy rule that only updates the output if it changed. CpIfChanged = pctx.AndroidStaticRule("CpIfChanged", blueprint.RuleParams{ |