diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-01-06 05:22:47 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-01-07 21:40:20 +0100 |
commit | 1727e89e9a6076ac81235a9377b749606e23d110 (patch) | |
tree | bd95bf5f0fb7ca26537214fe332c70ac3dbc7dc8 /package/elfutils | |
parent | 69030ca5c9324a36ecaf55aa3b23bfa5443b2c8f (diff) | |
download | buildroot-novena-1727e89e9a6076ac81235a9377b749606e23d110.tar.gz buildroot-novena-1727e89e9a6076ac81235a9377b749606e23d110.zip |
perf: add kernel version checks
perf is only available since kernel 2.6.31, so if we can't find
tools/perf/Makefile, error out and tell the user about this.
perf without libelf can only be built since kernel 3.7, so error out
and tell the user about this if he's trying to build perf from a < 3.7
kernel without libelf.
Unfortunately, those tests can only be build-time checks as we either
need to know the real kernel version (i.e, using LINUX_VERSION would
not be correct as it can be a Git commit ID, or Git tag), or have
access to the kernel sources themselves. So we can't prevent those
invalid situations at the configuration, we can only nicely tell the
user at build time.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/elfutils')
0 files changed, 0 insertions, 0 deletions