From de64e3f2a3bfb582b2fc50cfd98b384104db9b7d Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 4 Jan 2018 17:36:46 -0800 Subject: [PATCH] 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. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7828ea2..8e2cb44 100644 --- a/Makefile +++ b/Makefile @@ -55,8 +55,9 @@ $(toolchain_dest)/bin/$(target)-gcc: $(toolchain_srcdir) cd $(toolchain_wrkdir); $(toolchain_srcdir)/configure \ --prefix=$(toolchain_dest) \ --with-arch=$(ISA) \ - --with-abi=$(ABI) - $(MAKE) -C $(toolchain_wrkdir) linux + --with-abi=$(ABI) \ + --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 $(buildroot_tar): $(buildroot_srcdir) $(RISCV)/bin/$(target)-gcc