summaryrefslogtreecommitdiff
path: root/openembedded/classes/patcher.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/classes/patcher.bbclass')
-rw-r--r--openembedded/classes/patcher.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/openembedded/classes/patcher.bbclass b/openembedded/classes/patcher.bbclass
new file mode 100644
index 0000000000..c8a1b0350f
--- /dev/null
+++ b/openembedded/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')]}"