Pass --enable-linux when configuring riscv-gnu-toolchain.

So that make commands in the riscv-gnu-toolchain build dir work right.
Otherwise, a make check or make all in work/riscv-gnu-toolchain will build a
newlib toolchain which is confusing.
This commit is contained in:
Jim Wilson 2018-01-04 17:36:46 -08:00
parent c99965ac9f
commit de64e3f2a3

View File

@ -55,8 +55,9 @@ $(toolchain_dest)/bin/$(target)-gcc: $(toolchain_srcdir)
cd $(toolchain_wrkdir); $(toolchain_srcdir)/configure \ cd $(toolchain_wrkdir); $(toolchain_srcdir)/configure \
--prefix=$(toolchain_dest) \ --prefix=$(toolchain_dest) \
--with-arch=$(ISA) \ --with-arch=$(ISA) \
--with-abi=$(ABI) --with-abi=$(ABI) \
$(MAKE) -C $(toolchain_wrkdir) linux --enable-linux
$(MAKE) -C $(toolchain_wrkdir)
sed 's/^#define LINUX_VERSION_CODE.*/#define LINUX_VERSION_CODE 263682/' -i $(toolchain_dest)/sysroot/usr/include/linux/version.h sed 's/^#define LINUX_VERSION_CODE.*/#define LINUX_VERSION_CODE 263682/' -i $(toolchain_dest)/sysroot/usr/include/linux/version.h
$(buildroot_tar): $(buildroot_srcdir) $(RISCV)/bin/$(target)-gcc $(buildroot_tar): $(buildroot_srcdir) $(RISCV)/bin/$(target)-gcc