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
This commit is contained in:
Dan Willemsen
2019-08-08 10:58:09 -07:00
parent 0b690ed6d9
commit 8da52d4b9d
2 changed files with 3 additions and 14 deletions

View File

@@ -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