bitbake.conf: use := for BUILD_OS and BUILD_ARCH
authorChris Larson <chris_larson@mentor.com>
Sun, 23 May 2010 17:43:44 +0000 (10:43 -0700)
committerChris Larson <chris_larson@mentor.com>
Thu, 10 Jun 2010 18:35:00 +0000 (11:35 -0700)
These don't change, so their initial values should be just fine.  Apparently,
in a typical build, those os.uname() snippets are called around 46k times,
which seems a tad excessive :)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
conf/bitbake.conf

index 12a5522..ee93cd4 100644 (file)
@@ -90,8 +90,8 @@ target_datadir := "${datadir}"
 # Architecture-dependent build variables.
 ##################################################################
 
-BUILD_ARCH = "${@os.uname()[4]}"
-BUILD_OS = "${@os.uname()[0].lower()}"
+BUILD_ARCH := "${@os.uname()[4]}"
+BUILD_OS := "${@os.uname()[0].lower()}"
 BUILD_VENDOR = ""
 BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}"
 BUILD_PREFIX = ""