Skip to content

Commit dcd86cc

Browse files
authored
Merge pull request #54 from kubilus1/upg-gcc
Upgrade gcc ver (and other reqs)
2 parents f169aca + cb95867 commit dcd86cc

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- run:
1818
name: build toolchain
1919
command: make toolchain_build
20+
no_output_timeout: 30m
2021
- run:
2122
name: build tools
2223
command: make tools_build

toolchain/Makefile

+11-8
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ BUILDDIR?=$(TOPDIR)/build
77
WORKDIR?=$(TCDIR)/work
88
FILESDIR?=$(TCDIR)/files
99

10-
GCC_VERSION=6.3.0
11-
BINUTILS_VERSION=2.24
12-
NEWLIB_VERSION=1.19.0
10+
GCC_VERSION=9.3.0
11+
BINUTILS_VERSION=2.34
12+
NEWLIB_VERSION=3.3.0
13+
HOST?=x86_64-pc-linux-gnu
1314

1415
LOG?=/dev/null
1516

@@ -35,27 +36,27 @@ install:
3536
build-binutils: $(WORKDIR)/build-binutils
3637
$(WORKDIR)/build-binutils:
3738
mkdir -p $@
38-
cd $@ && ../binutils-$(BINUTILS_VERSION)/configure --target=m68k-elf --prefix=$(BUILDDIR) --enable-install-libbfd --disable-werror
39+
cd $@ && ../binutils-$(BINUTILS_VERSION)/configure --host=$(HOST) --target=m68k-elf --prefix=$(BUILDDIR) --enable-install-libbfd --disable-werror
3940
$(MAKE) -C $@ all install DESTDIR= > $(LOG)
4041

4142
build-gcc-1: $(WORKDIR)/build-gcc
4243
$(WORKDIR)/build-gcc:
43-
cd $(WORKDIR)/gcc-$(GCC_VERSION) && patch -p1 -i $(FILESDIR)/gcc.patch
44+
#cd $(WORKDIR)/gcc-$(GCC_VERSION) && patch -p1 -i $(FILESDIR)/gcc.patch
4445
cd $(WORKDIR)/gcc-$(GCC_VERSION) && ./contrib/download_prerequisites
4546
mkdir -p $@
46-
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
47+
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
4748
$(MAKE) -C $@ all install DESTDIR= > $(LOG)
4849

4950
build-newlib: $(WORKDIR)/build-newlib
5051
$(WORKDIR)/build-newlib:
5152
find $(BUILDDIR) -name "m68k-elf-cc"
5253
find $(WORKDIR) -name "m68k-elf-cc"
5354
mkdir -p $@
54-
cd $@ && ../newlib-$(NEWLIB_VERSION)/configure --target=m68k-elf --prefix=$(BUILDDIR) --with-cpu=m68000 --disable-werror
55+
cd $@ && ../newlib-$(NEWLIB_VERSION)/configure --host=$(HOST) --target=m68k-elf --prefix=$(BUILDDIR) --with-cpu=m68000 --disable-werror
5556
$(MAKE) -C $@ all install DESTDIR= $(LOG)
5657

5758
build-gcc-2:
58-
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
59+
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
5960
$(MAKE) -C $(WORKDIR)/build-gcc all install DESTDIR= $(LOG)
6061
cp $(BUILDDIR)/lib/gcc/m68k-elf/$(GCC_VERSION)/libgcc.a $(BUILDDIR)/lib/.
6162

@@ -72,9 +73,11 @@ toolchain_clean:
7273
#####################################################
7374
TGZS=$(wildcard $(FILESDIR)/*.tar.gz)
7475
BZ2S+=$(wildcard $(FILESDIR)/*.tar.bz2)
76+
XZS+=$(wildcard $(FILESDIR)/*.tar.xz)
7577

7678
ARCH_DIRS=$(TGZS:.tar.gz=)
7779
ARCH_DIRS+=$(BZ2S:.tar.bz2=)
80+
ARCH_DIRS+=$(XZS:.tar.xz=)
7881

7982
PKGS=$(addprefix $(WORKDIR)/,$(notdir $(ARCH_DIRS)))
8083

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)