diff options
author | 2021-08-10 20:42:03 +0000 | |
---|---|---|
committer | 2021-09-13 21:29:14 +0000 | |
commit | 925aa09ea1525030be3bbdd00842a8787f879fd2 (patch) | |
tree | bd1b788b1c6a11a880dc271672d2ffbaa3c564f0 /android/defs.go | |
parent | bf49705608a09c68a243de03dceefb4bff2c343f (diff) |
Add module based host-tools snapshot
Add new module:
host_snapshot {
name: "host-snapshot"
deps: [
(list of host tools)
],
...
}
Package host tools using android.PackagingBase to capture host tools and transitive packaging data.
Add JSON meta data to snapshot that allows snapshot to be installed via development/vendor_snapshot/update.py
Add support to generate a fake host snapshot of all host modules that is used to detect required
modules via development/vendor_snapshot/update.py.
Bug: 192556798
Bug: 194799048
Bug: 192896149
Test: m HOST_FAKE_SNAPSHOT_ENABLE=true host-fake-snapshot dist -- check snapshot exists in dist
Change-Id: I849c4db801cd858408f6fe6a3ce69262a23a5be9
Diffstat (limited to 'android/defs.go')
-rw-r--r-- | android/defs.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/android/defs.go b/android/defs.go index b3ff376d1..c8e2e9b3c 100644 --- a/android/defs.go +++ b/android/defs.go @@ -188,6 +188,15 @@ func WriteFileRule(ctx BuilderContext, outputFile WritablePath, content string) buildWriteFileRule(ctx, outputFile, content) } +func CatFileRule(ctx BuilderContext, paths Paths, outputFile WritablePath) { + ctx.Build(pctx, BuildParams{ + Rule: Cat, + Inputs: paths, + Output: outputFile, + Description: "combine files to " + outputFile.Base(), + }) +} + // shellUnescape reverses proptools.ShellEscape func shellUnescape(s string) string { // Remove leading and trailing quotes if present |