Merge pull request #22 from sifive/linux-default

Pass --enable-linux when configuring riscv-gnu-toolchain.
This commit is contained in:
Palmer Dabbelt 2018-01-05 11:54:01 -08:00 committed by GitHub
commit c6f48ee644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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