The .git/logs/HEAD doesn't always exist. In a new created repo, it may
cause the error:
error: external/llvm/Android.bp:157:1: module "llvm-gen-revision": source path external/llvm/.git/logs/HEAD does not exist
Use wildcard to avoid that.
genrule {
name: "llvm-gen-revision",
out: ["llvm/Support/VCSRevision.h"],
- srcs: [".git/logs/HEAD"],
+ srcs: [".git/logs/HEAD*"],
tool_files: ["git_sha1_gen.py"],
cmd: "python $(location git_sha1_gen.py) --output $(out)",
}