BUILD_NUMBER and BUILD_HOSTNAME doesn't affect kati regeneration
* Extract BUILD_NUMBER, BUILD_HOSTNAME to file to avoid kati change * Handle FILE_NAME_TAG_PLACEHOLDER string in dist in build/make/packaging/distdir.mk Test: check if kati isn't invoked even though BUILD_NUMBER, BUILD_HOSTNAME is changed Test: m && m, and check if the second m is no-op Bug: 278060169 Change-Id: I1b37760242853c1a145bad255d0bb15524234b25 Merged-In: I1b37760242853c1a145bad255d0bb15524234b25
This commit is contained in:
18
Changes.md
18
Changes.md
@@ -493,6 +493,24 @@ $(call dist-for-goals,foo,bar/baz)
|
||||
|
||||
will copy `bar/baz` into `$DIST_DIR/baz` when `m foo dist` is run.
|
||||
|
||||
#### FILE_NAME_TAG {#FILE_NAME_TAG}
|
||||
|
||||
To embed the `BUILD_NUMBER` (or for local builds, `eng.${USER}`), include
|
||||
`FILE_NAME_TAG_PLACEHOLDER` in the destination:
|
||||
|
||||
``` make
|
||||
# you can use dist-for-goals-with-filenametag function
|
||||
$(call dist-for-goals-with-filenametag,foo,bar.zip)
|
||||
# or use FILE_NAME_TAG_PLACEHOLDER manually
|
||||
$(call dist-for-goals,foo,bar.zip:baz-FILE_NAME_TAG_PLACEHOLDER.zip)
|
||||
```
|
||||
|
||||
Which will produce `$DIST_DIR/baz-1234567.zip` on build servers which set
|
||||
`BUILD_NUMBER=1234567`, or `$DIST_DIR/baz-eng.builder.zip` for local builds.
|
||||
|
||||
If you just want to append `BUILD_NUMBER` at the end of basename, use
|
||||
`dist-for-goals-with-filenametag` instead of `dist-for-goals`.
|
||||
|
||||
#### Renames during copy
|
||||
|
||||
Instead of specifying just a file, a destination name can be specified,
|
||||
|
Reference in New Issue
Block a user