blob: b52a19c8aaec5baabe051bd56a880a520fee5eed [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001PKGSRC_MIRROR = http://cdn.netbsd.org/
2NETBSD_MIRROR = http://ftp.de.netbsd.org/
3
Nico Huberb50d73d2023-03-01 17:25:12 +00004anita\:9.3-sparc64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/sparc64/9.3/All
5anita\:9.3-sparc64-build: NETBSD_IMAGE=pub/NetBSD/iso/9.3/NetBSD-9.3-sparc64.iso
6anita\:9.3-sparc64-build: QEMU_DISK_SIZE=2G
7anita\:9.3-sparc64-build: QEMU_INSTALL_MEM=192M
8anita\:9.3-sparc64-build: QEMU_RUNTIME_MEM=512M
Nico Huberc0b52db2022-12-15 12:42:32 +00009
Nico Huberb50d73d2023-03-01 17:25:12 +000010anita\:9.3-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/9.3/All
11anita\:9.3-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/amd64/
12anita\:9.3-amd64-build: QEMU_DISK_SIZE=2G
13anita\:9.3-amd64-build: QEMU_INSTALL_MEM=192M
14anita\:9.3-amd64-build: QEMU_RUNTIME_MEM=512M
Nico Huberc0b52db2022-12-15 12:42:32 +000015
Nico Huberb50d73d2023-03-01 17:25:12 +000016anita\:9.3-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/9.3/All
17anita\:9.3-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/i386/
18anita\:9.3-i386-build: QEMU_DISK_SIZE=2G
19anita\:9.3-i386-build: QEMU_INSTALL_MEM=128M
20anita\:9.3-i386-build: QEMU_RUNTIME_MEM=256M
Nico Huberc0b52db2022-12-15 12:42:32 +000021
22anita\:8.2-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/8.2/All
23anita\:8.2-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/amd64/
24anita\:8.2-amd64-build: QEMU_DISK_SIZE=2G
25anita\:8.2-amd64-build: QEMU_INSTALL_MEM=192M
26anita\:8.2-amd64-build: QEMU_RUNTIME_MEM=512M
27
28anita\:8.2-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/8.2/All
29anita\:8.2-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/i386/
30anita\:8.2-i386-build: QEMU_DISK_SIZE=2G
31anita\:8.2-i386-build: QEMU_INSTALL_MEM=128M
32anita\:8.2-i386-build: QEMU_RUNTIME_MEM=256M
33
34anita\:7.1-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/7.1/All
35anita\:7.1-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/amd64/
36anita\:7.1-amd64-build: QEMU_DISK_SIZE=1G
37anita\:7.1-amd64-build: QEMU_INSTALL_MEM=192M
38anita\:7.1-amd64-build: QEMU_RUNTIME_MEM=512M
39
40anita\:7.1-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/7.1/All
41anita\:7.1-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/i386/
42anita\:7.1-i386-build: QEMU_DISK_SIZE=1G
43anita\:7.1-i386-build: QEMU_INSTALL_MEM=128M
44anita\:7.1-i386-build: QEMU_RUNTIME_MEM=256M
45
46$(addsuffix -build,$(ANITA_TAGS)): %-build: Dockerfile.anita anita-wrapper.sh
47 $(QUIET_SETUP)docker build . -f $< -t mani/$* \
48 --build-arg PKG_PATH=$(PKGSRC_MIRROR)$(PKGSRC_PATH) \
49 --build-arg INST_IMG=$(NETBSD_MIRROR)$(NETBSD_IMAGE) \
50 --build-arg DISK_SIZE=$(QEMU_DISK_SIZE) \
51 --build-arg INSTALL_MEM=$(QEMU_INSTALL_MEM) \
52 --build-arg RUNTIME_MEM=$(QEMU_RUNTIME_MEM)
Nico Huber48b1fde2022-12-11 17:15:27 +000053
54kvm_arches = \
55 $(if $(filter x86_64,$(shell uname -m)),amd64 i386)
56
57ANITA_KVM_TAGS := $(filter $(addprefix %-,$(kvm_arches)),$(ANITA_TAGS))
58ANITA_KVM_TAGS += $(addsuffix -shell,$(ANITA_KVM_TAGS))
59
60$(ANITA_KVM_TAGS): MANI_DOCKER_ARGS=--privileged
61$(ANITA_KVM_TAGS): MANI_DOCKER_ARGS+=--env ANITA_VMM_ARGS="-enable-kvm"
Nico Huberb7501492023-03-17 12:42:16 +000062
63# Always use GNU make
64$(ANITA_TAGS): MAKECMD=gmake
65
66# No libjaylink
67$(ANITA_TAGS): MAKEARGS+=CONFIG_JLINK_SPI=no
68
Nico Huberb1d4b1d2023-03-17 13:32:06 +000069# No libftdi1
70$(ANITA_TAGS): MAKEARGS+=CONFIG_FT2232_SPI=no CONFIG_USBBLASTER_SPI=no
71
Nico Huberb7501492023-03-17 12:42:16 +000072# Compiler doesn't like simplified initializers, e.g. `= { 0 };`
73anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=WARNERROR=no
Nico Huber547b9b02023-03-17 14:50:44 +000074
75# Missing pkg-config (container images can't be updated anymore)
76anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=HAS_LIBPCI=yes
77anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBPCI_LDFLAGS='-L/usr/pkg/lib -lpciutils -lpci'
78anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBPCI_CFLAGS=-I/usr/pkg/include/pciutils
79anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=HAS_LIBUSB1=yes
80anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBUSB1_LDFLAGS='-L/usr/pkg/lib -lusb-1.0'
81anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBUSB1_CFLAGS=-I/usr/pkg/include/libusb-1.0