Patchwork [1/2] bitbake: Allow seting of baselib

login
register
mail settings
Submitter Kumar Gala
Date Aug. 4, 2011, 7:28 a.m.
Message ID <1312442907-21017-1-git-send-email-galak@kernel.crashing.org>
Download mbox | patch
Permalink /patch/9299/
State New, archived
Headers show

Comments

Kumar Gala - Aug. 4, 2011, 7:28 a.m.
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'.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
---
 meta/conf/bitbake.conf |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Richard Purdie - Aug. 4, 2011, 2:16 p.m.
On Thu, 2011-08-04 at 02:28 -0500, Kumar Gala wrote:
> 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'.
> 
> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
> ---
>  meta/conf/bitbake.conf |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 6f0b42c..c50ffb9 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -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

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 6f0b42c..c50ffb9 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -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 = ""