summaryrefslogtreecommitdiff
path: root/Makefile
blob: d0542e6bf35112fc2557c170f65aa1d3a2031208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

BINUTILS_VERSION ?= 2.44
GCC_VERSION ?= 15.1.0
GDB_VERSION ?= 16.3
NEWLIB_VERSION ?= 4.5.0.20241231
TARGET ?= x86_64-pc-elf
PLATFORM ?= x86-64

IMAGE_BUILD ?= 3

all:
	podman pull docker.io/archlinux: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) \
		--tag registry.gitlab.ost.ch:45023/teachos/devcontainers/$(PLATFORM):$(GCC_VERSION)-$(IMAGE_BUILD) \
		.