Use linux/'s headers for the toolchain build
This lets me move Linux and the toolchain somewhat independently.
This commit is contained in:
parent
62f5a8fc03
commit
f51abfd862
1
Makefile
1
Makefile
@ -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) \
|
||||||
|
Loading…
Reference in New Issue
Block a user