* debian/bin/genorig.py: Include files needed for tools/perf.
* debian/build: Build tools/perf. * debian/templates/control.source.in: Add build-deps. svn path=/dists/trunk/linux-tools/; revision=17878
This commit is contained in:
parent
37b7f2a85b
commit
3cc26070a4
|
@ -100,12 +100,22 @@ class Main(object):
|
|||
self.log("Generate orig\n")
|
||||
orig = os.path.join(self.dir, self.orig)
|
||||
temp = os.path.join(self.dir, 'temp')
|
||||
os.makedirs(os.path.join(orig, 'include', 'linux'))
|
||||
# TODO: move this informations somewhere else
|
||||
os.mkdir(os.path.join(orig))
|
||||
for i in 'COPYING', 'Kbuild', 'Makefile':
|
||||
shutil.copyfile(os.path.join(temp, i), os.path.join(orig, i))
|
||||
for i in 'input.h', 'license.h', 'mod_devicetable.h':
|
||||
shutil.copyfile(os.path.join(temp, 'include', 'linux', i), os.path.join(orig, 'include', 'linux', i))
|
||||
for i in 's390', 'x86':
|
||||
os.makedirs(os.path.join(orig, 'arch', i, 'include'))
|
||||
shutil.copyfile(os.path.join(temp, 'arch', i, 'Makefile'), os.path.join(orig, 'arch', i, 'Makefile'))
|
||||
shutil.copytree(os.path.join(temp, 'arch', i, 'include', 'asm'), os.path.join(orig, 'arch', i, 'include', 'asm'))
|
||||
os.mkdir(os.path.join(orig, 'arch', 'x86', 'lib'))
|
||||
shutil.copyfile(os.path.join(temp, 'arch', 'x86', 'lib', 'memcpy_64.S'), os.path.join(orig, 'arch', 'x86', 'lib', 'memcpy_64.S'))
|
||||
os.mkdir(os.path.join(orig, 'include'))
|
||||
shutil.copytree(os.path.join(temp, 'include', 'linux'), os.path.join(orig, 'include', 'linux'))
|
||||
os.mkdir(os.path.join(orig, 'lib'))
|
||||
shutil.copyfile(os.path.join(temp, 'lib', 'rbtree.c'), os.path.join(orig, 'lib', 'rbtree.c'))
|
||||
shutil.copytree(os.path.join(temp, 'scripts'), os.path.join(orig, 'scripts'))
|
||||
shutil.copytree(os.path.join(temp, 'tools'), os.path.join(orig, 'tools'))
|
||||
|
||||
def tar(self):
|
||||
out = os.path.join("../orig", self.orig_tar)
|
||||
|
|
|
@ -3,7 +3,8 @@ DATA = \
|
|||
Makefile \
|
||||
|
||||
SUBDIRS = \
|
||||
scripts
|
||||
scripts \
|
||||
tools
|
||||
|
||||
OUTDIR = .
|
||||
|
||||
|
|
|
@ -4,4 +4,6 @@ Priority: optional
|
|||
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
|
||||
Uploaders: Bastian Blank <waldi@debian.org>, Ben Hutchings <ben@decadent.org.uk>
|
||||
Standards-Version: 3.9.1
|
||||
Build-Depends: debhelper (>> 7), python
|
||||
Build-Depends:
|
||||
debhelper (>> 7), python,
|
||||
binutils-dev, libdw-dev, libelf-dev, libnewt-dev, libperl-dev, python-dev
|
||||
|
|
Loading…
Reference in New Issue