summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2019-08-08 10:58:09 -0700
committerDan Willemsen <dwillemsen@google.com>2019-08-08 10:58:09 -0700
commit8da52d4b9d982f98586135f419f9f7f30140b8fd (patch)
treedc8cbb40bd30e25c7c3587d5bd750d181898b3ef /common
parent0b690ed6d908337e8c7954221ad1e6f725b8af16 (diff)
Move TOP/TOPDIR to build/make/common/core.mk
So that they're set properly during dumpvars / product loading. SHELL is already set in common/core.mk, so it's not necessary to be in core/main.mk as well (which quickly loads core/config.mk, which loads common/core.mk). Test: get_build_var TOP Test: get_build_var TOPDIR Change-Id: I8179ac32628b74ccf29851dc53bf83cfb4b280fd
Diffstat (limited to 'common')
-rw-r--r--common/core.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/core.mk b/common/core.mk
index e5264b072d..7d505c01d9 100644
--- a/common/core.mk
+++ b/common/core.mk
@@ -42,6 +42,9 @@ endef
backslash := \a
backslash := $(patsubst %a,%,$(backslash))
+TOP :=$= .
+TOPDIR :=$=
+
# Prevent accidentally changing these variables
.KATI_READONLY := SHELL empty space comma newline pound backslash