Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] utility-task: Add do_patchall task
@ 2017-03-07 19:48 Matthew McClintock
  2017-03-07 20:19 ` Leonardo Sandoval
  2017-03-07 20:47 ` Richard Purdie
  0 siblings, 2 replies; 7+ messages in thread
From: Matthew McClintock @ 2017-03-07 19:48 UTC (permalink / raw)
  To: openembedded-core

This is useful in a few scenarios:

1) A developer wants to be able to grep all the code in a particular
without having to run patch on various components until they guess the
right one (e.g. which component is generating an error/warning?)

2) Other code scanning tools that can be run without requiring a full
image to be built (legal, static code analysis, etc)

Signed-off-by: Matthew McClintock <msm-oss@mcclintock.net>
---
 meta/classes/utility-tasks.bbclass | 7 +++++++
 meta/conf/documentation.conf       | 1 +
 2 files changed, 8 insertions(+)

diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index da69c3a..b922685 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -64,3 +64,10 @@ do_fetchall[recideptask] = "do_${BB_DEFAULT_TASK}"
 do_fetchall() {
 	:
 }
+
+addtask patchall after do_patch
+do_patchall[recrdeptask] = "do_patchall do_patch"
+do_patchall[recideptask] = "do_${BB_DEFAULT_TASK}"
+do_patchall() {
+	:
+}
diff --git a/meta/conf/documentation.conf b/meta/conf/documentation.conf
index 06527cb..5f4593c 100644
--- a/meta/conf/documentation.conf
+++ b/meta/conf/documentation.conf
@@ -40,6 +40,7 @@ do_package_write_rpm[doc] = "Creates the actual RPM packages and places them in
 do_package_write_tar[doc] = "Creates tar archives for packages and places them in the Package Feed area"
 do_packagedata[doc] = "Creates package metadata used by the build system to generate the final packages"
 do_patch[doc] = "Locates patch files and applies them to the source code"
+do_patchall[doc] = "Fetches, unpacks, and patches the source for all the components in a particular target"
 do_populate_lic[doc] = "Writes license information for the recipe that is collected later when the image is constructed"
 do_populate_sdk[doc] = "Creates the file and directory structure for an installable SDK"
 do_populate_sysroot[doc] = "Copies a subset of files installed by do_install into the sysroot in order to make them available to other recipes"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-03-08  2:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-07 19:48 [PATCH] utility-task: Add do_patchall task Matthew McClintock
2017-03-07 20:19 ` Leonardo Sandoval
2017-03-07 20:16   ` Burton, Ross
2017-03-07 20:47 ` Richard Purdie
2017-03-07 20:53   ` Matthew McClintock
2017-03-07 22:33   ` Paul Eggleton
2017-03-08  2:55     ` Matthew McClintock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox