From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 01/12] native.bbclass, package.bbclass, bitbake.conf: Make provisions for system libdir to be something else than '/lib'
Date: Sat, 25 Sep 2010 16:12:22 -0700 [thread overview]
Message-ID: <1285456353-27457-2-git-send-email-raj.khem@gmail.com> (raw)
In-Reply-To: <1285456353-27457-1-git-send-email-raj.khem@gmail.com>
* Add base_libdir_native as target libdir could be different e.g. lib32
lib64
* Dont assume lib to be system libdir during packaging.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
classes/native.bbclass | 3 ++-
classes/package.bbclass | 3 ++-
conf/bitbake.conf | 1 +
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/classes/native.bbclass b/classes/native.bbclass
index 345bd80..dcedff2 100644
--- a/classes/native.bbclass
+++ b/classes/native.bbclass
@@ -62,7 +62,8 @@ export STRIP = "${HOST_PREFIX}strip"
base_prefix = "${STAGING_DIR_NATIVE}"
prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
-
+libdir = ${base_prefix}${libdir_native}
+base_libdir = ${base_prefix}${base_libdir_native}
# Since we actually install these into situ there is no staging prefix
STAGING_DIR_HOST = ""
STAGING_DIR_TARGET = ""
diff --git a/classes/package.bbclass b/classes/package.bbclass
index c378133..35d9864 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -614,7 +614,8 @@ python package_do_shlibs() {
return
lib_re = re.compile("^lib.*\.so")
- libdir_re = re.compile(".*/lib$")
+ libdir = bb.data.getVar('base_libdir', d, True)
+ libdir_re = re.compile(".*%s$" % (libdir))
packages = bb.data.getVar('PACKAGES', d, True)
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index b099499..4e80d97 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -72,6 +72,7 @@ export oldincludedir = "${exec_prefix}/include"
base_bindir_native = "/bin"
base_sbindir_native = "/sbin"
sysconfdir_native = "/etc"
+base_libdir_native = "/lib"
prefix_native = "/usr"
bindir_native = "${prefix_native}/bin"
sbindir_native = "${prefix_native}/sbin"
--
1.7.0.4
next prev parent reply other threads:[~2010-09-25 23:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-25 23:12 [PATCH 00/12] Add support for mips64 target architecture and qemumips64 machine Khem Raj
2010-09-25 23:12 ` Khem Raj [this message]
2010-09-25 23:19 ` [PATCH 01/12] native.bbclass, package.bbclass, bitbake.conf: Make provisions for system libdir to be something else than '/lib' Chris Larson
2010-09-25 23:12 ` [PATCH 02/12] insane.bbclass: Recognise mips64 and mips64el Khem Raj
2010-09-25 23:12 ` [PATCH 03/12] siteinfo.bbclass, site/: Add mips64/mips64el to siteinfo data Khem Raj
2010-09-25 23:12 ` [PATCH 04/12] distros: Disable gnu-style hash for mips64/mips64el Khem Raj
2010-09-26 7:38 ` Eric Bénard
2010-09-26 7:48 ` Khem Raj
2010-09-25 23:12 ` [PATCH 05/12] kernel-arch.bbclass: Add logic to account for mips64/mips64el in map_kernel_arch Khem Raj
2010-09-25 23:12 ` [PATCH 06/12] conf/machine: Add qemumips64 machine configuration and tune file Khem Raj
2010-09-25 23:12 ` [PATCH 07/12] binutils-cross.inc: Enable 64-bit bfd when configured for mips64/mips64el Khem Raj
2010-09-25 23:12 ` [PATCH 08/12] gcc-4.5: Add support to build for mips64 Khem Raj
2010-09-25 23:12 ` [PATCH 09/12] eglibc-2.12: Configure for 64-bit mips Khem Raj
2010-09-25 23:12 ` [PATCH 10/12] linux_2.6.35.bb: Add config for qemumips64 Khem Raj
2010-09-25 23:12 ` [PATCH 11/12] run-qemu.sh: Add new target mips64 and mips64el Khem Raj
2010-09-25 23:12 ` [PATCH 12/12] netbase: Add interface information for qemumips64 and qemumips64el Khem Raj
2010-09-27 9:09 ` Paul Menzel
2010-09-27 14:16 ` Khem Raj
2010-09-27 17:17 ` Paul Menzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1285456353-27457-2-git-send-email-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.