ansible: Install gcc5 on Debian 12 CI nodes
[lttng-ci.git] / automation / ansible / roles / cross-compilers / files / Makefile
1 .PHONY: gcc48 gcc48-container gcc55 gcc55-container
2
3 all: gcc48 gcc55
4
5 #ARCHES = x86_64-pc-linux-gnu aarch64-linux-gnu arm-linux-gnueabihf i686-linux-gnu powerpc64le-linux-gnu powerpc-linux-gnu riscv64-linux-gnu s390x-linux-gnu
6 ARCHES = x86_64-pc-linux-gnu aarch64-linux-gnu
7 # The last build of gcc-4.8 used a native gcc-4.8 compiler from snapshot.debian.org,
8 # so we avoid rebuilding the host compiler at this time.
9 ARCHES_48 := $(filter-out x86_64-pc-linux-gnu,$(ARCHES))
10
11 gcc55: gcc55-container
12 mkdir -p gcc55
13 podman run --rm -e "TARGETS=$(ARCHES)" -e "SRC_DIR=/src/gcc-releases-gcc-5.5.0" -e "BIN_SUFFIX=5.5" -e "CSTD=gnu11" -e "CXXSTD=gnu++11" -v ./gcc55:/output localhost/gcc-5.5
14 tar -czf gcc55.tar.gz -C gcc55 ./
15
16 gcc55-container:
17 podman build -t gcc-5.5 -f gcc5.Containerfile .
18
19 gcc48: gcc48-container
20 mkdir -p gcc48
21 podman run --rm -e "TARGETS=$(ARCHES_48)" -v ./gcc48:/output localhost/gcc-4.8
22 tar -czf gcc48.tar.gz -C gcc48 ./
23
24 gcc48-container:
25 podman build -t gcc-4.8 -f Containerfile .
26
27 clean:
28 rm -rf gcc55/ gcc48/
This page took 0.028734 seconds and 4 git commands to generate.