blob: 73c7ea1c67f4669ec1885881f1282342de1d2b89 [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 Huber5e8b3392024-04-21 13:33:56 +02004anita\:10.0-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/10.0/All
5anita\:10.0-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-10.0/amd64/
6anita\:10.0-amd64-build: QEMU_DISK_SIZE=2G
7anita\:10.0-amd64-build: QEMU_INSTALL_MEM=192M
8anita\:10.0-amd64-build: QEMU_RUNTIME_MEM=512M
9
10anita\:10.0-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/10.0/All
11anita\:10.0-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-10.0/i386/
12anita\:10.0-i386-build: QEMU_DISK_SIZE=2G
13anita\:10.0-i386-build: QEMU_INSTALL_MEM=128M
14anita\:10.0-i386-build: QEMU_RUNTIME_MEM=256M
15
Nico Huberb50d73d2023-03-01 17:25:12 +000016anita\:9.3-sparc64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/sparc64/9.3/All
17anita\:9.3-sparc64-build: NETBSD_IMAGE=pub/NetBSD/iso/9.3/NetBSD-9.3-sparc64.iso
18anita\:9.3-sparc64-build: QEMU_DISK_SIZE=2G
19anita\:9.3-sparc64-build: QEMU_INSTALL_MEM=192M
20anita\:9.3-sparc64-build: QEMU_RUNTIME_MEM=512M
Nico Huberc0b52db2022-12-15 12:42:32 +000021
Nico Huberb50d73d2023-03-01 17:25:12 +000022anita\:9.3-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/9.3/All
23anita\:9.3-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/amd64/
24anita\:9.3-amd64-build: QEMU_DISK_SIZE=2G
25anita\:9.3-amd64-build: QEMU_INSTALL_MEM=192M
26anita\:9.3-amd64-build: QEMU_RUNTIME_MEM=512M
Nico Huberc0b52db2022-12-15 12:42:32 +000027
Nico Huberb50d73d2023-03-01 17:25:12 +000028anita\:9.3-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/9.3/All
29anita\:9.3-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/i386/
30anita\:9.3-i386-build: QEMU_DISK_SIZE=2G
31anita\:9.3-i386-build: QEMU_INSTALL_MEM=128M
32anita\:9.3-i386-build: QEMU_RUNTIME_MEM=256M
Nico Huberc0b52db2022-12-15 12:42:32 +000033
34anita\:8.2-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/8.2/All
35anita\:8.2-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/amd64/
36anita\:8.2-amd64-build: QEMU_DISK_SIZE=2G
37anita\:8.2-amd64-build: QEMU_INSTALL_MEM=192M
38anita\:8.2-amd64-build: QEMU_RUNTIME_MEM=512M
39
40anita\:8.2-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/8.2/All
41anita\:8.2-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/i386/
42anita\:8.2-i386-build: QEMU_DISK_SIZE=2G
43anita\:8.2-i386-build: QEMU_INSTALL_MEM=128M
44anita\:8.2-i386-build: QEMU_RUNTIME_MEM=256M
45
46anita\:7.1-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/7.1/All
47anita\:7.1-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/amd64/
48anita\:7.1-amd64-build: QEMU_DISK_SIZE=1G
49anita\:7.1-amd64-build: QEMU_INSTALL_MEM=192M
50anita\:7.1-amd64-build: QEMU_RUNTIME_MEM=512M
51
52anita\:7.1-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/7.1/All
53anita\:7.1-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/i386/
54anita\:7.1-i386-build: QEMU_DISK_SIZE=1G
55anita\:7.1-i386-build: QEMU_INSTALL_MEM=128M
56anita\:7.1-i386-build: QEMU_RUNTIME_MEM=256M
57
58$(addsuffix -build,$(ANITA_TAGS)): %-build: Dockerfile.anita anita-wrapper.sh
59 $(QUIET_SETUP)docker build . -f $< -t mani/$* \
60 --build-arg PKG_PATH=$(PKGSRC_MIRROR)$(PKGSRC_PATH) \
61 --build-arg INST_IMG=$(NETBSD_MIRROR)$(NETBSD_IMAGE) \
62 --build-arg DISK_SIZE=$(QEMU_DISK_SIZE) \
63 --build-arg INSTALL_MEM=$(QEMU_INSTALL_MEM) \
64 --build-arg RUNTIME_MEM=$(QEMU_RUNTIME_MEM)
Nico Huber48b1fde2022-12-11 17:15:27 +000065
66kvm_arches = \
67 $(if $(filter x86_64,$(shell uname -m)),amd64 i386)
68
69ANITA_KVM_TAGS := $(filter $(addprefix %-,$(kvm_arches)),$(ANITA_TAGS))
70ANITA_KVM_TAGS += $(addsuffix -shell,$(ANITA_KVM_TAGS))
71
72$(ANITA_KVM_TAGS): MANI_DOCKER_ARGS=--privileged
73$(ANITA_KVM_TAGS): MANI_DOCKER_ARGS+=--env ANITA_VMM_ARGS="-enable-kvm"
Nico Huberb7501492023-03-17 12:42:16 +000074
75# Always use GNU make
76$(ANITA_TAGS): MAKECMD=gmake
77
78# No libjaylink
79$(ANITA_TAGS): MAKEARGS+=CONFIG_JLINK_SPI=no
80
Nico Huberb1d4b1d2023-03-17 13:32:06 +000081# No libftdi1
82$(ANITA_TAGS): MAKEARGS+=CONFIG_FT2232_SPI=no CONFIG_USBBLASTER_SPI=no
83
Nico Huberb7501492023-03-17 12:42:16 +000084# Compiler doesn't like simplified initializers, e.g. `= { 0 };`
85anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=WARNERROR=no
Nico Huber547b9b02023-03-17 14:50:44 +000086
87# Missing pkg-config (container images can't be updated anymore)
88anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=HAS_LIBPCI=yes
89anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBPCI_LDFLAGS='-L/usr/pkg/lib -lpciutils -lpci'
90anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBPCI_CFLAGS=-I/usr/pkg/include/pciutils
91anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=HAS_LIBUSB1=yes
92anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBUSB1_LDFLAGS='-L/usr/pkg/lib -lusb-1.0'
93anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBUSB1_CFLAGS=-I/usr/pkg/include/libusb-1.0
Nico Huber61da8c72024-04-21 21:26:38 +020094anita\:7.1-i386 anita\:7.1-amd64: ENV_VARS+=LD_LIBRARY_PATH=/usr/pkg/lib