Commit Graph

55 Commits

Author SHA1 Message Date
Ben Hutchings a96bd61a2e libbpf: Build out-of-tree 2019-05-19 14:49:48 +01:00
Ben Hutchings 4abc99e835 [x86] linux-cpupower: Update CPPFLAGS for change in <asm/msr-index.h> 2019-05-14 17:34:29 +01:00
Marcin Juszkiewicz e60f3ee90a perf: disable libfd-liberty libbfd-liberty-z
Due to "perf build: Don't unconditionally link the libbfd feature test
to -liberty and -lz" commit in 4.19 stable tree.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-4.19.y&id=303d29d8f0cfccfc283322648a617033cd69a70f
2019-03-05 14:28:55 +01:00
Ben Hutchings 6c01fb1460 debian/rules.d/tools/perf/Makefile: Delete redundant arch/profile checks
Since commit f5f169ba99 "Split build rules for tools to allow
skipping them." the architecture and profile checks are done in
debian/rules.real.
2019-01-18 23:54:28 +00:00
Ben Hutchings 5b0c3258f6 debian/rules.d: Delete now-unused recursive makefiles
Since commit f5f169ba99 "Split build rules for tools to allow
skipping them." these recursive makefiles are not used.

(debian/rules.d/Makefile can additionally install the top-level Kbuild
and Makefile, but that target hasn't been used since svn rev 18133
(version 3.1-1~experimental.1).)
2019-01-18 23:54:28 +00:00
Luca Boccassi 7a4961e3fc linux-perf: explicitly disable the jvmti feature and shared library. 2019-01-18 20:57:32 +00:00
Ben Hutchings d19f7ed1a4 linux-perf: Fix installation directories for BPF headers and examples
Closes: #916774
2018-12-18 17:20:51 +00:00
Ben Hutchings aaa2152dc5 linux-perf: Fix build-time check for unversioned files
The current check has never worked because the find -path predicate
matches against the whole path, including the given root.  In this
case that is $DESTDIR which always includes the version string.
Change to use cd before find.

Also, check all non-directories rather than all entries with "perf" in
the name.
2018-12-18 17:04:08 +00:00
Hilko Bengen 9eeeda7c0d Add versioned libbpf, libbpf-dev package (Closes: #914428) 2018-12-09 22:11:42 +01:00
Ben Hutchings bd8699bf7f debian/rules.d/tools/perf/Makefile: Disable -Werror by setting WERROR=0
Setting EXTRA_WARNINGS to disable perf building with -Werror stopped
working some time ago.  The make variable we should set now is WERROR.
2018-11-11 19:16:10 +00:00
Ben Hutchings bc118214a5 [x86] hyperv-daemons: Make all services conditional on device existence
hv_{kvp,vss}_daemon used to communicate with the corresponding kernel
drivers over netlink, but now they use char devices.  hv_fcopy_daemon
always used a char device.  Rather than checking for Hyper-V
specifically, change all of the init scripts and systemd service
definitions to check for the appropriate device nodes.

Delete the check-hyperv program that we used to check for Hyper-V
in init scripts.
2018-10-17 01:54:19 +01:00
Ben Hutchings db75c3d23a linux-perf: Enable verbose output for build-time feature detection 2018-10-08 18:45:40 +01:00
Ben Hutchings 05c9d96767 debian/rules.d/tools/power/linux-cpupower: Add "+" to recursive make commands
Because these command lines don't start with "$(MAKE)", we should
tell make that we are recursing.  Without this, the child make
can't run more than one job in parallel (and warns about this).
2018-09-11 04:17:44 +01:00
Ben Hutchings f6cb5491d1 cpupower: Fix handling of noopt and nostrip build options
The upstream Makefile uses DEBUG to control both stripping of debug
information *and* disabling optimisations.

We want to disable stripping of debug information so that (normally)
dh_strip can move it into a separate package later.  However we also
want to enable optimisations by default.

Therefore:

- Set the STRIP variable (a command prefix) to "true"
- Set the DEBUG variable (a pseudo-boolean) to "true" if and only if
  the "noopt" build option is used
2018-08-02 23:39:19 +08:00
Ben Hutchings 795e430c4d objtool, usbip: Build with V=1 by default
These two are terse by default and don't respect the KBUILD_VERBOSE
environment variable.

(I considered adding V=1 to the MAKEFLAGS we use by default in
debian/rules.real, but this might have different semantics for the few
tools that aren't built using either kbuild or automake.)
2018-08-02 23:35:55 +08:00
Ben Hutchings 16bdbaf76f Release linux (4.17.6-2).
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAltL4ZwACgkQ57/I7JWG
 EQniUw//V7Vhq6IQ5FKEg+UHcI8b12GhOVWWVJoReQErFllaIkSOJax6GDXo9UYa
 EQ+xezR902ze99eetQfqJFqNm/fu9qi9Lc/Na3dIztFTkbonQmOOF5y5uM129wBi
 l8WKrcnGY175yuN2aQDgRZtZgMWvNy7pbreDX3i5WliOKiOYbG7ZaJvdSEQ12CjJ
 lnVctItwOhDqgXGoW8nW7YxC3Awi25Rk2dZNQNSVfa3Lq9DAA1HXsNVM7/jdMzv8
 OVE32Srq2LsWqt+dK0sARKCucVXZRDTWEjie32ZxyAISUYkuzxmLOpmfYXS+CVtj
 7gIe6nBPX1mnXSHh1CvFGJrHRDfKAtq7gfHoBSg255quuBYY9btCneVV/ebCuFR3
 OSmupwF74Kt6QMhDpe322SFQD/40gH2OEATRzgzNjaJFnWwDTx78EZIu7/SHul9g
 k6YKRyK03bGgfeTeEzsVwXUj71Fh8oF22kk1ViYpDMSEKu3xOB71poDwGmP+e11U
 rH3IV+F5ECzfiekNsbehPabG7dyY/t1TIGBmu+7rnK75EDCQzFfOI0MXEJCJG5X2
 c6QUBXcz8ygvR7Zec9kw4YeBRuDvUv4sXf8516kMc2dSwf7JY+BYyy+9Knb9Gy67
 K/Tw/4keQIgzjg52g9GxqVqI4N/DknWoe1FT3xU4uuLIgYkEilA=
 =JUfi
 -----END PGP SIGNATURE-----

Merge tag 'debian/4.17.6-2'

Release linux (4.17.6-2).

- Drop the ABI maintenance patch
- Resolve conflict between changes to config file generation in sid
  (delete CONFIG_BUILD_SALT) and master (putting them in
  arch-dependent packages)
2018-07-16 01:44:06 +01:00
Ben Hutchings e740d4cf79 linux-kbuild: Fix the assumed host architecture for cross-built objtool
The previous fix ensured that objtool was built for the right host
architecture, but it was still including some UAPI header files
(in particular <asm/bitsperlong.h>) for the build architecture.
2018-07-12 18:15:03 +01:00
Ben Hutchings 1ce0efc405 debian/rules.d/tools/perf/Makefile: Use KERNEL_ARCH variable
Currently we replicate the mapping of Debian architectures to kernel
source architectures here.  Use the KERNEL_ARCH variable that is now
passed down by rules.real.  We still need to check whether perf is
supported on the architecture, though.
2018-07-12 17:56:20 +01:00
Ben Hutchings 3885cfb63f Release linux (4.17.6-1).
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAltG0zUACgkQ57/I7JWG
 EQlb3Q//auZ2SJEu0MV/X+Mu7vjoUNZhi5VlPC2GBZaClEjrRG6iW0n2bO7fC1jd
 H8HSfVXy9F3vPiTUcMXyKq6vosLh/9Ie7jH1fGOCBoT7YbLcuoVmAPpAePOv6qTX
 gPdtWUvCT8lTviBX8LSFOG8zBewfcocU8MvNjIGKfu2b0CNykq5Z+yg9P7OAHaTt
 cfUU44v91YYwn8eo1Asi909kK73IO0V3SpIPUvgv5K2shCS44xKI19F2FIOuWRuD
 2COH0pSTV1oEjRGtkOJOzQqpEmO3sHZZfAUQTrKzxpTv43NzK80c148sd7/u6Hp1
 c+CszjeI3RJSX/YDie5noyL4BfYxXb+NGcLa41YOr2l1MM01fDOxKk1L/2imr1kV
 Ic73KR5h1fOD3JZmVTRwFpBgrxI9tNBQ7LP2fP666DqvMolRwr8vL5UvTqIF67l9
 uf/765rIgOhg6gwW9GghbuN08gMUfB8DTlsJerNbh1LKLZ8uN+7HzXoYjn44IINn
 Gbp09tQEx3lBl55zLH80MRUlo+mWlpxL2krDGrBTc/QxxDofl4ag+aRYTNmUut2+
 b54PEEpe2H1h6poMVOIjQlwvhKlWEez+8Syh8XKab0ZnMHipf316pX9UMAJIBtyb
 3iTjqMCgNQuraSzKT8/PfrMSV6HGfDN2FQo1vSf3kCQuigFsrA8=
 =VAyl
 -----END PGP SIGNATURE-----

Merge tag 'debian/4.17.6-1'

Release linux (4.17.6-1).

- Drop patches for ABI maintenance or that are already upstream
- Drop ABI reference files
2018-07-12 05:07:12 +01:00
Ben Hutchings 07eb9ee019 linux-perf: Use Python 3 for scripts 2018-07-07 00:14:59 +01:00
Ben Hutchings afa20e4a35 linux-perf: Build docs using asciidoctor instead of asciidoc
This removes another Python 2 dependency.
2018-07-06 21:35:30 +01:00
Ben Hutchings 49db810924 linux-perf: Disable building for powerpcspe
James Clarke had a go at fixing it but hasn't succeeded yet.
2018-07-06 05:21:53 +01:00
Ben Hutchings 4fd24e2fc5 linux-tools: Fix cross-build of objtool
objtool is normally built and used during the kernel build process,
in which case it should always be built as a native executable.
But when we build it for linux-tools it should match the target
architecture.  We need to override the CC and LD variables to
make this work.
2018-07-06 04:36:21 +01:00
Ben Hutchings f980187986 debian/rules.d/tools/lib/lockdep/Makefile: Fix repeated 'make install'
Currently the 'ln -s' command fails when run a second time.  Add the
-f option to fix this.
2018-04-08 10:31:19 +02:00
Ben Hutchings 4932bdacf1 linux-kbuild: Add objtool 2017-12-27 01:38:04 +00:00
Ben Hutchings e01624c730 cpupower: Move library to multiarch directory
Upstream moved it from /usr/lib to /usr/lib64 in 4.15, but neither of
these is correct.
2017-12-27 01:38:00 +00:00
Ben Hutchings 60879f2bae liblockdep: Make missing function declarations fatal errors
This should catch use of missing kernel APIs.  Which has happened yet
again.
2017-10-01 15:43:34 +01:00
Ben Hutchings cc91d0cfa2 usbip: Stop building broken libusbip-dev package
It has a lintian error (non-empty-dependency_libs-in-la-file) and it
also seems to be missing a header (the newly added
usbip_host_common.h) since Linux 4.7.  No-one seems to have noticed,
and it has nothing build-depending on it, so get rid of it.
2017-10-01 01:05:52 +01:00
Ben Hutchings 8c896b2cbc liblockdep: Re-enable liblockdep packages following upstream fixes
This reverts commit 85b468262e "Remove unused liblockdep packaging"
and 87d08943da "liblockdep: Stop trying to build packages, as it
failed to build again", but doesn't restore the patches.  All our
patches, and further build fixes, were applied upstream as of
v4.13-rc1.
2017-08-13 17:42:32 +01:00
Ben Hutchings 58cec05a0e cpupower: Add/update definition of MSRHEADER macro for turbostat and x86_energy_perf_policy 2017-08-13 16:22:35 +01:00
Ben Hutchings 85b468262e Remove unused liblockdep packaging 2017-05-03 21:02:49 +01:00
Ben Hutchings 9c3f98c0c4 cpupower: Fix compiler options for turbostat on 4.10 2017-01-30 16:28:55 +00:00
Ben Hutchings 1b1a09ae42 [x86] linux-cpupower: Add turbostat and x86_energy_perf_policy commands
Closes: #778249
2017-01-24 03:55:26 +00:00
Uwe Kleine-König b9aaa1abc5 enable `perf data' support 2016-12-21 09:53:24 +01:00
Ben Hutchings 790f2d1ab5 perf: Disable use of libcrypto (Closes: #843199) 2016-11-04 15:41:12 -06:00
Ben Hutchings 87d08943da liblockdep: Stop trying to build packages, as it failed to build again 2016-09-04 03:46:54 +01:00
Ben Hutchings 7231d9e75a usbip: Put all autotools-generated files in the build directory
Currently the linux-source-<version> package may or may not include
these files, depending on the order things are built in.

As autotools always modifies the source directory, copy (rsync) the
source to the build directory and build in-place there.
2016-08-25 01:29:57 +01:00
Ben Hutchings 2fddcf7c7f usbip: Use the locally-installed <linux/usbip.h>
Some years back I patched the #include of <linux/usbip.h> to include
the current, uninstalled version through a relative path because the
system-installed version will normally be outdated.  We're about to
start copying the source to avoid writing autotools crap into the
source directory, which breaks this relative path.

Since we now install the UAPI headers under debian/build at the start
of the tools build, drop the patch and add that directory to the
include path.
2016-08-25 01:28:48 +01:00
Ben Hutchings 0ad327058f Fix build rules for userland tools to support cross-building
Pass $(CROSS_COMPILE) or host GNU type through to upstream build rules.

debian/rules.real: Filter tools packages by host arch, not build arch

debian/rules.d/Makefile: Build the tools needed for headers_install in
a separate subdirectory
2016-06-13 02:06:19 +01:00
Ben Hutchings a7ebaf2684 Add support for the nopython build profile, disabling the linux-perf package
Currently we build-depend on the native python (via asciidoc), and on
the host python (via python-dev).  As these are not coinstallable it
is impossible to perform a complete cross-build.  Until that's resolved,
this will allow cross-building of most of the package with the
combination of the 'cross' and 'nopython' profiles.

(This also sidesteps the issue of perf wanting a multilib compiler.)
2016-06-13 02:04:39 +01:00
Ben Hutchings 1ed7b4bdf1 linux-cpupower: Define PACKAGE_BUGREPORT to refer to reportbug, not upstream 2016-06-13 00:23:09 +01:00
Ben Hutchings 2ed22da0d2 linux-cpupower: Pass variables to cpupower Makefile consistently 2016-06-13 00:22:39 +01:00
Ben Hutchings 59b5fabac6 debian/control,debian/rules,debian/rules.d: Support the 'nodoc' build profile 2016-05-15 03:11:42 +01:00
Ben Hutchings 5f25a78c8e linux-perf: Move tips.txt to /usr/share/doc/linux-perf-<version> (Closes: #821741) 2016-04-28 16:24:30 +02:00
Ben Hutchings f0398f7ebe linux-perf: Add build-time check for unversioned files that are likely to result in file conflicts
See #813080, #821741, etc.
2016-04-28 16:24:29 +02:00
Ben Hutchings 8f3922a3c7 Fix architecture filtering to use DEB_HOST_ARCH not DEB_BUILD_ARCH
Should make cross-builds work properly.
2016-03-20 22:00:15 +00:00
Ben Hutchings 85aba07cc0 Simplify make rules for cpupower 2016-03-20 20:08:08 +00:00
Ben Hutchings 4fe6a76379 Release linux-tools (4.4.6-1).
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIVAwUAVu737ue/yOyVhhEJAQqyag/+IUmrQLhgB05KxMZ8oRwmEF/PJPF0hKCu
 ZfvPiEO2nS1vQO5ulKp3dkfWWAJbC4BCDO7HAiYjM8J/JUbfb7VrvqgU2LyaEjev
 jpzUhDHD61jO1nTS0s3NKBInOSzn+jCcDSCEFlvzTQzsV5XbLI7cazIW+L29fR+X
 sIJpUzIqMi3UgcbpTx3CfTbodvQ/K7AI9lPN0NIDak7DWtMOUBrUBgTotDY0s+68
 yTD7oiUVdS4nL/BVwKXurSDIPXOnTio5JwmDwqEW1LRXq3Y6IgZKFsGSqmZva19q
 ZZ+T8885/ek116hUhVHF6Cxj24y6LErd+uxJO+J/K52r5Vgw/VwD+pbZBoiSrsmM
 IlqAwDRahNzWO5QU5IWUfPjcsVeye+RKv6EuYoqf43MiltRTdOys154ZesShd95H
 PzjaYQw//DzcnQbxW0wE/GGbTEQKGUgHpw5+2ZRaZ3GE9eExRqKO1ZJhL8Miu8ys
 Y3GJOHBASYq3pXtzpYPlJTAVluKsHScB9VtpXSFcrbwR2Mhqv1k4ZBwFUMh0Dgtb
 BEseEAw/VZQoTsbwR4ZwVwXvw+rFMe21FoVmn0ZM8WsrCqNeN7PQ/QG5CsD+R75N
 tJOMwWfgt5U/JP0ChtOAnywiRKAo52SdBDmyxh4c2qsdFcR6Un2B70Q5A1gY8B2+
 +of7tBDFL8Q=
 =sw9T
 -----END PGP SIGNATURE-----

Merge tag 'debian/4.4.6-1'

Move debian/build/tools/power/cpupower/Makefile to
debian/rules.d/tools/power/cpupower/Makefile where it belongs now.
2016-03-20 20:07:25 +00:00
Ben Hutchings ad25e86edb lockdep: Add '+' prefix to make invocation, so it can be parallelised
This enables coordination with the top-level job server.  Without
this, the child 'make' will be limited to serial operation.
2016-02-23 01:08:14 +00:00
Ben Hutchings a5f3e6ab8c Fix setting of installation directory for tools/hv
Add installdir variable that defaults to $(prefix)/$(OUTDIR) as used
in scripts/, but can be set directly in tools/hv which doesn't want
to mirror the source hierarchy.
2016-02-23 00:54:38 +00:00