diff options
| -rw-r--r-- | meta/classes/patch.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass index b794f81593..1f10d19f79 100644 --- a/meta/classes/patch.bbclass +++ b/meta/classes/patch.bbclass | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | # Copyright (C) 2006 OpenedHand LTD | 1 | # Copyright (C) 2006 OpenedHand LTD |
| 2 | 2 | ||
| 3 | # Point to an empty file so any user's custom settings don't break things | ||
| 4 | QUILTRCFILE ?= "${STAGING_BINDIR_NATIVE}/quiltrc" | ||
| 5 | |||
| 3 | def patch_init(d): | 6 | def patch_init(d): |
| 4 | import os, sys | 7 | import os, sys |
| 5 | 8 | ||
| @@ -170,7 +173,8 @@ def patch_init(d): | |||
| 170 | 173 | ||
| 171 | class QuiltTree(PatchSet): | 174 | class QuiltTree(PatchSet): |
| 172 | def _runcmd(self, args): | 175 | def _runcmd(self, args): |
| 173 | runcmd(["quilt"] + args, self.dir) | 176 | quiltrc = bb.data.getVar('QUILTRCFILE', self.d, 1) |
| 177 | runcmd(["quilt"] + ["--quiltrc"] + [quiltrc] + args, self.dir) | ||
| 174 | 178 | ||
| 175 | def _quiltpatchpath(self, file): | 179 | def _quiltpatchpath(self, file): |
| 176 | return os.path.join(self.dir, "patches", os.path.basename(file)) | 180 | return os.path.join(self.dir, "patches", os.path.basename(file)) |
