Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [PATCH 1/4] bitbake.conf: use := for BUILD_OS and BUILD_ARCH
@ 2010-05-27 21:16 Chris Larson
  2010-05-27 21:16 ` [PATCH 2/4] bitbake.conf: don't filter out nonexisting paths from FILESPATH Chris Larson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Larson @ 2010-05-27 21:16 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

From: Chris Larson <chris_larson@mentor.com>

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>

diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 12a5522..ee93cd4 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 = ""
-- 
1.7.0.4




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-27 21:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-27 21:16 [PATCH 1/4] bitbake.conf: use := for BUILD_OS and BUILD_ARCH Chris Larson
2010-05-27 21:16 ` [PATCH 2/4] bitbake.conf: don't filter out nonexisting paths from FILESPATH Chris Larson
2010-05-27 21:16 ` [PATCH 3/4] bitbake.conf: make the EXTENDPE bits slightly less disturbing Chris Larson
2010-05-27 21:16 ` [PATCH 4/4] bitbake.conf: Drop some unnecessary getVar usage in python snippets Chris Larson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox