diff options
| author | Kevin Darbyshire-Bryant <[email protected]> | 2019-06-19 14:08:18 +0000 |
|---|---|---|
| committer | Paul Burton <[email protected]> | 2019-06-19 22:55:53 +0000 |
| commit | 1196364f21ffe5d1e6d83cafd6a2edb89404a3ae (patch) | |
| tree | d0c8563516b9f2c3f398cd7b237b631a73f7cb75 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | MIPS: ath79: fix ar933x uart parity mode (diff) | |
| download | kernel-1196364f21ffe5d1e6d83cafd6a2edb89404a3ae.tar.gz kernel-1196364f21ffe5d1e6d83cafd6a2edb89404a3ae.zip | |
MIPS: fix build on non-linux hosts
calc_vmlinuz_load_addr.c requires SZ_64K to be defined for alignment
purposes. It included "../../../../include/linux/sizes.h" to define
that size, however "sizes.h" tries to include <linux/const.h> which
assumes linux system headers. These may not exist eg. the following
error was encountered when building Linux for OpenWrt under macOS:
In file included from arch/mips/boot/compressed/calc_vmlinuz_load_addr.c:16:
arch/mips/boot/compressed/../../../../include/linux/sizes.h:11:10: fatal error: 'linux/const.h' file not found
^~~~~~~~~~
Change makefile to force building on local linux headers instead of
system headers. Also change eye-watering relative reference in include
file spec.
Thanks to Jo-Philip Wich & Petr Štetiar for assistance in tracking this
down & fixing.
Suggested-by: Jo-Philipp Wich <[email protected]>
Signed-off-by: Petr Štetiar <[email protected]>
Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
