Commit Graph

75 Commits

Author SHA1 Message Date
Mattia Dongili 96559e9c4c Build tools from power/cpupower
They'll eventually replace cpufrequtils and libcpufreq{0,-dev} so the
structure of the packages is the same.
2016-03-20 15:49:21 +00:00
Ben Hutchings 68b1d566ae hyperv-daemons: Only build the progarams on x86 (fixes FTBFS)
The daemons themselves can be built for any architecture, although on
!x86 they are useless and won't be included in any package.  However,
the newly introduced check-hyperv.c include inline assembly which
breaks the build.
2016-02-21 17:14:40 +00:00
Ben Hutchings 0bd35d792a hyperv-daemons: Add init scripts
Also add a helper executable that implements the check for Hyper-V
(like ConditionVirtualization=microsoft in the systemd units).

(cherry picked from commit 50747480c882dae7d3c8f7b4d0df5cf3276c4ee5)
2016-02-21 15:03:47 +00:00
Ben Hutchings b0a0319c86 Build fixdep under debian/build and clean it up properly
Mattia Dongili noted that it's currently built under tools/build
(upstream bug).  Build it under the current output directory
(which means we build it multiple times) and clean all copies.
2016-02-19 01:17:12 +00:00
Ben Hutchings 2b1e87a61f linux-perf: Include version number in strace groups installation directory
Closes: #813080
2016-02-18 21:47:37 +00:00
Ben Hutchings 02e867b636 Fix parallel builds of both arch and indep binaries
A parallel 'debian/rules build' will now invoke 'debian/rules.real
build' twice in parallel, which is disastrous.

- Add and use proper build-arch and build-indep targets in
  debian/rules.gen and debian/rules.real
- Assign a separate temporary directory to each target in
  debian/rules.real.  Add the directories to .gitignore and
  the clean rule.
- Pull installation of the lockdep wrapper (which is indep)
  up into debian/rules.real so that we don't end up building
  liblockdep twice in parallel.
2015-12-10 02:44:23 +00:00
Ben Hutchings 98517d1ea6 [x32] Don't attempt to build linux-perf (fixes FTBFS) 2015-09-29 14:12:43 +01:00
Ben Hutchings 5b5133ebf7 Set compiler flags according to dpkg-buildflags
...and in general, pass compiler flags down through all makefiles,
regardless of what creative names people found for the variables.
2015-09-25 22:13:52 +01:00
Ben Hutchings 4a0a255e4f linux-perf: Fix installation directory for bash completions 2015-09-25 20:43:30 +01:00
Ben Hutchings ab129829a4 Merge branch 'master' into benh/liblockdep 2015-08-14 14:27:38 +02:00
Ben Hutchings 738c38f0f4 Add .gitignore files to debian/build 2015-08-14 00:37:49 +02:00
Ben Hutchings 042546e3a1 Add liblockdep packages
liblockdep is in fairly bad shape - one patch needed to make it build
at all, another to make it build in a separate directory successfully,
and a third to fix the soname.  And the install rule doesn't install
its public headers.  But maybe it will be useful.
2015-08-14 00:21:08 +02:00
Ben Hutchings 1561e3da38 Update to 4.2-rc6
Refresh perf patches.
Add a newly needed type to scripts/mod/types.h.
2015-08-13 21:45:17 +02:00
Ben Hutchings 094026e778 Build userland headers and add them to the front of the system include path
This fixes a build failure in tools/hv when the installed
linux-libc-dev is too old.
2015-08-13 21:41:41 +02:00
Ben Hutchings 7d26874efa Update perf clean rule for 4.1; it now creates a file in the source directory
svn path=/dists/trunk/linux-tools/; revision=22830
2015-07-13 00:12:02 +00:00
Bastian Blank ed67452fc5 Add hyperv-daemons package
svn path=/dists/trunk/linux-tools/; revision=22770
2015-06-28 18:44:20 +00:00
Ben Hutchings a2bc9d510e linux-tools: Install perf-read-vdso{,x}32 in versioned directory under /usr/lib
Also move all the other 'libexec' stuff from /usr/share to /usr/lib.
It's all a big multilib (not multiarch) mess. :-(

svn path=/dists/trunk/linux-tools/; revision=22602
2015-05-11 02:51:07 +00:00
Ben Hutchings 6d290c8057 linux-kbuild: Enable Large File Support (Closes: #778942)
svn path=/dists/trunk/linux-tools/; revision=22599
2015-05-11 01:43:36 +00:00
Ben Hutchings 7d0adfb758 Group and sort KERNEL_ARCH_PERF definitions by kernel architecture
Use the $(filter) function to test for any of the CPU names that map
to each kernel architecture, where there are several.

svn path=/dists/trunk/linux-tools/; revision=22596
2015-05-11 00:48:55 +00:00
Ben Hutchings 024b90c4b9 linux-kbuild: Include Makefile.kasan (Closes: #783681)
svn path=/dists/trunk/linux-tools/; revision=22595
2015-05-11 00:35:01 +00:00
Ben Hutchings 0a463c3c64 linux-tools: Set ARCH=x86 when building for either amd64 or i386
svn path=/dists/trunk/linux-tools/; revision=22594
2015-05-11 00:32:20 +00:00
Ben Hutchings 7d0cee1a70 [mips*] Add the necessary CPU name mapping for linux-tools
svn path=/dists/trunk/linux-tools/; revision=22329
2015-02-01 01:53:11 +00:00
Ben Hutchings 0d10d7cf9a linux-tools: Remove explicit NO_LIBUNWIND
In 3.12.6-3 we explicitly disabled use of libunwind on most
architectures because perf requires its own architecture-specific code
on top of libunwind yet it would attempt to build with libunwind
wherever libunwind8-dev was installed.

This was fixed in perf 3.15 so we can remove this workaround.

svn path=/dists/trunk/linux-tools/; revision=22323
2015-01-31 23:14:36 +00:00
Ben Hutchings 9a55883a3a Merge pending changes from sid
svn path=/dists/trunk/linux-tools/; revision=22322
2015-01-31 23:09:41 +00:00
Ben Hutchings ff4066284b [arm64] Build perf with libunwind, even though we don't on armel and armhf
svn path=/dists/sid/linux-tools/; revision=22321
2015-01-31 23:04:38 +00:00
Ben Hutchings 3ca51a296a Revert "[armel,armhf] linux-tools: Enable use of libunwind"
I want to enable this, but (a) it doesn't work because I forgot to
change the build-dependency (b) it is not likely to be eligible for
a freeze exception.

svn path=/dists/sid/linux-tools/; revision=22319
2015-01-31 16:42:21 +00:00
Ben Hutchings 9ad41e0290 [arm64] Enable building linux-tools, thanks to Steve Capper
svn path=/dists/sid/linux-tools/; revision=22317
2015-01-31 16:21:27 +00:00
Ben Hutchings 10fff00504 Build usbip in a subdirectory of debian/build/tools/usb/usbip again
svn path=/dists/trunk/linux-tools/; revision=21954
2014-10-17 11:08:39 +00:00
Ben Hutchings ee84d0ea53 Update makefiles for bin2c moving to scripts/basic
svn path=/dists/trunk/linux-tools/; revision=21953
2014-10-17 11:04:40 +00:00
Ben Hutchings 90fbb64333 Update to 3.17
usbip userspace moved to tools/usb/usbip.  Update genorig.py,
patch and makefiles accordingly.

svn path=/dists/trunk/linux-tools/; revision=21951
2014-10-17 09:58:05 +00:00
Ben Hutchings 1458163929 [armel,armhf] linux-tools: Enable use of libunwind
perf requires some architecture-specific code in conjunction with
libunwind.  It used to enable use of libunwind automatically anyway,
so we had to override this for architectures where it would fail to
build (by setting NO_LIBUNWIND=1).

The makefile is now fixed so we don't need to this.  Since perf now
has the extra code for arm, this enables use of libunwind there.

svn path=/dists/sid/linux-tools/; revision=21910
2014-09-27 02:07:04 +00:00
Ben Hutchings 3c43bbca49 linux-tools: Split up MAKE_PERF definition some more
svn path=/dists/sid/linux-tools/; revision=21909
2014-09-27 02:01:14 +00:00
Ben Hutchings 5e54999ac5 linux-tools: Fix build configuration to avoid linking perf with libbfd (Closes: #763002)
svn path=/dists/sid/linux-tools/; revision=21908
2014-09-27 01:54:29 +00:00
Ben Hutchings 592377f237 linux-kbuild: Change the type headers used for devicetable-offsets.c (Closes: #754213)
Avoid depending on UAPI headers or <linux/types.h>.  This really
closes: #754213.  It also fixes modpost handling of input device IDs
when host and target have differing word size.

svn path=/dists/sid/linux-tools/; revision=21798
2014-09-09 12:23:39 +00:00
Ben Hutchings 2123f44168 linux-kbuild: Build and install recordmcount and recordmcount.pl
These are needed now that we build kernels with DYNAMIC_FTRACE enabled.

Also fix the recordmcount dependency for OOT modules - they should not
depend on its source files!

svn path=/dists/trunk/linux-tools/; revision=21789
2014-09-08 17:43:57 +00:00
Ben Hutchings b7b252be8b [ppc64el] Build linux-tools binary package
svn path=/dists/trunk/linux-tools/; revision=21747
2014-08-26 08:14:42 +00:00
Ben Hutchings e7dd8f382b linux-kbuild: Install scripts/Makefile.extrawarn
svn path=/dists/trunk/linux-tools/; revision=21647
2014-07-29 20:11:00 +00:00
Ben Hutchings 986ca4e776 linux-tools: Install traceevent plugins in /usr/lib/traceevent_<version>/plugins (Closes: #756429)
svn path=/dists/trunk/linux-tools/; revision=21646
2014-07-29 19:28:46 +00:00
Ben Hutchings a00c00dda5 Revert previous changes to debian/rules.real and move to debian/build/tools/perf/Makefile
svn path=/dists/trunk/linux-tools/; revision=21645
2014-07-29 19:18:10 +00:00
Ben Hutchings 11a8ecec5a perf: Build with V=1 as V=2 no longer works
svn path=/dists/trunk/linux-tools/; revision=21642
2014-07-29 18:04:34 +00:00
Ben Hutchings 318ee6e36b Clean another autoconf-generated file so double-builds work
svn path=/dists/sid/linux-tools/; revision=21107
2014-02-22 23:38:24 +00:00
Ben Hutchings b0512bce81 linux-tools: Remove the 'trace_3.13' link to perf
I don't think we should install this alias yet:
- We need a wrapper for it anyway, so there's little point adding a
  versioned link
- It doesn't work out-of-the-box as non-root (it depends on debugfs),
  so it's less widely useful than strace
- 'perf trace' doesn't take much more typing


svn path=/dists/sid/linux-tools/; revision=21106
2014-02-22 23:20:19 +00:00
Ben Hutchings f5fafa860e Merge changes from sid up to 3.12.6-3
svn path=/dists/trunk/linux-tools/; revision=21027
2014-02-02 15:57:46 +00:00
Ben Hutchings 315706dfad linux-tools: Only use libunwind on x86, as perf needs additional porting work for other architectures (fixes FTBFS on arm and powerpc)
svn path=/dists/sid/linux-tools/; revision=21024
2014-02-02 15:46:40 +00:00
Ben Hutchings a3f8abcc2a linux-tools: Explicitly enable/disable libunwind usage for all architectures (fixes FTBFS on s390x and sparc)
svn path=/dists/sid/linux-tools/; revision=21023
2014-02-02 15:41:21 +00:00
Ben Hutchings 3a58093841 Merge changes from sid up to 3.12.6-2
svn path=/dists/trunk/linux-tools/; revision=21018
2014-02-02 11:02:54 +00:00
Ben Hutchings 2fa2de4959 linux-tools: Replace build-dependency on libunwind7-dev with libunwind8-dev
svn path=/dists/sid/linux-tools/; revision=21015
2014-02-02 10:52:19 +00:00
Ben Hutchings 8cad86b947 Bypass the new and buggy tools/perf/Makefile in favour of Makefile.perf
Somehow this new wrapper manages to reduce the priority of our
'prefix' setting.  That interacts with the insane way prefix is
defaulted in config/Makefile so that the prefix is wrong at build time
but right at install time (resulting in a rebuild then!).

Also the wrapper replaces our -j option and we would have to set JOBS
instead.

The perf makefiles never get better, just different...

svn path=/dists/trunk/linux-tools/; revision=20994
2014-01-21 06:33:13 +00:00
Ben Hutchings f2655a84c9 Avoid building with libunwind8-dev
The transition from libunwind soversion 7 to 8 is blocked and will
likely remain blocked for some time because libunwind7 is linked into
all ia64 binaries.

For amd64 and i386, downgrade the build-dependency to libunwind7-dev.

For architectures that are supported by libunwind8-dev, remove the
build-dependency and ensure we don't accidentally link with libunwind8
by setting NO_LIBUNWIND=1 when building perf.

svn path=/dists/sid/linux-tools/; revision=20755
2013-10-29 03:41:10 +00:00
Ben Hutchings 2ea8e5867c Merge changes from sid up 3.10-4
svn path=/dists/trunk/linux-tools/; revision=20720
2013-10-19 00:13:33 +00:00