mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake.conf: Use immediate expansion for os.uname()
Use immediate expansion for BUILD_ARCH and BUILD_OS since there is no point in repeatedly calling os.uname() throughout parsing. This is worth around 2% of parsing time, small but measurable. (From OE-Core rev: 03482382b797f3501c3fb0df0fe12bd4e5e51a39) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -81,8 +81,10 @@ ROOT_HOME ??= "/home/root"
|
|||||||
# Architecture-dependent build variables.
|
# Architecture-dependent build variables.
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
BUILD_ARCH = "${@os.uname()[4]}"
|
# Immediate expansion since there is no point in reapeatedly calling
|
||||||
BUILD_OS = "${@os.uname()[0].lower()}"
|
# os.uname() throughout parsing
|
||||||
|
BUILD_ARCH := "${@os.uname()[4]}"
|
||||||
|
BUILD_OS := "${@os.uname()[0].lower()}"
|
||||||
BUILD_VENDOR = ""
|
BUILD_VENDOR = ""
|
||||||
BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
|
BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
|
||||||
BUILD_PREFIX = ""
|
BUILD_PREFIX = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user