forked from lf-edge/eve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
733 lines (616 loc) · 32.4 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# Copyright (c) 2018 Zededa, Inc.
# SPDX-License-Identifier: Apache-2.0
#
# Run make (with no arguments) to see help on what targets are available
# you are not supposed to tweak these variables -- they are effectively R/O
HV_DEFAULT=kvm
GOVER ?= 1.15.3
PKGBASE=github.com/lf-edge/eve
GOMODULE=$(PKGBASE)/pkg/pillar
GOTREE=$(CURDIR)/pkg/pillar
BUILDTOOLS_BIN=$(CURDIR)/build-tools/bin
PATH:=$(BUILDTOOLS_BIN):$(PATH)
export CGO_ENABLED GOOS GOARCH PATH
# A set of tweakable knobs for our build needs (tweak at your risk!)
# Which version to assign to snapshot builds (0.0.0 if built locally, 0.0.0-snapshot if on CI/CD)
EVE_SNAPSHOT_VERSION=0.0.0
# which language bindings to generate for EVE API
PROTO_LANGS=go python
# Use 'make HV=acrn|xen|kvm' to build ACRN images (AMD64 only), Xen or KVM
HV=$(HV_DEFAULT)
# How large to we want the disk to be in Mb
MEDIA_SIZE=8192
# Image type for final disk images
IMG_FORMAT=qcow2
# Filesystem type for rootfs image
ROOTFS_FORMAT=squash
# Image type for installer image
INSTALLER_IMG_FORMAT=raw
# SSH port to use for running images live
SSH_PORT=2222
# ports to proxy into a running EVE instance (in ssh notation with -L)
SSH_PROXY=-L6000:localhost:6000
# ssh key to be used for getting into an EVE instance
SSH_KEY=$(CONF_DIR)/ssh.key
# Use QEMU H/W accelearation (any non-empty value will trigger using it)
ACCEL=
# Location of the EVE configuration folder to be used in builds
CONF_DIR=conf
# Source of the cloud-init enabled qcow2 Linux VM for all architectures
BUILD_VM_SRC_arm64=https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-arm64.img
BUILD_VM_SRC_amd64=https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
BUILD_VM_SRC=$(BUILD_VM_SRC_$(ZARCH))
UNAME_S := $(shell uname -s)
USER = $(shell id -u -n)
GROUP = $(shell id -g -n)
UID = $(shell id -u)
GID = $(shell id -g)
#for MacOS - use predefined user and group IDs
ifeq ($(UNAME_S),Darwin)
USER = eve
GROUP = eve
UID = 1001
GID = 1001
endif
REPO_BRANCH=$(shell git rev-parse --abbrev-ref HEAD | tr / _)
REPO_SHA=$(shell git describe --match '$$^' --abbrev=8 --always --dirty)
REPO_TAG=$(shell git describe --always | grep -E '[0-9]*\.[0-9]*\.[0-9]*' || echo snapshot)
REPO_DIRTY_TAG=$(if $(findstring -dirty,$(REPO_SHA)),-$(shell date -u +"%Y-%m-%d.%H.%M"))
EVE_TREE_TAG = $(shell git describe --abbrev=8 --always --dirty)
# ROOTFS_VERSION used to construct the installer directory
ROOTFS_VERSION:=$(if $(findstring snapshot,$(REPO_TAG)),$(EVE_SNAPSHOT_VERSION)-$(REPO_BRANCH)-$(REPO_SHA)$(REPO_DIRTY_TAG),$(REPO_TAG))
APIDIRS = $(shell find ./api/* -maxdepth 1 -type d -exec basename {} \;)
HOSTARCH:=$(subst aarch64,arm64,$(subst x86_64,amd64,$(shell uname -m)))
# by default, take the host architecture as the target architecture, but can override with `make ZARCH=foo`
# assuming that the toolchain supports it, of course...
ZARCH ?= $(HOSTARCH)
export ZARCH
# warn if we are cross-compiling and track it
CROSS ?=
ifneq ($(HOSTARCH),$(ZARCH))
CROSS = 1
$(warning "WARNING: We are assembling an $(ZARCH) image on $(HOSTARCH). Things may break.")
endif
DOCKER_ARCH_TAG=$(ZARCH)
FULL_VERSION:=$(ROOTFS_VERSION)-$(HV)-$(ZARCH)
# where we store outputs
DIST=$(CURDIR)/dist/$(ZARCH)
DOCKER_DIST=/eve/dist/$(ZARCH)
IPXE_IMG=$(DIST)/ipxe.efi
LIVE=$(BUILD_DIR)/live
LIVE_IMG=$(BUILD_DIR)/live.$(IMG_FORMAT)
TARGET_IMG=$(BUILD_DIR)/target.img
INSTALLER=$(BUILD_DIR)/installer
BUILD_DIR=$(DIST)/$(ROOTFS_VERSION)
CURRENT_DIR=$(DIST)/current
CURRENT_IMG=$(CURRENT_DIR)/live.$(IMG_FORMAT)
CURRENT_INSTALLER=$(CURRENT_DIR)/installer
INSTALLER_IMG=$(INSTALLER).$(INSTALLER_IMG_FORMAT)
INSTALLER_FIRMWARE_DIR=$(INSTALLER)/firmware
CURRENT_FIRMWARE_DIR=$(CURRENT_INSTALLER)/firmware
BIOS_IMG=$(INSTALLER_FIRMWARE_DIR)/OVMF.fd $(INSTALLER_FIRMWARE_DIR)/OVMF_CODE.fd $(INSTALLER_FIRMWARE_DIR)/OVMF_VARS.fd
RUNME=$(BUILD_DIR)/runme.sh
BUILD_YML=$(BUILD_DIR)/build.yml
BUILD_VM=$(DIST)/build-vm.qcow2
BUILD_VM_CLOUD_INIT=$(DIST)/build-vm-ci.qcow2
ROOTFS=$(INSTALLER)/rootfs
ROOTFS_FULL_NAME=$(INSTALLER)/rootfs-$(ROOTFS_VERSION)
ROOTFS_COMPLETE=$(ROOTFS_FULL_NAME)-%-$(ZARCH).$(ROOTFS_FORMAT)
ROOTFS_IMG=$(ROOTFS).img
CONFIG_IMG=$(INSTALLER)/config.img
INITRD_IMG=$(INSTALLER)/initrd.img
PERSIST_IMG=$(INSTALLER)/persist.img
EFI_PART=$(INSTALLER)/EFI
BOOT_PART=$(INSTALLER)/boot
DEVICETREE_DTB_amd64=
DEVICETREE_DTB_arm64=$(DIST)/dtb/eve.dtb
DEVICETREE_DTB=$(DEVICETREE_DTB_$(ZARCH))
CONF_FILES=$(shell ls -d $(CONF_DIR)/*)
PART_SPEC=efi conf imga
# parallels settings
# https://github.com/qemu/qemu/blob/595123df1d54ed8fbab9e1a73d5a58c5bb71058f/docs/interop/prl-xml.txt
# predefined GUID according link ^
PARALLELS_UUID={5fbaabe3-6958-40ff-92a7-860e329aab41}
PARALLELS_VM_NAME=EVE_Live
PARALLELS_CPUS=2 #num
PARALLELS_MEMORY=2048 #in megabytes
# VirtualBox settings
VB_VM_NAME=EVE_Live
VB_CPUS=2 #num
VB_MEMORY=2048 #in megabytes
# public cloud settings (only GCP is supported for now)
# note how GCP doesn't like dots so we replace them with -
CLOUD_IMG_NAME=$(subst .,-,live-$(FULL_VERSION))
CLOUD_PROJECT=-project lf-edge-eve
CLOUD_BUCKET=-bucket eve-live
CLOUD_INSTANCE=-zone us-west1-a -machine n1-standard-1
# qemu settings
QEMU_SYSTEM_arm64=qemu-system-aarch64
QEMU_SYSTEM_amd64=qemu-system-x86_64
QEMU_SYSTEM=$(QEMU_SYSTEM_$(ZARCH))
QEMU_ACCEL_Y_Darwin_amd64=-machine q35,accel=hvf,usb=off -cpu kvm64,kvmclock=off
QEMU_ACCEL_Y_Linux_amd64=-machine q35,accel=kvm,usb=off,dump-guest-core=off -cpu host,invtsc=on,kvmclock=off -machine kernel-irqchip=split -device intel-iommu,intremap=on,caching-mode=on,aw-bits=48
# -machine virt,gic_version=3
QEMU_ACCEL_Y_Linux_arm64=-machine virt,accel=kvm,usb=off,dump-guest-core=off -cpu host
QEMU_ACCEL__$(shell uname -s)_arm64=-machine virt,virtualization=true -cpu cortex-a57
QEMU_ACCEL__$(shell uname -s)_amd64=-machine q35 -cpu SandyBridge
QEMU_ACCEL:=$(QEMU_ACCEL_$(ACCEL:%=Y)_$(shell uname -s)_$(ZARCH))
QEMU_OPTS_NET1=192.168.1.0/24
QEMU_OPTS_NET1_FIRST_IP=192.168.1.10
QEMU_OPTS_NET2=192.168.2.0/24
QEMU_OPTS_NET2_FIRST_IP=192.168.2.10
QEMU_MEMORY:=4096
PFLASH_amd64=y
PFLASH=$(PFLASH_$(ZARCH))
QEMU_OPTS_BIOS_y=-drive if=pflash,format=raw,unit=0,readonly,file=$(CURRENT_FIRMWARE_DIR)/OVMF_CODE.fd -drive if=pflash,format=raw,unit=1,file=$(CURRENT_FIRMWARE_DIR)/OVMF_VARS.fd
QEMU_OPTS_BIOS_=-bios $(CURRENT_FIRMWARE_DIR)/OVMF.fd
QEMU_OPTS_BIOS=$(QEMU_OPTS_BIOS_$(PFLASH))
QEMU_OPTS_arm64= -drive file=fat:rw:$(dir $(DEVICETREE_DTB)),label=QEMU_DTB,format=vvfat
QEMU_OPTS_COMMON= -smbios type=1,serial=31415926 -m $(QEMU_MEMORY) -smp 4 -display none $(QEMU_OPTS_BIOS) \
-serial mon:stdio \
-rtc base=utc,clock=rt \
-netdev user,id=eth0,net=$(QEMU_OPTS_NET1),dhcpstart=$(QEMU_OPTS_NET1_FIRST_IP),hostfwd=tcp::$(SSH_PORT)-:22$(QEMU_TFTP_OPTS) -device virtio-net-pci,netdev=eth0,romfile="" \
-netdev user,id=eth1,net=$(QEMU_OPTS_NET2),dhcpstart=$(QEMU_OPTS_NET2_FIRST_IP) -device virtio-net-pci,netdev=eth1,romfile=""
QEMU_OPTS_CONF_PART=$(shell [ -d "$(CONF_PART)" ] && echo '-drive file=fat:rw:$(CONF_PART),format=raw')
QEMU_OPTS=$(QEMU_OPTS_COMMON) $(QEMU_ACCEL) $(QEMU_OPTS_$(ZARCH)) $(QEMU_OPTS_CONF_PART)
# -device virtio-blk-device,drive=image -drive if=none,id=image,file=X
# -device virtio-net-device,netdev=user0 -netdev user,id=user0,hostfwd=tcp::1234-:22
GOOS=linux
CGO_ENABLED=1
GOBUILDER=eve-build-$(shell echo $(USER) | tr A-Z a-z)
# if proxy is set, use it when building docker builder
ifneq ($(HTTP_PROXY),)
DOCKER_HTTP_PROXY:=--build-arg http_proxy=$(HTTP_PROXY)
endif
ifneq ($(HTTPS_PROXY),)
DOCKER_HTTPS_PROXY:=--build-arg https_proxy=$(HTTPS_PROXY)
endif
ifneq ($(NO_PROXY),)
DOCKER_NO_PROXY:=--build-arg no_proxy=$(NO_PROXY)
endif
ifneq ($(ALL_PROXY),)
DOCKER_ALL_PROXY:=--build-arg all_proxy=$(ALL_PROXY)
endif
# use "make V=1" for verbose logging
DASH_V :=
QUIET := @
SET_X := :
ifeq ($(V),1)
DASH_V := -v
QUIET :=
SET_X := set -x
endif
DOCKER_UNPACK= _() { C=`docker create $$1 fake` ; shift ; docker export $$C | tar -xf - "$$@" ; docker rm $$C ; } ; _
DOCKER_GO = _() { $(SET_X); mkdir -p $(CURDIR)/.go/src/$${3:-dummy} ; mkdir -p $(CURDIR)/.go/bin ; \
docker_go_line="docker run $$DOCKER_GO_ARGS -i --rm -u $(USER) -w /go/src/$${3:-dummy} \
-v $(CURDIR)/.go:/go -v $$2:/go/src/$${3:-dummy} -v $${4:-$(CURDIR)/.go/bin}:/go/bin -v $(CURDIR)/:/eve -v $${HOME}:/home/$(USER) \
-e GOOS -e GOARCH -e CGO_ENABLED -e BUILD=local $(GOBUILDER) bash --noprofile --norc -c" ; \
verbose=$(V) ;\
verbose=$${verbose:-0} ;\
[ $$verbose -ge 1 ] && echo $$docker_go_line "\"$$1\""; \
$$docker_go_line "$$1" ; } ; _
PARSE_PKGS=$(if $(strip $(EVE_HASH)),EVE_HASH=)$(EVE_HASH) DOCKER_ARCH_TAG=$(DOCKER_ARCH_TAG) ./tools/parse-pkgs.sh
LINUXKIT=$(BUILDTOOLS_BIN)/linuxkit
LINUXKIT_VERSION=80c4edd5c54dc05fbeae932440372990fce39bd6
LINUXKIT_SOURCE=https://github.com/linuxkit/linuxkit.git
LINUXKIT_OPTS=--disable-content-trust $(if $(strip $(EVE_HASH)),--hash) $(EVE_HASH) $(if $(strip $(EVE_REL)),--release) $(EVE_REL) $(FORCE_BUILD)
LINUXKIT_PKG_TARGET=build
RESCAN_DEPS=FORCE
FORCE_BUILD=--force
# we use the following block to assign correct tag to the Docker registry artifact
ifeq ($(LINUXKIT_PKG_TARGET),push)
# only builds from master branch are allowed to be called snapshots
# everything else gets tagged with a branch name itself UNLESS
# we're building off of a annotated tag
EVE_REL_$(REPO_BRANCH)_$(REPO_TAG):=$(REPO_TAG)
EVE_REL_$(REPO_BRANCH)_snapshot:=$(REPO_BRANCH)
EVE_REL_master_snapshot:=snapshot
EVE_REL:=$(EVE_REL_$(REPO_BRANCH)_$(REPO_TAG))
# the only time we rebuild everything from scratch is when we're building 'latest' release
# in order to achieve that we have to force EVE_HASH to be the release version
ifeq ($(shell [ "`git tag | grep -E '[0-9]*\.[0-9]*\.[0-9]*' | sort -t. -n -k1,1 -k2,2 -k3,3 | tail -1`" = $(REPO_TAG) ] && echo latest),latest)
EVE_HASH:=$(REPO_TAG)
EVE_REL:=latest
endif
endif
# We are currently filtering out a few packages from bulk builds
# since they are not getting published in Docker HUB
PKGS=$(shell ls -d pkg/* | grep -Ev "eve|test-microsvcs")
# Top-level targets
all: help
$(QUIET): $@: Succeeded
# just reports the version, without appending qualifies like HVM or such
version:
@echo $(ROOTFS_VERSION)
# makes a link to current
current: $(CURRENT_DIR)
$(CURRENT_DIR): $(DIST)
@rm -f $@ && ln -s $(BUILD_DIR) $@
# reports the image version that current points to
# we explicitly do *not* use $(BUILD_DIR), because that is recalculated each time, and it might have changed
# since we last built. We just want to know what current is pointing to *now*, not what it might point to
# if we ran a new build.
currentversion:
#echo $(shell readlink $(CURRENT) | sed -E 's/rootfs-(.*)\.[^.]*$/\1/')
@cat $(CURRENT_DIR)/installer/eve_version
.PHONY: currentversion
test: $(GOBUILDER) | $(DIST)
@echo Running tests on $(GOMODULE)
$(QUIET)$(DOCKER_GO) "gotestsum --jsonfile $(DOCKER_DIST)/results.json --junitfile $(DOCKER_DIST)/results.xml" $(GOTREE) $(GOMODULE)
$(QUIET): $@: Succeeded
itest: $(GOBUILDER) run-proxy | $(DIST)
@echo Running integration tests
@cd tests/integration ; CGO_ENABLED=0 GOOS= go test -v -run "$(ITESTS)" .
clean:
rm -rf $(DIST) images/*.yml pkg/pillar/Dockerfile pkg/qrexec-lib/Dockerfile pkg/qrexec-dom0/Dockerfile pkg/xen-tools/Dockerfile
yetus:
@echo Running yetus
docker run -it --rm -v $(CURDIR):/src:delegated -v /tmp:/tmp apache/yetus:0.13.0 \
--basedir=/src \
--dirty-workspace \
--empty-patch \
--plugins=all
build-tools: $(LINUXKIT)
@echo Done building $<
$(BUILD_VM_CLOUD_INIT): build-tools/src/scripts/cloud-init.in | $(DIST)
@if [ -z "$(BUILD_VM_SSH_PUB_KEY)" ] || [ -z "$(BUILD_VM_GH_TOKEN)" ]; then \
echo "Must be run as: make BUILD_VM_SSH_PUB_KEY=XXX BUILD_VM_GH_TOKEN=YYY $@" && exit 1 ;\
fi
$(QUIET)sed -e 's#@ZARCH@#$(subst amd64,x64,$(ZARCH))#' -e 's#@SSH_PUB_KEY@#$(BUILD_VM_SSH_PUB_KEY)#g' \
-e 's#@GH_TOKEN@#$(BUILD_VM_GH_TOKEN)#g' < $< | docker run -i alpine:edge sh -c \
'apk add cloud-utils > /dev/null 2>&1 && cloud-localds --disk-format qcow2 _ - && cat _' > $@
$(BUILD_VM).orig: | $(DIST)
@curl -L $(BUILD_VM_SRC) > $@
$(BUILD_VM): $(BUILD_VM_CLOUD_INIT) $(BUILD_VM).orig $(DEVICETREE_DTB) $(BIOS_IMG) | $(DIST)
# currently a fulle EVE build *almost* fits into 40Gb -- we need twice as much in a VM
qemu-img resize [email protected] 100G
$(QEMU_SYSTEM) $(QEMU_OPTS) -drive format=qcow2,[email protected] -drive format=qcow2,file=$<
mv [email protected] $@
$(BIOS_IMG): $(LINUXKIT) | $(INSTALLER_FIRMWARE_DIR)
cd $| ; $(DOCKER_UNPACK) $(shell $(LINUXKIT) pkg show-tag pkg/uefi)-$(DOCKER_ARCH_TAG) $(notdir $@)
$(QUIET): $@: Succeeded
$(IPXE_IMG): $(LINUXKIT) | $(DIST)
cd $| ; $(DOCKER_UNPACK) $(shell $(LINUXKIT) pkg show-tag pkg/ipxe)-$(DOCKER_ARCH_TAG) $(notdir $@)
$(DEVICETREE_DTB): $(BIOS_IMG) | $(DIST)
mkdir $(dir $@) 2>/dev/null || :
$(QEMU_SYSTEM) $(QEMU_OPTS) -machine dumpdtb=$@
$(QUIET): $@: Succeeded
$(EFI_PART): $(LINUXKIT) | $(INSTALLER)
cd $| ; $(DOCKER_UNPACK) $(shell $(LINUXKIT) pkg show-tag pkg/grub)-$(DOCKER_ARCH_TAG) $(notdir $@)
$(QUIET): $@: Succeeded
$(BOOT_PART): $(LINUXKIT) | $(INSTALLER)
cd $| ; $(DOCKER_UNPACK) $(shell $(LINUXKIT) pkg show-tag pkg/u-boot)-$(DOCKER_ARCH_TAG) $(notdir $@)
$(QUIET): $@: Succeeded
$(INITRD_IMG): $(LINUXKIT) | $(INSTALLER)
cd $| ; $(DOCKER_UNPACK) $(shell $(LINUXKIT) pkg show-tag pkg/mkimage-raw-efi)-$(DOCKER_ARCH_TAG) $(notdir $@ $(EFI_PART))
$(QUIET): $@: Succeeded
# run-installer
#
# This creates an image equivalent to live.img (called target.img)
# through the installer. It's the long road to live.img. Good for
# testing.
#
run-installer-iso: $(BIOS_IMG) $(DEVICETREE_DTB)
qemu-img create -f ${IMG_FORMAT} $(TARGET_IMG) ${MEDIA_SIZE}M
$(QEMU_SYSTEM) -drive file=$(TARGET_IMG),format=$(IMG_FORMAT) -cdrom $(INSTALLER).iso -boot d $(QEMU_OPTS)
run-installer-raw: $(BIOS_IMG) $(DEVICETREE_DTB)
qemu-img create -f ${IMG_FORMAT} $(TARGET_IMG) ${MEDIA_SIZE}M
$(QEMU_SYSTEM) -drive file=$(TARGET_IMG),format=$(IMG_FORMAT) -drive file=$(INSTALLER).raw,format=raw $(QEMU_OPTS)
run-installer-net: QEMU_TFTP_OPTS=,tftp=$(dir $(IPXE_IMG)),bootfile=$(notdir $(IPXE_IMG))
run-installer-net: $(BIOS_IMG) $(IPXE_IMG) $(DEVICETREE_DTB)
qemu-img create -f ${IMG_FORMAT} $(TARGET_IMG) ${MEDIA_SIZE}M
$(QEMU_SYSTEM) -drive file=$(TARGET_IMG),format=$(IMG_FORMAT) $(QEMU_OPTS)
# run MUST NOT change the current dir; it depends on the output being correct from a previous build
run-live run: $(BIOS_IMG) $(DEVICETREE_DTB)
$(QEMU_SYSTEM) $(QEMU_OPTS) -drive file=$(CURRENT_IMG),format=$(IMG_FORMAT)
run-target: $(BIOS_IMG) $(DEVICETREE_DTB)
$(QEMU_SYSTEM) $(QEMU_OPTS) -drive file=$(TARGET_IMG),format=$(IMG_FORMAT)
run-rootfs: $(BIOS_IMG) $(EFI_PART) $(DEVICETREE_DTB)
(echo 'set devicetree="(hd0,msdos1)/eve.dtb"' ; echo 'set rootfs_root=/dev/vdb' ; echo 'set root=hd1' ; echo 'export rootfs_root' ; echo 'export devicetree' ; echo 'configfile /EFI/BOOT/grub.cfg' ) > $(EFI_PART)/BOOT/grub.cfg
$(QEMU_SYSTEM) $(QEMU_OPTS) -drive file=$(ROOTFS_IMG),format=raw -drive file=fat:rw:$(EFI_PART)/..,label=CONFIG,format=vvfat
$(QUIET): $@: Succeeded
run-grub: $(BIOS_IMG) $(EFI_PART) $(DEVICETREE_DTB)
[ -f $(EFI_PART)/BOOT/grub.cfg ] && mv $(EFI_PART)/BOOT/grub.cfg $(EFI_PART)/BOOT/grub.cfg.$(notdir $(shell mktemp))
$(QEMU_SYSTEM) $(QEMU_OPTS) -drive format=vvfat,label=EVE,file=fat:rw:$(EFI_PART)/..
$(QUIET): $@: Succeeded
run-compose: images/docker-compose.yml images/version.yml
docker-compose -f $< run storage-init sh -c 'rm -rf /run/* /config/* ; cp -Lr /conf/* /config/ ; echo IMGA > /run/eve.id'
docker-compose -f $< up
run-proxy:
ssh $(SSH_PROXY) -N -i $(SSH_KEY) -p $(SSH_PORT) -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null root@localhost &
run-build-vm: $(BIOS_IMG) $(DEVICETREE_DTB)
$(QEMU_SYSTEM) $(QEMU_OPTS) -drive format=qcow2,file=$(BUILD_VM)
run-live-vb:
@[ -f "$(LIVE).vdi" ] || { echo "Please run: make live-vdi"; exit 1; }
VBoxManage list vms | grep $(VB_VM_NAME) >/dev/null && VBoxManage controlvm $(VB_VM_NAME) acpipowerbutton & sleep 10 & VBoxManage unregistervm $(VB_VM_NAME) --delete || echo "No VMs with $(VB_VM_NAME) name"
VBoxManage createvm --name $(VB_VM_NAME) --register --basefolder $(DIST)/
VBoxManage modifyvm $(VB_VM_NAME) --cpus $(VB_CPUS) --memory $(VB_MEMORY) --vram 16 --nested-hw-virt on --ostype Ubuntu_64 --mouse usbtablet --graphicscontroller vmsvga --boot1 disk --boot2 net
VBoxManage storagectl $(VB_VM_NAME) --name "SATA Controller" --add SATA --controller IntelAhci --bootable on --hostiocache on
VBoxManage storageattach $(VB_VM_NAME) --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium $(LIVE).vdi
VBoxManage modifyvm $(VB_VM_NAME) --nic1 natnetwork --nat-network1 natnet1 --cableconnected1 on --natpf1 ssh,tcp,,$(SSH_PORT),,22
VBoxManage modifyvm $(VB_VM_NAME) --nic2 natnetwork --nat-network2 natnet2 --cableconnected2 on
VBoxManage startvm $(VB_VM_NAME)
run-live-parallels:
@[ -d "$(LIVE).parallels" ] || { echo "Please run: make live-parallels"; exit 1; }
@prlctl list -a | grep $(PARALLELS_VM_NAME) | grep "invalid" >/dev/null && prlctl unregister $(PARALLELS_VM_NAME) || echo "No invalid $(PARALLELS_VM_NAME) VM"
@if prlctl list --all | grep "$(PARALLELS_VM_NAME)"; then \
prlctl stop $(PARALLELS_VM_NAME) --kill; \
prlctl set $(PARALLELS_VM_NAME) --device-set hdd0 --image $(LIVE).parallels --nested-virt on --adaptive-hypervisor on --hypervisor-type parallels --cpus $(PARALLELS_CPUS) --memsize $(PARALLELS_MEMORY); \
else \
prlctl create $(PARALLELS_VM_NAME) --distribution ubuntu --no-hdd --dst $(DIST)/ ; \
prlctl set $(PARALLELS_VM_NAME) --device-add hdd --image $(LIVE).parallels --nested-virt on --adaptive-hypervisor on --hypervisor-type parallels --cpus $(PARALLELS_CPUS) --memsize $(PARALLELS_MEMORY); \
prlctl set $(PARALLELS_VM_NAME) --device-del net0 ; \
prlctl set $(PARALLELS_VM_NAME) --device-add net --type shared --adapter-type virtio --ipadd 192.168.1.0/24 --dhcp yes ; \
prlctl set $(PARALLELS_VM_NAME) --device-add net --type shared --adapter-type virtio --ipadd 192.168.2.0/24 --dhcp yes ; \
prlsrvctl net set Shared --nat-tcp-add ssh,$(SSH_PORT),$(PARALLELS_VM_NAME),22 ; \
prlctl start $(PARALLELS_VM_NAME) ; \
fi
# alternatively (and if you want greater control) you can replace the first command with
# gcloud auth activate-service-account --key-file=-
# gcloud compute images create $(CLOUD_IMG_NAME) --project=lf-edge-eve
# --source-uri=https://storage.googleapis.com/eve-live/live.img.tar.gz
# --licenses="https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
run-live-gcp: $(LINUXKIT) | $(LIVE).img.tar.gz
if gcloud compute images list -$(CLOUD_PROJECT) --filter="name=$(CLOUD_IMG_NAME)" 2>&1 | grep -q 'Listed 0 items'; then \
$^ push gcp -nested-virt -img-name $(CLOUD_IMG_NAME) $(CLOUD_PROJECT) $(CLOUD_BUCKET) $| ;\
fi
$^ run gcp $(CLOUD_PROJECT) $(CLOUD_INSTANCE) $(CLOUD_IMG_NAME)
live-gcp-upload: $(LINUXKIT) | $(LIVE).img.tar.gz
if gcloud compute images list -$(CLOUD_PROJECT) --filter="name=$(CLOUD_IMG_NAME)" 2>&1 | grep -q 'Listed 0 items'; then \
$^ push gcp -nested-virt -img-name $(CLOUD_IMG_NAME) $(CLOUD_PROJECT) $(CLOUD_BUCKET) $| ;\
echo "Uploaded $(CLOUD_IMG_NAME)"; \
else \
echo "Image $(CLOUD_IMG_NAME) already exists in GCP" ;\
fi
# ensure the dist directory exists
$(DIST) $(BUILD_DIR) $(INSTALLER_FIRMWARE_DIR):
mkdir -p $@
# ensure the installer dir exists, and save the version in the directory
# we need to save the version including hypervisor and architecture
$(INSTALLER):
@mkdir -p $@
# sample output 0.0.0-HEAD-a437e8e4-xen-amd64
@echo $(FULL_VERSION) > $(INSTALLER)/eve_version
# convenience targets - so you can do `make config` instead of `make dist/config.img`, and `make installer` instead of `make dist/amd64/installer.img
build-vm: $(BUILD_VM)
initrd: $(INITRD_IMG)
config: $(CONFIG_IMG)) ; $(QUIET): "$@: Succeeded, CONFIG_IMG=$(CONFIG_IMG)"
ssh-key: $(SSH_KEY)
rootfs: $(ROOTFS_IMG) current
rootfs-%: $(ROOTFS)-%.img ;
live: $(LIVE_IMG) $(BIOS_IMG) current ; $(QUIET): "$@: Succeeded, LIVE_IMG=$(LIVE_IMG)"
live-%: $(LIVE).% ; $(QUIET): "$@: Succeeded, LIVE=$(LIVE)"
installer: $(INSTALLER_IMG)
installer-%: $(INSTALLER).% ;
$(SSH_KEY):
rm -f $@*
ssh-keygen -P "" -f $@
mv [email protected] $(CONF_DIR)/authorized_keys
$(CONFIG_IMG): $(CONF_FILES) | $(INSTALLER)
./tools/makeconfig.sh $@ "$(ROOTFS_VERSION)" $(CONF_FILES)
$(QUIET): $@: Succeeded
$(PERSIST_IMG): | $(INSTALLER)
$(if $(findstring zfs,$(HV)),echo 'eve<3zfs' > $@)
# 1M of zeroes should be enough to trigger filesystem wipe on first boot
dd if=/dev/zero bs=1048576 count=1 >> $@
$(QUIET): $@: Succeeded
$(ROOTFS)-%.img: $(ROOTFS_IMG)
@rm -f $@ && ln -s $(notdir $<) $@
$(QUIET): $@: Succeeded
$(ROOTFS_IMG): images/rootfs-$(HV).yml | $(INSTALLER)
$(QUIET): $@: Begin
./tools/makerootfs.sh $< $@ $(ROOTFS_FORMAT) $(ZARCH)
@echo "size of $@ is $$(wc -c < "$@")B"
@[ $$(wc -c < "$@") -gt $$(( 250 * 1024 * 1024 )) ] && \
echo "ERROR: size of $@ is greater than 250MB (bigger than allocated partition)" && exit 1 || :
$(QUIET): $@: Succeeded
$(LIVE).raw: $(BOOT_PART) $(EFI_PART) $(ROOTFS_IMG) $(CONFIG_IMG) $(PERSIST_IMG) | $(INSTALLER)
./tools/makeflash.sh -C 350 $| $@ $(PART_SPEC)
$(QUIET): $@: Succeeded
$(INSTALLER).raw: $(EFI_PART) $(ROOTFS_IMG) $(INITRD_IMG) $(CONFIG_IMG) $(PERSIST_IMG) | $(INSTALLER)
./tools/makeflash.sh -C 350 $| $@ "conf_win installer inventory_win"
$(QUIET): $@: Succeeded
$(INSTALLER).iso: $(EFI_PART) $(ROOTFS_IMG) $(INITRD_IMG) $(CONFIG_IMG) $(PERSIST_IMG) | $(INSTALLER)
./tools/makeiso.sh $| $@
$(QUIET): $@: Succeeded
$(INSTALLER).net: eve
docker run lfedge/eve:$(ROOTFS_VERSION)-$(HV) installer_net > $@
tar -C $(DIST) -xvf $@
$(LIVE).vdi: $(LIVE).raw
qemu-img resize -f raw $< ${MEDIA_SIZE}M
qemu-img convert -O vdi $< $@
$(LIVE).parallels: $(LIVE).raw
rm -rf $@; mkdir $@
qemu-img resize -f raw $< ${MEDIA_SIZE}M
qemu-img convert -O parallels $< $@/live.0.$(PARALLELS_UUID).hds
qemu-img info -f parallels --output json $(LIVE).parallels/live.0.$(PARALLELS_UUID).hds | jq --raw-output '.["virtual-size"]' | xargs ./tools/parallels_disk.sh $(LIVE) $(PARALLELS_UUID)
# top-level linuxkit packages targets, note the one enforcing ordering between packages
pkgs: RESCAN_DEPS=
pkgs: FORCE_BUILD=
pkgs: build-tools $(PKGS)
@echo Done building packages
pkg/pillar: pkg/dnsmasq pkg/strongswan pkg/gpt-tools eve-pillar
$(QUIET): $@: Succeeded
pkg/xen-tools: pkg/uefi eve-xen-tools
$(QUIET): $@: Succeeded
pkg/qrexec-dom0: pkg/qrexec-lib pkg/xen-tools eve-qrexec-dom0
$(QUIET): $@: Succeeded
pkg/qrexec-lib: pkg/xen-tools eve-qrexec-lib
$(QUIET): $@: Succeeded
pkg/%: eve-% FORCE
$(QUIET): $@: Succeeded
$(RUNME) $(BUILD_YML):
cp pkg/eve/$(@F) $@
eve: $(BIOS_IMG) $(EFI_PART) $(CONFIG_IMG) $(PERSIST_IMG) $(INITRD_IMG) $(ROOTFS_IMG) fullname-rootfs $(BOOT_PART) $(RUNME) $(BUILD_YML) current | $(BUILD_DIR)
$(QUIET): "$@: Begin: EVE_REL=$(EVE_REL), HV=$(HV), LINUXKIT_PKG_TARGET=$(LINUXKIT_PKG_TARGET)"
cp images/*.yml $|
$(PARSE_PKGS) pkg/eve/Dockerfile.in > $|/Dockerfile
$(LINUXKIT) $(DASH_V) pkg $(LINUXKIT_PKG_TARGET) --disable-content-trust --hash-path $(CURDIR) --hash $(ROOTFS_VERSION)-$(HV) $(if $(strip $(EVE_REL)),--release) $(EVE_REL)$(if $(strip $(EVE_REL)),-$(HV)) $(FORCE_BUILD) $|
$(QUIET)if [ -n "$(EVE_REL)" ] && [ $(HV) = $(HV_DEFAULT) ]; then \
$(LINUXKIT) $(DASH_V) pkg $(LINUXKIT_PKG_TARGET) --disable-content-trust --hash-path $(CURDIR) --hash $(EVE_REL)-$(HV) --release $(EVE_REL) $(FORCE_BUILD) $| ;\
fi
$(QUIET): $@: Succeeded
proto-vendor:
@$(DOCKER_GO) "cd pkg/pillar ; go mod vendor" $(CURDIR) proto
proto-diagram: $(GOBUILDER)
@$(DOCKER_GO) "/usr/local/bin/protodot -src ./api/proto/config/devconfig.proto -output devconfig && cp ~/protodot/generated/devconfig.* ./api/images && dot ./api/images/devconfig.dot -Tpng -o ./api/images/devconfig.png && echo generated ./api/images/devconfig.*" $(CURDIR) api
.PHONY: proto-api-%
proto: $(GOBUILDER) api/go api/python proto-diagram
@echo Done building protobuf, you may want to vendor it into pillar by running proto-vendor
api/go: PROTOC_OUT_OPTS=paths=source_relative:
api/go: proto-api-go
api/python: proto-api-python
proto-api-%: $(GOBUILDER)
rm -rf api/$*/*/; mkdir -p api/$* # building $@
@$(DOCKER_GO) "protoc -I./proto --$(*)_out=$(PROTOC_OUT_OPTS)./$* \
proto/*/*.proto" $(CURDIR)/api api
patch:
@if ! echo $(REPO_BRANCH) | grep -Eq '^[0-9]+\.[0-9]+$$'; then echo "ERROR: must be on a release branch X.Y"; exit 1; fi
@if ! echo $(EVE_TREE_TAG) | grep -Eq '^$(REPO_BRANCH).[0-9]+-'; then echo "ERROR: can't find previous release's tag X.Y.Z"; exit 1; fi
@TAG=$(REPO_BRANCH).$$((`echo $(EVE_TREE_TAG) | sed -e 's#-.*$$##' | cut -f3 -d.` + 1)) &&\
git tag -a -m"Release $$TAG" $$TAG &&\
echo "Done tagging $$TAG patch release. Check the branch with git log and then run" &&\
echo " git push origin $(REPO_BRANCH) $$TAG"
release:
@bail() { echo "ERROR: $$@" ; exit 1 ; } ;\
X=`echo $(VERSION) | cut -s -d. -f1` ; Y=`echo $(VERSION) | cut -s -d. -f2` ; Z=`echo $(VERSION) | cut -s -d. -f3` ;\
[ -z "$$X" -o -z "$$Y" -o -z "$$Z" ] && bail "VERSION missing (or incorrect). Re-run as: make VERSION=x.y.z $@" ;\
(git fetch && [ `git diff origin/master..master | wc -l` -eq 0 ]) || bail "origin/master is different from master" ;\
if git checkout $$X.$$Y 2>/dev/null ; then \
echo "WARNING: branch $$X.$$Y already exists: you may want to run make patch instead" ;\
git merge origin/master ;\
else \
git checkout master -b $$X.$$Y && echo zedcloud.zededa.net > conf/server &&\
git commit -m"Setting default server to prod" conf/server ;\
fi || bail "Can't create $$X.$$Y branch" ;\
git tag -a -m"Release $$X.$$Y.$$Z" $$X.$$Y.$$Z &&\
echo "Done tagging $$X.$$Y.$$Z release. Check the branch with git log and then run" &&\
echo " git push origin $$X.$$Y $$X.$$Y.$$Z"
shell: $(GOBUILDER)
$(QUIET)DOCKER_GO_ARGS=-t ; $(DOCKER_GO) bash $(GOTREE) $(GOMODULE)
#
# Utility targets in support of our Dockerized build infrastrucutre
#
# build linuxkit for the host OS, not the container OS
$(LINUXKIT): GOOS=$(shell uname -s | tr '[A-Z]' '[a-z]')
$(LINUXKIT): | $(GOBUILDER)
$(QUIET)$(DOCKER_GO) \
"unset GOFLAGS; rm -rf /tmp/linuxkit && \
git clone $(LINUXKIT_SOURCE) /tmp/linuxkit && \
cd /tmp/linuxkit && \
git checkout $(LINUXKIT_VERSION) && \
cd /tmp/linuxkit/src/cmd/linuxkit && \
GO111MODULE=on CGO_ENABLED=0 go build -o /go/bin/linuxkit -mod=vendor . && \
cd && \
rm -rf /tmp/linuxkit" \
$(GOTREE) $(GOMODULE) $(BUILDTOOLS_BIN)
$(QUIET): $@: Succeeded
$(GOBUILDER):
$(QUIET): "$@: Begin: GOBUILDER=$(GOBUILDER)"
ifneq ($(BUILD),local)
@echo "Creating go builder image for user $(USER)"
$(QUIET)docker build --build-arg GOVER=$(GOVER) --build-arg USER=$(USER) --build-arg GROUP=$(GROUP) \
--build-arg UID=$(UID) --build-arg GID=$(GID) \
$(DOCKER_HTTP_PROXY) $(DOCKER_HTTPS_PROXY) $(DOCKER_NO_PROXY) $(DOCKER_ALL_PROXY) \
-t $@ build-tools/src/scripts > /dev/null
@echo "$@ docker container is ready to use"
endif
$(QUIET): $@: Succeeded
#
# Common, generalized rules
#
%.gcp: %.raw | $(DIST)
cp $< $@
dd of=$@ bs=1 seek=$$(($(MEDIA_SIZE) * 1024 * 1024)) count=0
rm -f $(dir $@)/disk.raw ; ln -s $(notdir $@) $(dir $@)/disk.raw
$(DOCKER_GO) "tar --mode=644 --owner=root --group=root -S -h -czvf $(notdir $*).img.tar.gz disk.raw" $(DIST) dist
rm -f $(dir $@)/disk.raw
%.qcow2: %.raw | $(DIST)
qemu-img convert -c -f raw -O qcow2 $< $@
qemu-img resize $@ ${MEDIA_SIZE}M
$(QUIET): $@: Succeeded
%.yml: %.yml.in build-tools $(RESCAN_DEPS)
$(QUIET)$(PARSE_PKGS) $< > $@
$(QUIET): $@: Succeeded
%/Dockerfile: %/Dockerfile.in build-tools $(RESCAN_DEPS)
$(QUIET)$(PARSE_PKGS) $< > $@
$(QUIET): $@: Succeeded
eve-%: pkg/%/Dockerfile build-tools $(RESCAN_DEPS)
$(QUIET): "$@: Begin: LINUXKIT_PKG_TARGET=$(LINUXKIT_PKG_TARGET)"
$(QUIET)$(LINUXKIT) $(DASH_V) pkg $(LINUXKIT_PKG_TARGET) $(LINUXKIT_OPTS) pkg/$*
$(QUIET): "$@: Succeeded (intermediate for pkg/%)"
images/rootfs-%.yml.in: images/rootfs.yml.in FORCE
@if [ -e [email protected] ]; then patch -p0 -o [email protected] < [email protected] ;else cp $< [email protected] ;fi
$(QUIET)sed -e 's#EVE_VERSION#$(ROOTFS_VERSION)-$*-$(ZARCH)#' < [email protected] > $@ || rm $@ [email protected]
$(QUIET): $@: Succeeded
$(ROOTFS_FULL_NAME)-adam-kvm-$(ZARCH).$(ROOTFS_FORMAT): $(ROOTFS_FULL_NAME)-kvm-adam-$(ZARCH).$(ROOTFS_FORMAT)
$(ROOTFS_FULL_NAME)-kvm-adam-$(ZARCH).$(ROOTFS_FORMAT): fullname-rootfs $(SSH_KEY)
fullname-rootfs: $(ROOTFS_FULL_NAME)-$(HV)-$(ZARCH).$(ROOTFS_FORMAT) current
$(ROOTFS_FULL_NAME)-%-$(ZARCH).$(ROOTFS_FORMAT): $(ROOTFS_IMG)
@rm -f $@ && ln -s $(notdir $<) $@
$(QUIET): $@: Succeeded
%-show-tag:
@$(LINUXKIT) pkg show-tag pkg/$*
%Gopkg.lock: %Gopkg.toml | $(GOBUILDER)
@$(DOCKER_GO) "dep ensure -update $(GODEP_NAME)" $(dir $@)
@echo Done updating $@
docker-old-images:
./tools/oldimages.sh
docker-image-clean:
docker rmi -f $(shell ./tools/oldimages.sh)
.PRECIOUS: rootfs-% $(ROOTFS)-%.img $(ROOTFS_COMPLETE)
.PHONY: all clean test run pkgs help build-tools live rootfs config installer live current FORCE $(DIST) HOSTARCH
FORCE:
help:
@echo "EVE is Edge Virtualization Engine"
@echo
@echo "This Makefile automates commons tasks of building and running"
@echo " * EVE"
@echo " * Installer of EVE"
@echo " * linuxkit command line tools"
@echo "We currently support two platforms: x86_64 and aarch64. There is"
@echo "even rudimentary support for cross-compiling that can be triggered"
@echo "by forcing a particular architecture via adding ZARCH=[x86_64|aarch64]"
@echo "to the make's command line. You can also run in a cross- way since"
@echo "all the execution is done via qemu."
@echo
@echo "Commonly used maintenance and development targets:"
@echo " build-vm prepare a build VM for EVE in qcow2 format"
@echo " test run EVE tests"
@echo " clean clean build artifacts in a current directory (doesn't clean Docker)"
@echo " release prepare branch for a release (VERSION=x.y.z required)"
@echo " patch make a patch release on a current branch (must be a release branch)"
@echo " proto generates Go and Python source from protobuf API definitions"
@echo " proto-vendor update vendored API in packages that require it (e.g. pkg/pillar)"
@echo " shell drop into docker container setup for Go development"
@echo " yetus run Apache Yetus to check the quality of the source tree"
@echo
@echo "Commonly used build targets:"
@echo " build-tools builds linuxkit utilities and installs under build-tools/bin"
@echo " config builds a bundle with initial EVE configs"
@echo " pkgs builds all EVE packages"
@echo " pkg/XXX builds XXX EVE package"
@echo " rootfs builds default EVE rootfs image (upload it to the cloud as BaseImage)"
@echo " rootfs-XXX builds a particular kind of EVE rootfs image (xen, kvm)"
@echo " live builds a full disk image of EVE which can be function as a virtual device"
@echo " live-XXX builds a particular kind of EVE live image (raw, qcow2, gcp, vdi, parallels)"
@echo " installer builds raw disk installer image (to be installed on bootable media)"
@echo " installer-iso builds an ISO installers image (to be installed on bootable media)"
@echo
@echo "Commonly used run targets (note they don't automatically rebuild images they run):"
@echo " run-compose runs all EVE microservices via docker-compose deployment"
@echo " run-build-vm runs a build VM image"
@echo " run-live runs a full fledged virtual device on qemu (as close as it gets to actual h/w)"
@echo " run-live-parallels runs a full fledged virtual device on Parallels Desktop"
@echo " run-live-vb runs a full fledged virtual device on VirtualBox"
@echo " run-rootfs runs a rootfs.img (limited usefulness e.g. quick test before cloud upload)"
@echo " run-grub runs our copy of GRUB bootloader and nothing else (very limited usefulness)"
@echo " run-installer-iso runs installer.iso (via qemu) and 'installs' EVE into (initially blank) target.img"
@echo " run-installer-raw runs installer.raw (via qemu) and 'installs' EVE into (initially blank) target.img"
@echo " run-installer-net runs installer.net (via qemu/iPXE) and 'installs' EVE into (initially blank) target.img"
@echo " run-target runs a full fledged virtual device on qemu from target.img (similar to run-live)"
@echo
@echo "make run is currently an alias for make run-live"
@echo