Use linux/'s headers for the toolchain build

This lets me move Linux and the toolchain somewhat independently.
This commit is contained in:
Palmer Dabbelt 2018-01-05 19:20:28 -08:00
parent 62f5a8fc03
commit f51abfd862

View File

@ -61,6 +61,7 @@ all: $(hex)
$(toolchain_dest)/bin/$(target)-gcc: $(toolchain_srcdir) $(toolchain_dest)/bin/$(target)-gcc: $(toolchain_srcdir)
mkdir -p $(toolchain_wrkdir) mkdir -p $(toolchain_wrkdir)
$(MAKE) -C $(linux_srcdir) O=$(dir $<) ARCH=riscv INSTALL_HDR_PATH=$(abspath $(toolchain_srcdir)/linux-headers) headers_install
cd $(toolchain_wrkdir); $(toolchain_srcdir)/configure \ cd $(toolchain_wrkdir); $(toolchain_srcdir)/configure \
--prefix=$(toolchain_dest) \ --prefix=$(toolchain_dest) \
--with-arch=$(ISA) \ --with-arch=$(ISA) \