From: Felix Moessbauer <felix.moessbauer@siemens.com>
To: <isar-users@googlegroups.com>
Cc: <jan.kiszka@siemens.com>, <vijaikumar.kanagarajan@gmail.com>,
"Felix Moessbauer" <felix.moessbauer@siemens.com>
Subject: [PATCH v4 2/3] refactor linux-custom.inc to use ISAR's DEB_BUILD_PROFILES support
Date: Tue, 11 Jan 2022 20:12:47 +0100 [thread overview]
Message-ID: <20220111191248.3132088-3-felix.moessbauer@siemens.com> (raw)
In-Reply-To: <20220111191248.3132088-1-felix.moessbauer@siemens.com>
This patch replaces the manual setup of the DEB_BUILD_PROFILES
environment variable in the linux-custom.inc recipe.
Instead, the recently introduced DEB_BUILD_PROFILES infrastructure
of ISAR is used.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
meta/recipes-kernel/linux/linux-custom.inc | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
index ed89aa09..59d42c84 100644
--- a/meta/recipes-kernel/linux/linux-custom.inc
+++ b/meta/recipes-kernel/linux/linux-custom.inc
@@ -117,6 +117,14 @@ def config_fragments(d):
fragments.append(local)
return fragments
+def get_additional_build_profiles(d):
+ profiles = d.getVar('BASE_DISTRO', True)
+ if d.getVar('KERNEL_LIBC_DEV_DEPLOY', True) != '1':
+ profiles += ' nolibcdev'
+ return profiles
+
+DEB_BUILD_PROFILES += "${@get_additional_build_profiles(d)}"
+
do_prepare_build_prepend() {
# copy meta-data over to source tree
rm -rf ${S}/debian
@@ -176,10 +184,5 @@ dpkg_configure_kernel() {
}
dpkg_runbuild_prepend() {
- profiles="${BASE_DISTRO}"
- if [ "${KERNEL_LIBC_DEV_DEPLOY}" != "1" ]; then
- profiles="${profiles} nolibcdev"
- fi
- export DEB_BUILD_PROFILES="${profiles}"
dpkg_configure_kernel
}
--
2.30.2
next prev parent reply other threads:[~2022-01-11 19:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 19:12 [PATCH v4 0/3] add support for debian build profiles Felix Moessbauer
2022-01-11 19:12 ` [PATCH v4 1/3] add support for debian build profiles and options Felix Moessbauer
2022-01-11 19:12 ` Felix Moessbauer [this message]
2022-01-11 19:12 ` [PATCH v4 3/3] Use DEB_BUILD_OPTIONS bb variable in hello.bb example Felix Moessbauer
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=20220111191248.3132088-3-felix.moessbauer@siemens.com \
--to=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
--cc=vijaikumar.kanagarajan@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox