summaryrefslogtreecommitdiff
path: root/Makefile
blob: 460725e8f407765a2af91ec9b7e9bc3dd43851a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

BINUTILS_VERSION ?= 2.45
GCC_VERSION ?= 15.2.0
GDB_VERSION ?= 16.3
NEWLIB_VERSION ?= 4.5.0.20241231

ZLIB_VERSION ?= 1.3.1
NCURSES_VERSION ?= 6.4
EXPAT_VERSION ?= 2.6.2
READLINE_VERSION ?= 8.2
GMP_VERSION ?= 6.2.1
MPFR_VERSION ?= 4.1.0
MPC_VERSION ?= 1.2.1

TARGET ?= x86_64-pc-elf
PLATFORM ?= x86-64

IMAGE_BUILD ?= 2

all:
	podman pull docker.io/ubuntu:latest
	podman build \
		--volume $(mkfile_dir)downloads:/downloads \
		--build-arg BINUTILS_VERSION=$(BINUTILS_VERSION) \
		--build-arg GCC_VERSION=$(GCC_VERSION) \
		--build-arg GDB_VERSION=$(GDB_VERSION) \
		--build-arg NEWLIB_VERSION=$(NEWLIB_VERSION) \
		--build-arg TARGET=$(TARGET) \
		--build-arg ZLIB_VERSION=$(ZLIB_VERSION) \
		--build-arg NCURSES_VERSION=$(NCURSES_VERSION) \
		--build-arg EXPAT_VERSION=$(EXPAT_VERSION) \
		--build-arg READLINE_VERSION=$(READLINE_VERSION) \
		--build-arg GMP_VERSION=$(GMP_VERSION) \
		--build-arg MPFR_VERSION=$(MPFR_VERSION) \
		--build-arg MPC_VERSION=$(MPC_VERSION) \
		--tag registry.gitlab.ost.ch:45023/teachos/devcontainers/$(PLATFORM):$(GCC_VERSION)-$(IMAGE_BUILD) \
		.
	podman tag registry.gitlab.ost.ch:45023/teachos/devcontainers/$(PLATFORM):$(GCC_VERSION)-$(IMAGE_BUILD) registry.gitlab.ost.ch:45023/teachos/devcontainers/$(PLATFORM):latest