aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreehugger Robot2019-01-11 16:32:57 -0600
committerGerrit Code Review2019-01-11 16:32:57 -0600
commitd148d61ccf2f0b591440be24e454d25c0b5058d7 (patch)
tree30a269692107f68a24e044335a2fa93519c3bb65
parentd15c8c1da4a14f9ac4137e204e6b5887c266e754 (diff)
parent0636428d43ba5c069b4bf91abad31623c823bfe6 (diff)
downloadplatform-build-d148d61ccf2f0b591440be24e454d25c0b5058d7.tar.gz
platform-build-d148d61ccf2f0b591440be24e454d25c0b5058d7.tar.xz
platform-build-d148d61ccf2f0b591440be24e454d25c0b5058d7.zip
Merge "Deprecate USER in favor of BUILD_USERNAME"
-rw-r--r--Changes.md10
-rw-r--r--core/config.mk1
2 files changed, 11 insertions, 0 deletions
diff --git a/Changes.md b/Changes.md
index 2d5cd9766..1ed6bf81d 100644
--- a/Changes.md
+++ b/Changes.md
@@ -1,5 +1,15 @@
1# Build System Changes for Android.mk Writers 1# Build System Changes for Android.mk Writers
2 2
3## `USER` deprecation {#USER}
4
5`USER` will soon be `nobody` in many cases due to the addition of a sandbox
6around the Android build. Most of the time you shouldn't need to know the
7identity of the user running the build, but if you do, it's available in the
8make variable `BUILD_USERNAME` for now.
9
10Similarly, the `hostname` tool will also be returning a more consistent value
11of `android-build`. The real value is available as `BUILD_HOSTNAME`.
12
3## `BUILD_NUMBER` removal from Android.mk {#BUILD_NUMBER} 13## `BUILD_NUMBER` removal from Android.mk {#BUILD_NUMBER}
4 14
5`BUILD_NUMBER` should not be used directly in Android.mk files, as it would 15`BUILD_NUMBER` should not be used directly in Android.mk files, as it would
diff --git a/core/config.mk b/core/config.mk
index c0a159dce..a3be19441 100644
--- a/core/config.mk
+++ b/core/config.mk
@@ -90,6 +90,7 @@ $(KATI_obsolete_var \
90 GLOBAL_CFLAGS_NO_OVERRIDE GLOBAL_CPPFLAGS_NO_OVERRIDE \ 90 GLOBAL_CFLAGS_NO_OVERRIDE GLOBAL_CPPFLAGS_NO_OVERRIDE \
91 ,GCC support has been removed. Use Clang instead) 91 ,GCC support has been removed. Use Clang instead)
92$(KATI_obsolete_var DIST_DIR dist_goal,Use dist-for-goals instead. See $(CHANGES_URL)#dist) 92$(KATI_obsolete_var DIST_DIR dist_goal,Use dist-for-goals instead. See $(CHANGES_URL)#dist)
93$(KATI_deprecated_var USER,Use BUILD_USERNAME instead. See $(CHANGES_URL)#USER)
93 94
94# This is marked as obsolete in envsetup.mk after reading the BoardConfig.mk 95# This is marked as obsolete in envsetup.mk after reading the BoardConfig.mk
95$(KATI_deprecate_export It is a global setting. See $(CHANGES_URL)#export_keyword) 96$(KATI_deprecate_export It is a global setting. See $(CHANGES_URL)#export_keyword)