Skip to content

Commit 4d1b4cb

Browse files
committed
chore: remove redundant android_out_of_tree
Currently `BUILDER_ANDROID_NINJA` denotes Android out of tree build thus `ANDROID_OUT_OF_TREE` config is redundant and is not needed anymore. Signed-off-by: Sebastian Birunt <[email protected]> Change-Id: Ia4ecf0e4acd765212e23fa2e700684c7f6b61fe6
1 parent 2371005 commit 4d1b4cb

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

core/standalone.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,6 @@ func Main() {
262262
ctx.RegisterBottomUpMutator("collect_buildbp", collectBuildBpFilesMutator)
263263
ctx.RegisterSingletonType("androidbp_singleton", androidBpSingletonFactory)
264264
} else if builder_android_ninja {
265-
// `builder_android_ninja` denotes it is Android out of tree build
266-
// thus `android_out_of_tree` should be `true`.
267-
if out_of_tree, _ := cfg.Properties.GetBoolMaybe("android_out_of_tree"); !out_of_tree {
268-
panic("Wrong configuration for 'builder_android_ninja' and 'android_out_of_tree'.")
269-
}
270265
cfg.Generator = &androidNinjaGenerator{}
271266
} else {
272267
utils.Die("Unknown builder backend")

core/toolchain/clang.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ func newToolchainClangCommon(props *config.Properties, tgt TgtType) (tc toolchai
105105

106106
tc.target = props.GetString(string(tgt) + "_clang_triple")
107107

108-
out_of_tree, _ := props.GetBoolMaybe("android_out_of_tree")
109-
110108
// Here we add flags relating to android out of tree builds
111-
if out_of_tree {
109+
if out_of_tree := props.GetBool("builder_android_ninja"); out_of_tree {
112110
tc.cflags = append(tc.cflags, "-DANDROID")
113111

114112
if tgt == TgtTypeTarget {

mconfig/basics.Mconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ config FUCHSIA
2424

2525
endchoice
2626

27-
config ANDROID_OUT_OF_TREE
28-
bool
29-
depends on ANDROID
30-
default y if BUILDER_ANDROID_NINJA
31-
default n
32-
3327
choice
3428
prompt "Builder"
3529
default BUILDER_ANDROID_BP if ANDROID

tests_android_oot/bootstrap_android_oot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ ln -sf "bob" "${BUILDDIR}/buildme"
106106

107107
# echo "To configure the build directory, run ${BUILDDIR}/config ARGS"
108108
if [ $MENU -ne 1 ] || [ ! -f "${BPBUILD_DIR}/${CONFIGNAME}" ] ; then
109-
printf "Running configuration:\n \e[35m%s/config ANDROID=y ANDROID_OUT_OF_TREE=y BUILDER_ANDROID_BP=y ANDROID_PLATFORM_VERSION=\"%s\" %s\e[0m\n" "${BUILDDIR}" "${ANDROID_VERSION}" "$@"
110-
"${BUILDDIR}/config" ANDROID=y ANDROID_OUT_OF_TREE=y BUILDER_ANDROID_BP=y ANDROID_PLATFORM_VERSION="${ANDROID_VERSION}" "$@"
109+
printf "Running configuration:\n \e[35m%s/config ANDROID=y BUILDER_ANDROID_NINJA=y ANDROID_PLATFORM_VERSION=\"%s\" %s\e[0m\n" "${BUILDDIR}" "${ANDROID_VERSION}" "$@"
110+
"${BUILDDIR}/config" ANDROID=y BUILDER_ANDROID_NINJA=y ANDROID_PLATFORM_VERSION="${ANDROID_VERSION}" "$@"
111111
fi
112112

113113
if [ $MENU -eq 1 ] ; then

0 commit comments

Comments
 (0)