patchupdate.py: Always change directory before running $(PATCH), simplifies using other patch commands.

This commit is contained in:
Sebastian Lackner
2014-08-09 03:05:27 +02:00
parent 7573e09b4a
commit 8d276fcfe1
3 changed files with 126 additions and 118 deletions

View File

@ -452,7 +452,7 @@ def generate_makefile(all_patches, fp):
depends = " ".join([""] + ["%s.ok" % all_patches[d].name for d in patch.depends]) if len(patch.depends) else ""
fp.write("%s.ok:%s\n" % (patch.name, depends))
for f in patch.files:
fp.write("\t$(PATCH) < %s\n" % os.path.join(patch.name, f))
fp.write("\t$(call APPLY_PATCH,%s)\n" % os.path.join(patch.name, f))
# Create *.ok file (used to generate patchlist)
if len(patch.authors):