All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 01/24] base.bbclass: Add buildcfg multilib values
Date: Fri, 25 May 2018 10:48:06 +0800	[thread overview]
Message-ID: <56d696e2a24b5ba066cbb2a02af31bb4496eaa07.1527216285.git.liezhi.yang@windriver.com> (raw)
In-Reply-To: <cover.1527216285.git.liezhi.yang@windriver.com>

From: Mark Hatle <mark.hatle@windriver.com>

When displaying the buildcfg for the end user, add in processing
of the multilib variants.  Only the items that are not the same as
the DEFAULTTUNE are displayed.

I.e.:
Build Configuration:
BB_VERSION        = "1.19.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "CentOS-6.4"
DISTRO_VERSION    = "oe-core.0"
MACHINE           = "qemux86-64"
DEFAULTTUNE       = "x86-64"
TARGET_SYS        = "x86_64-oe-linux"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
lib32:  DEFAULTTUNE       = "x86"
lib32:  TARGET_SYS        = "i586-oe-linux"
lib32:  TUNE_FEATURES     = "m32"
meta              = "master:1975f3d7bbeb184489a5d0a2e0de231f317d3e1b"

The order of the displayed elements was changed slightly to group the
host information together, as well as group the target information
together.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes/base.bbclass | 16 +++++++++++++++-
 meta/conf/bitbake.conf    |  2 +-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 7c42cf9..fa5c24b 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -188,7 +188,7 @@ def get_layers_branch_rev(d):
     return layers_branch_rev
 
 
-BUILDCFG_FUNCS ??= "buildcfg_vars get_layers_branch_rev buildcfg_neededvars"
+BUILDCFG_FUNCS ??= "buildcfg_vars buildcfg_multilibs get_layers_branch_rev buildcfg_neededvars"
 BUILDCFG_FUNCS[type] = "list"
 
 def buildcfg_vars(d):
@@ -198,6 +198,20 @@ def buildcfg_vars(d):
         if value is not None:
             yield '%-20s = "%s"' % (var, value)
 
+def buildcfg_multilibs(d):
+    variants = d.getVar("MULTILIB_VARIANTS", True) or ""
+    for variant in variants.split():
+        localdata = bb.data.createCopy(d)
+        overrides = localdata.getVar("OVERRIDES", False) + ":virtclass-multilib-" + variant
+        localdata.setVar("OVERRIDES", overrides)
+        bb.data.update_data(localdata)
+        statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
+        for var in statusvars:
+            origvalue = d.getVar(var, True)
+            variantvalue = localdata.getVar(var, True)
+            if origvalue is not None and variantvalue is not None and origvalue != variantvalue:
+                yield '%-7s %-17s = "%s"' % (variant + ":", var, variantvalue)
+
 def buildcfg_neededvars(d):
     needed_vars = oe.data.typed_value("BUILDCFG_NEEDEDVARS", d)
     pesteruser = []
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 6ecf78b..73686ea 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -699,7 +699,7 @@ PREFERRED_PROVIDER_virtual/fakeroot-native ?= "pseudo-native"
 
 # Pre-build configuration output
 BUILDCFG_HEADER = "Build Configuration:"
-BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING TARGET_SYS MACHINE DISTRO DISTRO_VERSION TUNE_FEATURES TARGET_FPU"
+BUILDCFG_VARS = "BB_VERSION BUILD_SYS NATIVELSBSTRING DISTRO DISTRO_VERSION MACHINE DEFAULTTUNE TARGET_SYS TUNE_FEATURES TARGET_FPU"
 BUILDCFG_VARS[type] = "list"
 BUILDCFG_NEEDEDVARS = "TARGET_ARCH TARGET_OS"
 BUILDCFG_NEEDEDVARS[type] = "list"
-- 
2.7.4



  reply	other threads:[~2018-05-25  2:39 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-25  2:48 [PATCH 00/24] meta: various fixes Robert Yang
2018-05-25  2:48 ` Robert Yang [this message]
2018-05-26  9:51   ` [PATCH 01/24] base.bbclass: Add buildcfg multilib values Alexander Kanavin
2018-05-28  3:24     ` Robert Yang
2018-05-28  5:23       ` Alexander Kanavin
2018-05-28  6:56         ` Robert Yang
2018-05-25  2:48 ` [PATCH 02/24] runqemu-extract-sdk: allow install debugfs on rootfs Robert Yang
2018-05-28 17:14   ` Randy MacLeod
2018-05-29  1:39     ` Robert Yang
2018-05-29  1:40       ` Robert Yang
2018-05-25  2:48 ` [PATCH 03/24] initscripts: Avoid starting rpcbind daemon twice Robert Yang
2018-05-25  2:48 ` [PATCH 04/24] lsof: fix LSOF_CCV in version.h Robert Yang
2018-05-25  2:48 ` [PATCH 05/24] shadow: fix pam configs for chpasswd, newusers Robert Yang
2018-05-25  2:48 ` [PATCH 06/24] at: add libselinux to PACKAGECONFIG Robert Yang
2018-05-29 22:01   ` Andre McCurdy
2018-05-30  8:48     ` Robert Yang
2018-05-25  2:48 ` [PATCH 07/24] busybox: handle syslog Robert Yang
2018-05-25  2:48 ` [PATCH 08/24] gawk: fix command location in ptest script Robert Yang
2018-05-25  2:48 ` [PATCH 09/24] xinetd: add Init Script Actions to xinetd script Robert Yang
2018-05-25  2:48 ` [PATCH 10/24] dbus: update build options when enable ptest Robert Yang
2018-05-25  3:01   ` Robert Yang
2018-05-25  2:48 ` [PATCH 11/24] gcc-sanitizers: Fix libtool .la files Robert Yang
2018-05-29 17:32   ` Khem Raj
2018-05-25  2:48 ` [PATCH 12/24] oe/copy_buildsystem.py: add SDK_LAYERS_EXCLUDE_PATTERN Robert Yang
2018-05-25  2:48 ` [PATCH 13/24] dbus-test: sync x11 configure options with dbus Robert Yang
2018-05-25  3:01   ` Robert Yang
2018-05-25  2:48 ` [PATCH 14/24] site/powerpc64-linux: add cvs_cv_func_printf_ptr Robert Yang
2018-05-25  2:48 ` [PATCH 15/24] rootfs-postcommands: split ssh_allow_empty_password Robert Yang
2018-05-25  2:48 ` [PATCH 16/24] dropbear: add default config file to disable root login Robert Yang
2018-05-25  3:34   ` Andre McCurdy
2018-05-25  5:42     ` Robert Yang
2018-05-25  2:48 ` [PATCH 17/24] toolchain-scripts.bbclass: do not extend dependency if extended already Robert Yang
2018-05-25  2:48 ` [PATCH 18/24] shadow: update ownership and permission of /var/spool/mail Robert Yang
2018-05-25  2:48 ` [PATCH 19/24] populate_sdk_ext.bbclass: add ESDK_MANIFEST_EXCLUDES Robert Yang
2018-05-25  2:48 ` [PATCH 20/24] init-install: add timeout for legacy grub Robert Yang
2018-05-25  2:48 ` [PATCH 21/24] glibc: re-package for libnss-db Robert Yang
2018-05-25  2:48 ` [PATCH 22/24] rpcbind: add option to make user able to use fixed port number Robert Yang
2018-05-25  2:48 ` [PATCH 23/24] openssl-nativesdk: Fix "can't open config file" warning Robert Yang
2018-05-25  2:48 ` [PATCH 24/24] nativesdk-rpm: Add wrappers for nativesdk support Robert Yang
2018-05-25  3:04 ` [PATCH 00/24] meta: various fixes Robert Yang

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=56d696e2a24b5ba066cbb2a02af31bb4496eaa07.1527216285.git.liezhi.yang@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=openembedded-core@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.