summaryrefslogtreecommitdiff
path: root/meta/classes/patcher.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/patcher.bbclass')
-rw-r--r--meta/classes/patcher.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/patcher.bbclass b/meta/classes/patcher.bbclass
new file mode 100644
index 000000000..c8a1b0350
--- /dev/null
+++ b/meta/classes/patcher.bbclass
@@ -0,0 +1,7 @@
+# Now that BitBake/OpenEmbedded uses Quilt by default, you can simply add an
+# inherit patcher
+# to one of your config files to let BB/OE use patcher again.
+
+PATCHCLEANCMD = "patcher -B"
+PATCHCMD = "patcher -R -p '%s' -n '%s' -i '%s'"
+PATCH_DEPENDS = "${@["patcher-native", ""][(bb.data.getVar('PN', d, 1) == 'patcher-native')]}"