summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-18 05:40:09 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-18 05:40:09 +0000
commitfbb14d6d3f6b35b66f39efed78d7836ea7110b28 (patch)
tree592ee5068baf2158f7736879c9f1ebccd8433610 /classes/base.bbclass
parenta35990fa45364f8fca196741fa0b1e6728254459 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/18 00:19:55-05:00 handhelds.org!kergoth Disable use of parallel make for uclibc. 2005/01/17 23:57:02-05:00 handhelds.org!kergoth Fix a major bug in the new base_do_patch.. it wasn't chdir()ing into the correct dir before calling the PATCHCMD. 2005/01/17 23:48:20-05:00 handhelds.org!kergoth Remove python-native from the ipkg-utils-native deps, because having it there is just silly. BKrev: 41eca139NmEzWeP48TMCg6TqCdQpAg
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r--classes/base.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 886f25664b..f4ee9d90d7 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -454,7 +454,9 @@ python base_do_patch() {
else:
pname = unpacked
- os.chdir(workdir)
+ patchdir = bb.data.getVar('S', d, 1)
+ os.chdir(patchdir)
+
bb.note("Applying patch '%s'" % pname)
bb.data.setVar("do_patchcmd", bb.data.getVar("PATCHCMD", d, 1) % (pnum, pname, unpacked), d)
bb.data.setVarFlag("do_patchcmd", "func", 1, d)