blob: 2a8146f22ce76f1c7697fc275a15496574173c77 [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
Nico Huberc0b52db2022-12-15 12:42:32 +000046$(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