summaryrefslogtreecommitdiffstats
path: root/carl9170fw/toolchain/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-30 16:45:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-30 16:45:10 +0000
commit14a012c1e4f172206411e4224fcb5cad3e9efae0 (patch)
treea494c64eb03af5213b654e2ee63277016cbc9266 /carl9170fw/toolchain/Makefile
parentReleasing progress-linux version 20230625-3~exp2~progress7.99u1. (diff)
downloadfirmware-nonfree-14a012c1e4f172206411e4224fcb5cad3e9efae0.tar.xz
firmware-nonfree-14a012c1e4f172206411e4224fcb5cad3e9efae0.zip
Merging upstream version 20240709.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--carl9170fw/toolchain/Makefile66
1 files changed, 0 insertions, 66 deletions
diff --git a/carl9170fw/toolchain/Makefile b/carl9170fw/toolchain/Makefile
deleted file mode 100644
index aaea8e8..0000000
--- a/carl9170fw/toolchain/Makefile
+++ /dev/null
@@ -1,66 +0,0 @@
-BINUTILS_VER=2.22
-BINUTILS_URL=http://mirrors.kernel.org/gnu/binutils/binutils-$(BINUTILS_VER).tar.bz2
-BINUTILS_TAR=binutils-$(BINUTILS_VER).tar.bz2
-
-NEWLIB_VER=1.20.0
-NEWLIB_URL=ftp://sources.redhat.com/pub/newlib/newlib-$(NEWLIB_VER).tar.gz
-NEWLIB_TAR=newlib-$(NEWLIB_VER).tar.gz
-
-GCC_VER=4.7.1
-GCC_URL=http://mirrors.kernel.org/gnu/gcc/gcc-$(GCC_VER)/gcc-$(GCC_VER).tar.bz2
-GCC_TAR=gcc-$(GCC_VER).tar.bz2
-
-BASEDIR=$(shell pwd)
-
-define checksum
-@if grep -q ' $(subst .,\.,$(1))$$' SHA256SUMS; then \
- grep ' $(subst .,\.,$(1))$$' SHA256SUMS | sha256sum -c; \
-else \
- echo "WARNING: no checksum defined for $(1)"; \
-fi
-endef
-
-all: gcc
-
-src/$(BINUTILS_TAR):
- wget -P src $(BINUTILS_URL)
- $(call checksum,$@)
-
-src/$(NEWLIB_TAR):
- wget -P src $(NEWLIB_URL)
- $(call checksum,$@)
-
-src/$(GCC_TAR):
- wget -P src $(GCC_URL)
- $(call checksum,$@)
-
-src/binutils-$(BINUTILS_VER): src/$(BINUTILS_TAR)
- tar -C src -xjf $<
-
-src/newlib-$(NEWLIB_VER): src/$(NEWLIB_TAR)
- tar -C src -xzf $<
-
-src/gcc-$(GCC_VER): src/$(GCC_TAR) src/newlib-$(NEWLIB_VER)
- tar -C src -xjf $<
- ln -s $(BASEDIR)/src/newlib-$(NEWLIB_VER)/newlib $@
- ln -s $(BASEDIR)/src/newlib-$(NEWLIB_VER)/libgloss $@
-
-binutils: src/binutils-$(BINUTILS_VER)
- install -d build/binutils
- cd build/binutils; \
- $(BASEDIR)/$</configure --target=sh-elf --prefix=$(BASEDIR)/inst; \
- $(MAKE) -j3; \
- $(MAKE) install
-
-gcc: src/gcc-$(GCC_VER) binutils
- install -d build/gcc
- cd build/gcc; \
- $(BASEDIR)/$</configure --target=sh-elf --prefix=$(BASEDIR)/inst -enable-languages=c --without-pkgversion --with-newlib; \
- $(MAKE) -j3; \
- $(MAKE) install
-
-clean:
- rm -rf build inst
-
-distclean: clean
- rm -rf src