summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-05-23 10:43:44 -0700
committerChris Larson <chris_larson@mentor.com>2010-06-10 11:35:00 -0700
commit9004bd8f2ee251308a21b8bdb35f070d349266d0 (patch)
tree7eb7ce9de8eeefe31235169125b99dc4b5c55eb0
parent2959eb8c60df3b7ea1833238f9eac05cdafe1c06 (diff)
bitbake.conf: use := for BUILD_OS and BUILD_ARCH
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>
-rw-r--r--conf/bitbake.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 12a5522029..ee93cd485b 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -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 = ""