Skip to contentSkip to conversation

bitbake: Allow seting of baselib

PATCH In review Kumar Gala 2 participants 3 messages Aug 4, 2011

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/2 bitbake: Allow seting of baselib

Allow for baselib to be set to something other than 'lib'. This is useful for the 64-bit arch cases in which we want baselib set to 'lib64'.

---
 meta/conf/bitbake.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/bitbake.conf +1 -1
index 6f0b42c..c50ffb9 100644
@@ -7,7 +7,7 @@
 #
 
 # Used by multilib code to change the library paths
-baselib = "lib"
+baselib = "${@d.getVar('BASE_LIB', True) or 'lib'}"
 
 # Path prefixes
 export base_prefix = ""
Signature · 1 line
1.7.3.4
author
#1 lore raw

PATCH 2/2 arch-powerpc64: set BASE_LIB to 'lib64'

Default baselib location on ppc64 to 'lib64'. This matches what other Linux ppc64 distro's have done to date and keeps thing in sync for the multilib case.

---
 .../machine/include/powerpc/arch-powerpc64.inc     |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/conf/machine/include/powerpc/arch-powerpc64.inc +1 -0
index 7ef8ddc..7681eae 100644
@@ -10,3 +10,4 @@ TUNE_ARCH .= "${@bb.utils.contains("TUNE_FEATURES", [ "m64" ], "powerpc64", "",
 AVAILTUNES += "powerpc64"
 TUNE_FEATURES_tune-powerpc64 ?= "m64 fpu-hard"
 BASE_LIB_tune-powerpc64 = "lib64"
+BASE_LIB = "lib64"
Signature · 1 line
1.7.3.4
#2 lore raw
In reply to Kumar Gala
Quoted 13 lines · Kumar Gala

Allow for baselib to be set to something other than 'lib'. This is useful for the 64-bit arch cases in which we want baselib set to 'lib64'.

---
 meta/conf/bitbake.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/conf/bitbake.conf +0 -0
index 6f0b42c..c50ffb9 100644

meta/conf/bitbake.conf line 13

Quoted 8 lines
meta/conf/bitbake.conf +1 -1
@@ -7,7 +7,7 @@
 #
 
 # Used by multilib code to change the library paths
-baselib = "lib"
+baselib = "${@d.getVar('BASE_LIB', True) or 'lib'}"
 
 # Path prefixes
 export base_prefix = ""

Can you not do:

baselib_powerpc64 = "lib64"

here?

Cheers,

Richard