diff options
author | 2024-12-20 14:05:10 -0800 | |
---|---|---|
committer | 2024-12-20 14:05:10 -0800 | |
commit | 2fe362eee70d8422718c3fbc3117a1bddd1d0ea0 (patch) | |
tree | 70d5ae7540b2f2135c42e9a1728fffd8b9e9a06d /android/defs.go | |
parent | bd7afdc2a15e776e9aff208577ab16fd693499f2 (diff) |
Revert "Define a tool and a static rule to calculate the hash of a directory"
This reverts commit bd7afdc2a15e776e9aff208577ab16fd693499f2.
Reason for revert: No longer needed
Change-Id: I71874f5426dcd20b3bacf04379fb3f897835a4d5
Diffstat (limited to 'android/defs.go')
-rw-r--r-- | android/defs.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/android/defs.go b/android/defs.go index c4e3b995f..9f3fb1ee6 100644 --- a/android/defs.go +++ b/android/defs.go @@ -102,18 +102,6 @@ var ( Description: "concatenate files to $out", }) - // Calculates the hash of a directory and writes to a file. - // Note that the directory to calculate the hash is intentionally not listed as an input, - // to prevent adding directory as a ninja dependency. Thus, an implicit dependency to a file - // is required. - WriteDirectoryHash = pctx.AndroidStaticRule("WriteDirectoryHash", - blueprint.RuleParams{ - Command: "rm -f $out && ${calculateDirectoryHash} $dir $out", - CommandDeps: []string{"${calculateDirectoryHash}"}, - Description: "Calculates the hash of a directory and writes to $out", - }, "dir", - ) - // Used only when USE_GOMA=true is set, to restrict non-goma jobs to the local parallelism value localPool = blueprint.NewBuiltinPool("local_pool") @@ -130,6 +118,4 @@ func init() { pctx.VariableFunc("RBEWrapper", func(ctx PackageVarContext) string { return ctx.Config().RBEWrapper() }) - - pctx.HostBinToolVariable("calculateDirectoryHash", "calculate_directory_hash") } |