mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-30 00:13:43 +02:00
manibuilder/anita: Factor things out into Makefile.anita
The anita-based NetBSD targets need noisy, per-target handling. Factor it out into another Makefile. Change-Id: I0a3ca751b42f1ca8c05d93eb9740bb0ee5cc6d09 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52483 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
991009505d
commit
928b478d75
@ -12,30 +12,7 @@ spc := $(spc) $(spc)
|
|||||||
stem = $(word 1,$(subst :,$(spc),$(subst \:,$(spc),$(1))))
|
stem = $(word 1,$(subst :,$(spc),$(subst \:,$(spc),$(1))))
|
||||||
ident = $(subst :,_,$(subst \:,_,$(1)))
|
ident = $(subst :,_,$(subst \:,_,$(1)))
|
||||||
|
|
||||||
PKGSRC_MIRROR = http://cdn.netbsd.org/
|
include Makefile.anita
|
||||||
NETBSD_MIRROR = http://ftp.de.netbsd.org/
|
|
||||||
|
|
||||||
anita\:8.2-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/8.2/All
|
|
||||||
anita\:8.2-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/amd64/
|
|
||||||
anita\:8.2-amd64-build: QEMU_DISK_SIZE=2G
|
|
||||||
anita\:8.2-amd64-build: QEMU_MEM_SIZE=256M
|
|
||||||
|
|
||||||
anita\:7.1-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/7.1/All
|
|
||||||
anita\:7.1-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/amd64/
|
|
||||||
anita\:7.1-amd64-build: QEMU_DISK_SIZE=1G
|
|
||||||
anita\:7.1-amd64-build: QEMU_MEM_SIZE=128M
|
|
||||||
|
|
||||||
anita\:7.1-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/7.1/All
|
|
||||||
anita\:7.1-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/i386/
|
|
||||||
anita\:7.1-i386-build: QEMU_DISK_SIZE=1G
|
|
||||||
anita\:7.1-i386-build: QEMU_MEM_SIZE=128M
|
|
||||||
|
|
||||||
$(addsuffix -build,$(ANITA_TAGS)): %-build: Dockerfile.anita anita-wrapper.sh
|
|
||||||
$(QUIET_SETUP)docker build . -f $< -t mani/$* \
|
|
||||||
--build-arg PKG_PATH=$(PKGSRC_MIRROR)$(PKGSRC_PATH) \
|
|
||||||
--build-arg INST_IMG=$(NETBSD_MIRROR)$(NETBSD_IMAGE) \
|
|
||||||
--build-arg DISK_SIZE=$(QEMU_DISK_SIZE) \
|
|
||||||
--build-arg MEM_SIZE=$(QEMU_MEM_SIZE)
|
|
||||||
|
|
||||||
define build_template
|
define build_template
|
||||||
Dockerfile.$(call ident,$(1)): Dockerfile.$(call stem,$(1)) mani-wrapper.sh
|
Dockerfile.$(call ident,$(1)): Dockerfile.$(call stem,$(1)) mani-wrapper.sh
|
||||||
|
24
util/manibuilder/Makefile.anita
Normal file
24
util/manibuilder/Makefile.anita
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
PKGSRC_MIRROR = http://cdn.netbsd.org/
|
||||||
|
NETBSD_MIRROR = http://ftp.de.netbsd.org/
|
||||||
|
|
||||||
|
anita\:8.2-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/8.2/All
|
||||||
|
anita\:8.2-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-8.2/amd64/
|
||||||
|
anita\:8.2-amd64-build: QEMU_DISK_SIZE=2G
|
||||||
|
anita\:8.2-amd64-build: QEMU_MEM_SIZE=256M
|
||||||
|
|
||||||
|
anita\:7.1-amd64-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/amd64/7.1/All
|
||||||
|
anita\:7.1-amd64-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/amd64/
|
||||||
|
anita\:7.1-amd64-build: QEMU_DISK_SIZE=1G
|
||||||
|
anita\:7.1-amd64-build: QEMU_MEM_SIZE=128M
|
||||||
|
|
||||||
|
anita\:7.1-i386-build: PKGSRC_PATH=pub/pkgsrc/packages/NetBSD/i386/7.1/All
|
||||||
|
anita\:7.1-i386-build: NETBSD_IMAGE=pub/NetBSD/NetBSD-7.1/i386/
|
||||||
|
anita\:7.1-i386-build: QEMU_DISK_SIZE=1G
|
||||||
|
anita\:7.1-i386-build: QEMU_MEM_SIZE=128M
|
||||||
|
|
||||||
|
$(addsuffix -build,$(ANITA_TAGS)): %-build: Dockerfile.anita anita-wrapper.sh
|
||||||
|
$(QUIET_SETUP)docker build . -f $< -t mani/$* \
|
||||||
|
--build-arg PKG_PATH=$(PKGSRC_MIRROR)$(PKGSRC_PATH) \
|
||||||
|
--build-arg INST_IMG=$(NETBSD_MIRROR)$(NETBSD_IMAGE) \
|
||||||
|
--build-arg DISK_SIZE=$(QEMU_DISK_SIZE) \
|
||||||
|
--build-arg MEM_SIZE=$(QEMU_MEM_SIZE)
|
Loading…
x
Reference in New Issue
Block a user