diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f8c55e..d628102 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,6 +17,7 @@ jobs: - run: name: build toolchain command: make toolchain_build + no_output_timeout: 30m - run: name: build tools command: make tools_build diff --git a/toolchain/Makefile b/toolchain/Makefile index bdcf735..e54f09f 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -7,9 +7,10 @@ BUILDDIR?=$(TOPDIR)/build WORKDIR?=$(TCDIR)/work FILESDIR?=$(TCDIR)/files -GCC_VERSION=6.3.0 -BINUTILS_VERSION=2.24 -NEWLIB_VERSION=1.19.0 +GCC_VERSION=9.3.0 +BINUTILS_VERSION=2.34 +NEWLIB_VERSION=3.3.0 +HOST?=x86_64-pc-linux-gnu LOG?=/dev/null @@ -35,15 +36,15 @@ install: build-binutils: $(WORKDIR)/build-binutils $(WORKDIR)/build-binutils: mkdir -p $@ - cd $@ && ../binutils-$(BINUTILS_VERSION)/configure --target=m68k-elf --prefix=$(BUILDDIR) --enable-install-libbfd --disable-werror + cd $@ && ../binutils-$(BINUTILS_VERSION)/configure --host=$(HOST) --target=m68k-elf --prefix=$(BUILDDIR) --enable-install-libbfd --disable-werror $(MAKE) -C $@ all install DESTDIR= > $(LOG) build-gcc-1: $(WORKDIR)/build-gcc $(WORKDIR)/build-gcc: - cd $(WORKDIR)/gcc-$(GCC_VERSION) && patch -p1 -i $(FILESDIR)/gcc.patch + #cd $(WORKDIR)/gcc-$(GCC_VERSION) && patch -p1 -i $(FILESDIR)/gcc.patch cd $(WORKDIR)/gcc-$(GCC_VERSION) && ./contrib/download_prerequisites mkdir -p $@ - cd $@ && ../gcc-$(GCC_VERSION)/configure --target=m68k-elf --prefix=$(BUILDDIR) --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-cpu=m68000 --disable-werror --disable-nls --disable-multilib + cd $@ && ../gcc-$(GCC_VERSION)/configure --host=$(HOST) --target=m68k-elf --prefix=$(BUILDDIR) --without-headers --with-newlib --enable-languages=c --disable-libssp --disable-tls --with-cpu=m68000 --disable-werror --disable-nls --disable-multilib $(MAKE) -C $@ all install DESTDIR= > $(LOG) build-newlib: $(WORKDIR)/build-newlib @@ -51,11 +52,11 @@ $(WORKDIR)/build-newlib: find $(BUILDDIR) -name "m68k-elf-cc" find $(WORKDIR) -name "m68k-elf-cc" mkdir -p $@ - cd $@ && ../newlib-$(NEWLIB_VERSION)/configure --target=m68k-elf --prefix=$(BUILDDIR) --with-cpu=m68000 --disable-werror + cd $@ && ../newlib-$(NEWLIB_VERSION)/configure --host=$(HOST) --target=m68k-elf --prefix=$(BUILDDIR) --with-cpu=m68000 --disable-werror $(MAKE) -C $@ all install DESTDIR= $(LOG) build-gcc-2: - cd $(WORKDIR)/build-gcc && ../gcc-$(GCC_VERSION)/configure --target=m68k-elf --prefix=$(BUILDDIR) --with-newlib --disable-libssp --disable-tls --enable-threads=single --enable-languages=c --with-cpu=m68000 --disable-werror --disable-nls --disable-multilib + cd $(WORKDIR)/build-gcc && ../gcc-$(GCC_VERSION)/configure --host=$(HOST) --target=m68k-elf --prefix=$(BUILDDIR) --with-newlib --disable-libssp --disable-tls --enable-threads=single --enable-languages=c --with-cpu=m68000 --disable-werror --disable-nls --disable-multilib $(MAKE) -C $(WORKDIR)/build-gcc all install DESTDIR= $(LOG) cp $(BUILDDIR)/lib/gcc/m68k-elf/$(GCC_VERSION)/libgcc.a $(BUILDDIR)/lib/. @@ -72,9 +73,11 @@ toolchain_clean: ##################################################### TGZS=$(wildcard $(FILESDIR)/*.tar.gz) BZ2S+=$(wildcard $(FILESDIR)/*.tar.bz2) +XZS+=$(wildcard $(FILESDIR)/*.tar.xz) ARCH_DIRS=$(TGZS:.tar.gz=) ARCH_DIRS+=$(BZ2S:.tar.bz2=) +ARCH_DIRS+=$(XZS:.tar.xz=) PKGS=$(addprefix $(WORKDIR)/,$(notdir $(ARCH_DIRS))) diff --git a/toolchain/files/binutils-2.24.tar.bz2 b/toolchain/files/binutils-2.34.tar.xz similarity index 67% rename from toolchain/files/binutils-2.24.tar.bz2 rename to toolchain/files/binutils-2.34.tar.xz index 669ac9f..ecd26c4 100644 Binary files a/toolchain/files/binutils-2.24.tar.bz2 and b/toolchain/files/binutils-2.34.tar.xz differ diff --git a/toolchain/files/gcc-6.3.0.tar.bz2 b/toolchain/files/gcc-9.3.0.tar.xz similarity index 67% rename from toolchain/files/gcc-6.3.0.tar.bz2 rename to toolchain/files/gcc-9.3.0.tar.xz index d7f18ee..36d54ee 100644 Binary files a/toolchain/files/gcc-6.3.0.tar.bz2 and b/toolchain/files/gcc-9.3.0.tar.xz differ diff --git a/toolchain/files/newlib-1.19.0.tar.gz b/toolchain/files/newlib-3.3.0.tar.gz similarity index 56% rename from toolchain/files/newlib-1.19.0.tar.gz rename to toolchain/files/newlib-3.3.0.tar.gz index 293f7a1..2f51b83 100644 Binary files a/toolchain/files/newlib-1.19.0.tar.gz and b/toolchain/files/newlib-3.3.0.tar.gz differ