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 | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 4 | anita\:9.3-sparc64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/sparc64/9.3/All |
| 5 | anita\:9.3-sparc64-build: NETBSD_IMAGE=pub/NetBSD/iso/9.3/NetBSD-9.3-sparc64.iso |
| 6 | anita\:9.3-sparc64-build: QEMU_DISK_SIZE=2G |
| 7 | anita\:9.3-sparc64-build: QEMU_INSTALL_MEM=192M |
| 8 | anita\:9.3-sparc64-build: QEMU_RUNTIME_MEM=512M |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 9 | |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 10 | anita\:9.3-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/9.3/All |
| 11 | anita\:9.3-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/amd64/ |
| 12 | anita\:9.3-amd64-build: QEMU_DISK_SIZE=2G |
| 13 | anita\:9.3-amd64-build: QEMU_INSTALL_MEM=192M |
| 14 | anita\:9.3-amd64-build: QEMU_RUNTIME_MEM=512M |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 15 | |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 16 | anita\:9.3-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/9.3/All |
| 17 | anita\:9.3-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-9.3/i386/ |
| 18 | anita\:9.3-i386-build: QEMU_DISK_SIZE=2G |
| 19 | anita\:9.3-i386-build: QEMU_INSTALL_MEM=128M |
| 20 | anita\:9.3-i386-build: QEMU_RUNTIME_MEM=256M |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 21 | |
| 22 | anita\:8.2-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/8.2/All |
| 23 | anita\:8.2-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/amd64/ |
| 24 | anita\:8.2-amd64-build: QEMU_DISK_SIZE=2G |
| 25 | anita\:8.2-amd64-build: QEMU_INSTALL_MEM=192M |
| 26 | anita\:8.2-amd64-build: QEMU_RUNTIME_MEM=512M |
| 27 | |
| 28 | anita\:8.2-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/8.2/All |
| 29 | anita\:8.2-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/i386/ |
| 30 | anita\:8.2-i386-build: QEMU_DISK_SIZE=2G |
| 31 | anita\:8.2-i386-build: QEMU_INSTALL_MEM=128M |
| 32 | anita\:8.2-i386-build: QEMU_RUNTIME_MEM=256M |
| 33 | |
| 34 | anita\:7.1-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/7.1/All |
| 35 | anita\:7.1-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/amd64/ |
| 36 | anita\:7.1-amd64-build: QEMU_DISK_SIZE=1G |
| 37 | anita\:7.1-amd64-build: QEMU_INSTALL_MEM=192M |
| 38 | anita\:7.1-amd64-build: QEMU_RUNTIME_MEM=512M |
| 39 | |
| 40 | anita\:7.1-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/7.1/All |
| 41 | anita\:7.1-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/i386/ |
| 42 | anita\:7.1-i386-build: QEMU_DISK_SIZE=1G |
| 43 | anita\:7.1-i386-build: QEMU_INSTALL_MEM=128M |
| 44 | anita\: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 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 |
| 71 | |
Nico Huber | b750149 | 2023-03-17 12:42:16 +0000 | [diff] [blame] | 72 | # Compiler doesn't like simplified initializers, e.g. `= { 0 };` |
| 73 | anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=WARNERROR=no |
Nico Huber | 547b9b0 | 2023-03-17 14:50:44 +0000 | [diff] [blame] | 74 | |
| 75 | # Missing pkg-config (container images can't be updated anymore) |
| 76 | anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=HAS_LIBPCI=yes |
| 77 | anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBPCI_LDFLAGS='-L/usr/pkg/lib -lpciutils -lpci' |
| 78 | anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBPCI_CFLAGS=-I/usr/pkg/include/pciutils |
| 79 | anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=HAS_LIBUSB1=yes |
| 80 | anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBUSB1_LDFLAGS='-L/usr/pkg/lib -lusb-1.0' |
| 81 | anita\:7.1-i386 anita\:7.1-amd64: MAKEARGS+=CONFIG_LIBUSB1_CFLAGS=-I/usr/pkg/include/libusb-1.0 |
Nico Huber | 61da8c7 | 2024-04-21 21:26:38 +0200 | [diff] [blame^] | 82 | anita\:7.1-i386 anita\:7.1-amd64: ENV_VARS+=LD_LIBRARY_PATH=/usr/pkg/lib |