mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 03:32:13 +02:00
patch.bbclass: Specify a quiltrc file so users settings don't interfere with correct operation
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1509 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Copyright (C) 2006 OpenedHand LTD
|
||||
|
||||
# Point to an empty file so any user's custom settings don't break things
|
||||
QUILTRCFILE ?= "${STAGING_BINDIR_NATIVE}/quiltrc"
|
||||
|
||||
def patch_init(d):
|
||||
import os, sys
|
||||
|
||||
@@ -170,7 +173,8 @@ def patch_init(d):
|
||||
|
||||
class QuiltTree(PatchSet):
|
||||
def _runcmd(self, args):
|
||||
runcmd(["quilt"] + args, self.dir)
|
||||
quiltrc = bb.data.getVar('QUILTRCFILE', self.d, 1)
|
||||
runcmd(["quilt"] + ["--quiltrc"] + [quiltrc] + args, self.dir)
|
||||
|
||||
def _quiltpatchpath(self, file):
|
||||
return os.path.join(self.dir, "patches", os.path.basename(file))
|
||||
|
||||
Reference in New Issue
Block a user