From: Marek Vasut <marex@denx.de>
To: openembedded-core@lists.openembedded.org
Cc: Marek Vasut <marex@denx.de>
Subject: [PATCH 2/2] kernel: Add optional patch_xenomai task
Date: Sun, 7 Jan 2018 17:19:20 +0100 [thread overview]
Message-ID: <20180107161920.30937-2-marex@denx.de> (raw)
In-Reply-To: <20180107161920.30937-1-marex@denx.de>
Add additional task, do_patch_xenomai, inserted between do_patch and
do_configure tasks. This task applies the cobalt patch to the kernel
sources for a specific machine. This is disabled by default, so use
PACKAGECONFIG[xenomai] of the kernel package to enable the patching.
You will also need a kernel recipe for a kernel version with ipipe
patch applied.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/kernel.bbclass | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index f7b612f84f..70fc39086c 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -481,6 +481,22 @@ do_shared_workdir () {
fi
}
+PACKAGECONFIG[xenomai] = ",,"
+
+do_patch_xenomai[depends] += "${@bb.utils.contains('PACKAGECONFIG', 'xenomai', 'xenomai:do_patch', '', d)}"
+do_patch_xenomai() {
+ set +e
+ cd ${S}
+
+ if [ "${@bb.utils.contains('PACKAGECONFIG', 'xenomai', 'yes', 'no', d)}" = "yes" ]; then
+ ${TMPDIR}/work-shared/${MACHINE}/xenomai-source/scripts/prepare-kernel.sh \
+ --arch=${TARGET_ARCH} \
+ --linux=${STAGING_KERNEL_DIR} ;
+ fi
+}
+
+addtask patch_xenomai before do_configure after do_patch
+
# We don't need to stage anything, not the modules/firmware since those would clash with linux-firmware
sysroot_stage_all () {
:
--
2.11.0
next prev parent reply other threads:[~2018-01-07 16:28 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-07 16:19 [PATCH 1/2] xenomai: Add xenomai recipe Marek Vasut
2018-01-07 16:19 ` Marek Vasut [this message]
2018-01-07 16:37 ` [PATCH 2/2] kernel: Add optional patch_xenomai task Bruce Ashfield
2018-01-07 16:38 ` Marek Vasut
2018-01-07 16:42 ` Bruce Ashfield
2018-01-07 16:51 ` Bruce Ashfield
2018-01-07 17:53 ` Marek Vasut
2018-01-07 17:55 ` Bruce Ashfield
2018-01-07 18:49 ` Marek Vasut
2018-01-07 18:55 ` Bruce Ashfield
2018-01-07 18:57 ` Marek Vasut
2018-01-07 19:00 ` Bruce Ashfield
2018-01-07 19:38 ` Marek Vasut
2018-01-08 1:32 ` akuster808
2018-01-07 17:17 ` [PATCH 1/2] xenomai: Add xenomai recipe Alexander Kanavin
2018-01-07 17:55 ` Marek Vasut
2018-01-07 19:27 ` Alexander Kanavin
2018-01-07 19:37 ` Marek Vasut
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=20180107161920.30937-2-marex@denx.de \
--to=marex@denx.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox