From: Johannes Berg Date: Tue, 2 Apr 2013 23:09:16 +0000 (+0200) Subject: hard-code list of backport files X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e00d6229a3d6266e9d36cad8f12e145063880db5;p=openwrt%2Fstaging%2Fblogic.git hard-code list of backport files This avoids accidentally copying files that are in the local, possibly dirty, working directory. Signed-off-by: Johannes Berg --- diff --git a/gentree.py b/gentree.py index 2cfdfa8b00c4..b39ff4e7ecf9 100755 --- a/gentree.py +++ b/gentree.py @@ -234,13 +234,17 @@ def main(): check_output_dir(args.outdir, args.clean) # do the copy + backport_files = [(x, x) for x in [ + 'Kconfig', 'Makefile', 'Makefile.build', 'Makefile.kernel', + 'Makefile.real', 'compat/', 'include/', 'kconfig/', + ]] if not args.git_revision: print 'Copy original source files ...' - copy_files(os.path.join(source_dir, 'backport'), [('', '')], args.outdir) + copy_files(os.path.join(source_dir, 'backport'), backport_files, args.outdir) copy_files(args.kerneldir, copy_list, args.outdir) else: print 'Get original source files from git ...' - copy_files(os.path.join(source_dir, 'backport'), [('', '')], args.outdir) + copy_files(os.path.join(source_dir, 'backport'), backport_files, args.outdir) copy_git_files(args.kerneldir, copy_list, args.git_revision, args.outdir) # FIXME: should we add a git version of this (e.g. --git-extra-driver)?