diff options
author | Luis R. Rodriguez <mcgrof@suse.com> | 2014-10-31 23:55:07 -0700 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2014-11-14 13:47:16 -0800 |
commit | adaab2273d586f51a22aa4ee8b84db6d4c316926 (patch) | |
tree | 2327524de003325f11264b9a28fd061fbd6bb4ac /gentree.py | |
parent | 5403e20aca9bd16917818c0b254ec84b326a9e06 (diff) |
backports: split Kconfig into Kconfig.package and Kconfig.sources
This splits up the Kconfig from things which are needed due to
our copy of code from the kernel and things which we need
specifically only for packaging backports. We will later then
share the Kconfig.souce for instance for kernel integration.
While at it, split up the list of files that we need to copy
into what we know could be shared for integration. The the
case of backport packaging Kconfig.package will be copied to
the package's Kconfig when building the package with gentree.py.
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Diffstat (limited to 'gentree.py')
-rwxr-xr-x | gentree.py | 27 |
1 files changed, 22 insertions, 5 deletions
@@ -798,12 +798,28 @@ def process(kerneldir, copy_list_file, git_revision=None, check_output_dir(bpid.target_dir, args.clean) # do the copy + backport_package_files = [(x, x) for x in [ + 'Makefile', + 'kconf/', + 'Makefile.real', + 'Makefile.kernel', + 'Kconfig.package.hacks', + 'scripts/', + '.blacklist.map', + '.gitignore', + 'Makefile.build'] ] + backport_package_files += [ + ('Kconfig.package', 'Kconfig'), + ] backport_files = [(x, x) for x in [ - 'Kconfig', 'Kconfig.package.hacks', - 'Makefile', 'Makefile.build', 'Makefile.kernel', '.gitignore', - 'Makefile.real', 'compat/', 'backport-include/', 'kconf/', - 'scripts/', '.blacklist.map', + 'Kconfig.sources', + 'compat/', + 'backport-include/', ]] + + if not bpid.integrate: + backport_files += backport_package_files + if not args.git_revision: logwrite('Copy original source files ...') else: @@ -827,6 +843,7 @@ def process(kerneldir, copy_list_file, git_revision=None, git_debug_snapshot(args, 'Add driver sources') disable_list = add_automatic_backports(args) + if disable_list: # No need to verify_sources() as compat's Kconfig has no 'source' call bpcfg = kconfig.ConfigTree(os.path.join(bpid.target_dir, 'compat', 'Kconfig'), bpid) @@ -877,7 +894,7 @@ def process(kerneldir, copy_list_file, git_revision=None, # write local symbol list -- needed during packaging build if not bpid.integrate: - f = open(os.path.join(bpid.project_dir, '.local-symbols'), 'w') + f = open(os.path.join(bpid.target_dir, '.local-symbols'), 'w') for sym in symbols: f.write('%s=\n' % sym) f.close() |