[oe-commits] Richard Purdie : meta-skeleton: Add example multilib usages

git at git.openembedded.org git at git.openembedded.org
Mon Feb 25 13:58:01 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 514b0ab066bebd52980467e935c0e5df9e480db4
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=514b0ab066bebd52980467e935c0e5df9e480db4

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Thu Feb 21 15:50:00 2013 +0200

meta-skeleton: Add example multilib usages

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Constantin Musca <constantinx.musca at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta-skeleton/conf/multilib-example.conf           |   13 +++++++++++++
 meta-skeleton/conf/multilib-example2.conf          |   13 +++++++++++++
 .../images/core-image-multilib-example.bb          |   13 +++++++++++++
 3 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/meta-skeleton/conf/multilib-example.conf b/meta-skeleton/conf/multilib-example.conf
new file mode 100644
index 0000000..da6da7f
--- /dev/null
+++ b/meta-skeleton/conf/multilib-example.conf
@@ -0,0 +1,13 @@
+#
+# Sample multilib configuration which the user can either add in local.conf
+# or specific in an configuration file like this, then require it.
+#
+# This configuration specifies an x86 64 bit machine as the main machine
+# type and then adds a multilib in the "lib32" directory where those
+# libraries are compiled with the "x86" tune.
+#
+
+MACHINE = "qemux86-64"
+require conf/multilib.conf
+MULTILIBS = "multilib:lib32"
+DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
diff --git a/meta-skeleton/conf/multilib-example2.conf b/meta-skeleton/conf/multilib-example2.conf
new file mode 100644
index 0000000..2596f61
--- /dev/null
+++ b/meta-skeleton/conf/multilib-example2.conf
@@ -0,0 +1,13 @@
+#
+# Sample multilib configuration which the user can either add in local.conf
+# or specific in an configuration file like this, then require it.
+#
+# This configuration specifies an x86 64 bit machine as the main machine
+# type and then adds a multilib in the "libx32" directory where those
+# libraries are compiled with the "x86-64-x32" tune.
+#
+
+MACHINE = "qemux86-64"
+require conf/multilib.conf
+MULTILIBS = "multilib:libx32"
+DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"
diff --git a/meta-skeleton/recipes-multilib/images/core-image-multilib-example.bb b/meta-skeleton/recipes-multilib/images/core-image-multilib-example.bb
new file mode 100644
index 0000000..7703731
--- /dev/null
+++ b/meta-skeleton/recipes-multilib/images/core-image-multilib-example.bb
@@ -0,0 +1,13 @@
+#
+# An example of a multilib image
+#
+# This example includes a lib32 version of bash into an otherwise standard
+# sato image. It assumes a "lib32" multilib has been enabled in the user's
+# configuration (see the example conf files for examples of this.)
+#
+
+# First include a base image to base things off
+require recipes-core/images/core-image-sato.bb
+
+# Now add the multilib packages we want to install
+IMAGE_INSTALL += "lib32-bash"





More information about the Openembedded-commits mailing list