summaryrefslogtreecommitdiff
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2015-03-05 09:04:01 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-20 11:03:17 +0000
commit1be4c68fb876b63f19d107275b701fe1c1c121db (patch)
tree6e936cf0f487b993aa94f1b4c943a8cd1ca8ed78 /meta/classes/kernel-yocto.bbclass
parentb903559daa847d2c56bf729fc5ca885113d0eecc (diff)
downloadopenembedded-core-1be4c68fb876b63f19d107275b701fe1c1c121db.tar.gz
openembedded-core-1be4c68fb876b63f19d107275b701fe1c1c121db.tar.bz2
openembedded-core-1be4c68fb876b63f19d107275b701fe1c1c121db.zip
kernel-yocto: split meta data generation from patching phase
The linux-yocto kernel has a meta-data component which accompanies the actual tree. That meta-data is processed to generate a series file that controls the patching and configuration of the kernel. patching and configuration are two distinct phases, so when working on kernel configuration, it doesn't make sense to always have to re-run the patching step just to update configuration data in the meta-series. To allow a more granular set of tasks, we break the meta-data generation into a separate task, which runs before do_patch. This allows the task to be explicitly called when working on configuration, but otherwise has no impact on the build. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r--meta/classes/kernel-yocto.bbclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 8db489964e..1e226a5722 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -55,7 +55,7 @@ def get_machine_branch(d, default):
return default
-do_patch() {
+do_kernel_metadata() {
cd ${S}
export KMETA=${KMETA}
@@ -81,7 +81,7 @@ do_patch() {
createme_flags="--disable-meta-gen --meta ${KMETA}"
fi
- createme ${createme_flags} ${ARCH} ${machine_branch}
+ createme -v -v ${createme_flags} ${ARCH} ${machine_branch}
if [ $? -ne 0 ]; then
bbfatal "Could not create ${machine_branch}"
fi
@@ -118,6 +118,10 @@ do_patch() {
if [ $? -ne 0 ]; then
bbfatal "Could not update ${machine_branch}"
fi
+}
+
+do_patch() {
+ cd ${S}
# executes and modifies the source tree as required
patchme ${KMACHINE}
@@ -221,6 +225,7 @@ do_kernel_checkout() {
do_kernel_checkout[dirs] = "${S}"
addtask kernel_checkout before do_patch after do_unpack
+addtask kernel_metadata after do_validate_branches before do_patch
do_kernel_configme[dirs] += "${S} ${B}"
do_kernel_configme() {