diff options
author | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2019-06-18 19:44:35 +0100 |
---|---|---|
committer | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2019-06-20 14:38:34 +0100 |
commit | 71f0333480f1640de62a83ef577ec50dfa9fa24f (patch) | |
tree | c91e4bc48ace610e896cccac44dae02f6c849aee /target/linux/ramips | |
parent | 1fd50531cac9c41334d8f57e2dbc1f50c3572445 (diff) | |
download | upstream-71f0333480f1640de62a83ef577ec50dfa9fa24f.tar.gz upstream-71f0333480f1640de62a83ef577ec50dfa9fa24f.tar.bz2 upstream-71f0333480f1640de62a83ef577ec50dfa9fa24f.zip |
kernel: generic: fix MIPS 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.
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'target/linux/ramips')
0 files changed, 0 insertions, 0 deletions