Lines Matching refs:g
41 def _versions_default(g, all_versions):
59 _build_id_init(g)
60 g["INTERNAL_BUILD_ID_MAKEFILE"] = "build/make/core/build_id"
63 g.setdefault("TARGET_PLATFORM_VERSION", v_default)
64 if g["TARGET_PLATFORM_VERSION"] not in allowed_versions:
65 fail("% is not valid, must be one of %s" % (g["TARGET_PLATFORM_VERSION"], allowed_versions))
67 g["DEFAULT_PLATFORM_VERSION"] = v_default
68 g["PLATFORM_VERSION_LAST_STABLE"] = 11
69 g.setdefault("PLATFORM_VERSION_CODENAME", g["TARGET_PLATFORM_VERSION"])
72 g.setdefault("PLATFORM_SDK_VERSION", 30)
73 version_codename = g["PLATFORM_VERSION_CODENAME"]
75 g.setdefault("PLATFORM_VERSION", g["PLATFORM_VERSION_LAST_STABLE"])
76 g["PLATFORM_PREVIEW_SDK_VERSION"] = 0
77 g.setdefault("DEFAULT_APP_TARGET_SDK", g["PLATFORM_SDK_VERSION"])
78 g.setdefault("PLATFORM_VNDK_VERSION", g["PLATFORM_SDK_VERSION"])
80 g.setdefault("PLATFORM_VERSION", version_codename)
81 g.setdefault("PLATFORM_PREVIEW_SDK_VERSION", 1)
82 g.setdefault("DEFAULT_APP_TARGET_SDK", version_codename)
83 g.setdefault("PLATFORM_VNDK_VERSION", version_codename)
85 g.setdefault("PLATFORM_SYSTEMSDK_MIN_VERSION", 28)
86 …versions = [str(i) for i in range(g["PLATFORM_SYSTEMSDK_MIN_VERSION"], g["PLATFORM_SDK_VERSION"] +…
88 g["PLATFORM_SYSTEMSDK_VERSIONS"] = sorted(versions)
95 g.setdefault("PLATFORM_SECURITY_PATCH", "2021-03-05")
96 dt = 'TZ="GMT" %s' % g["PLATFORM_SECURITY_PATCH"]
97 g.setdefault("PLATFORM_SECURITY_PATCH_TIMESTAMP", rblf_shell("date -d '%s' +%%s" % dt))
101 g.setdefault("PLATFORM_BASE_OS", "")
103 …# Used to signify special builds. E.g., branches and/or releases, like "M5-RC7". Can be an arbit…
105 g.setdefault("BUILD_ID", "UNKNOWN")
108 …# E.g., a perforce changelist number or a git hash. Can be an arbitrary string (to allow for sour…
113 g.setdefault("BUILD_NUMBER", "eng.%s.%s" % (g["USER"], "TIMESTAMP"))
117 g.setdefault("PLATFORM_MIN_SUPPORTED_TARGET_SDK_VERSION", 23)
119 def init(g):
125 g: globals dictionary
128 _versions_default(g, all_versions)
130 g["IS_AT_LEAST" + v] = True
131 if v == g["TARGET_PLATFORM_VERSION"]:
138 g["CORRECT_BUILD_ENV_SEQUENCE_NUMBER"] = 13
140 g.setdefault("TARGET_PRODUCT", "aosp_arm")
141 g.setdefault("TARGET_BUILD_VARIANT", "eng")
143 g.setdefault("TARGET_BUILD_APPS", [])
144 …g["TARGET_BUILD_UNBUNDLED"] = (g["TARGET_BUILD_APPS"] != []) or (getattr(g, "TARGET_BUILD_UNBUNDLE…
151 g["HOST_OS"] = "linux"
153 g["HOST_OS"] = "darwin"
157 # TODO(asmundak): set g.HOST_OS_EXTRA
159 g["BUILD_OS"] = g["HOST_OS"]
164 g["HOST_ARCH"] = "x86_64"
165 g["HOST_2ND_ARCH"] = "x86"
166 g["HOST_IS_64_BIT"] = True
169 elif g["HOST_OS"] == "darwin":
170 g["HOST_2ND_ARCH"] = ""
172 g["HOST_2ND_ARCH_VAR_PREFIX"] = "2ND_"
173 g["HOST_2ND_ARCH_MODULE_SUFFIX"] = "_32"
174 g["HOST_CROSS_2ND_ARCH_VAR_PREFIX"] = "2ND_"
175 g["HOST_CROSS_2ND_ARCH_MODULE_SUFFIX"] = "_64"
176 g["TARGET_2ND_ARCH_VAR_PREFIX"] = "2ND_"
183 g["BUILD_ARCH"] = g["HOST_ARCH"]
184 g["BUILD_2ND_ARCH"] = g["HOST_2ND_ARCH"]
187 g.setdefault("HOST_BUILD_TYPE", "release")
188 if g["HOST_BUILD_TYPE"] not in ["release", "debug"]:
189 fail("HOST_BUILD_TYPE must be either release or debug, not '%s'" % g["HOST_BUILD_TYPE"])
194 g["ART_APEX_JARS"] = [
202 if g.get("TARGET_BUILD_TYPE", "") != "debug":
203 g["TARGET_BUILD_TYPE"] = "release"