Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | PKGSRC_MIRROR = http://cdn.netbsd.org/ |
| 2 | NETBSD_MIRROR = http://ftp.de.netbsd.org/ |
| 3 | |
Nico Huber | 5e8b339 | 2024-04-21 13:33:56 +0200 | [diff] [blame] | 4 | anita\:10.0-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/10.0/All |
| 5 | anita\:10.0-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-10.0/amd64/ |
| 6 | anita\:10.0-amd64-build: QEMU_DISK_SIZE=2G |
| 7 | anita\:10.0-amd64-build: QEMU_INSTALL_MEM=192M |
| 8 | anita\:10.0-amd64-build: QEMU_RUNTIME_MEM=512M |
| 9 | |
| 10 | anita\:10.0-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/10.0/All |
| 11 | anita\:10.0-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-10.0/i386/ |
| 12 | anita\:10.0-i386-build: QEMU_DISK_SIZE=2G |
| 13 | anita\:10.0-i386-build: QEMU_INSTALL_MEM=128M |
| 14 | anita\:10.0-i386-build: QEMU_RUNTIME_MEM=256M |
| 15 | |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 16 | anita\:9.3-sparc64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/sparc64/9.3/All |
| 17 | anita\:9.3-sparc64-build: NETBSD_IMAGE=pub/NetBSD/iso/9.3/NetBSD-9.3-sparc64.iso |
| 18 | anita\:9.3-sparc64-build: QEMU_DISK_SIZE=2G |
| 19 | anita\:9.3-sparc64-build: QEMU_INSTALL_MEM=192M |
| 20 | anita\:9.3-sparc64-build: QEMU_RUNTIME_MEM=512M |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 21 | |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 22 | anita\:9.3-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/9.3/All |
| 23 | anita\:9.3-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/amd64/ |
| 24 | anita\:9.3-amd64-build: QEMU_DISK_SIZE=2G |
| 25 | anita\:9.3-amd64-build: QEMU_INSTALL_MEM=192M |
| 26 | anita\:9.3-amd64-build: QEMU_RUNTIME_MEM=512M |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 27 | |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 28 | anita\:9.3-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/9.3/All |
| 29 | anita\:9.3-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/i386/ |
| 30 | anita\:9.3-i386-build: QEMU_DISK_SIZE=2G |
| 31 | anita\:9.3-i386-build: QEMU_INSTALL_MEM=128M |
| 32 | anita\:9.3-i386-build: QEMU_RUNTIME_MEM=256M |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 33 | |
| 34 | anita\:8.2-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/8.2/All |
| 35 | anita\:8.2-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/amd64/ |
| 36 | anita\:8.2-amd64-build: QEMU_DISK_SIZE=2G |
| 37 | anita\:8.2-amd64-build: QEMU_INSTALL_MEM=192M |
| 38 | anita\:8.2-amd64-build: QEMU_RUNTIME_MEM=512M |
| 39 | |
| 40 | anita\:8.2-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/8.2/All |
| 41 | anita\:8.2-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/i386/ |
| 42 | anita\:8.2-i386-build: QEMU_DISK_SIZE=2G |
| 43 | anita\:8.2-i386-build: QEMU_INSTALL_MEM=128M |
| 44 | anita\:8.2-i386-build: QEMU_RUNTIME_MEM=256M |
| 45 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 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 Huber | 48b1fde | 2022-12-11 17:15:27 +0000 | [diff] [blame] | 53 | |
| 54 | kvm_arches = \ |
| 55 | $(if $(filter x86_64,$(shell uname -m)),amd64 i386) |
| 56 | |
| 57 | ANITA_KVM_TAGS := $(filter $(addprefix %-,$(kvm_arches)),$(ANITA_TAGS)) |
| 58 | ANITA_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 Huber | b750149 | 2023-03-17 12:42:16 +0000 | [diff] [blame] | 62 | |
| 63 | # Always use GNU make |
| 64 | $(ANITA_TAGS): MAKECMD=gmake |
| 65 | |
| 66 | # No libjaylink |
| 67 | $(ANITA_TAGS): MAKEARGS+=CONFIG_JLINK_SPI=no |
| 68 | |
Nico Huber | b1d4b1d | 2023-03-17 13:32:06 +0000 | [diff] [blame] | 69 | # No libftdi1 |
| 70 | $(ANITA_TAGS): MAKEARGS+=CONFIG_FT2232_SPI=no CONFIG_USBBLASTER_SPI=no |