forked from Dstack-TEE/meta-dstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 800 Bytes
/
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
ifeq ($(BBPATH),)
$(error BBPATH is not set. Run `source dev-setup` first)
endif
.PHONY: all dist emu clean clean-dstack images
BUILD_DIR ?= build
BUILD_IMAGES_DIR ?= ${BUILD_DIR}/tmp/deploy/images/tdx
DIST_DIR ?= ${BUILD_DIR}/dist
IMAGE_FILES = dstack-initramfs.cpio.gz \
dstack-rootfs-tdx.cpio \
dstack-rootfs-dev-tdx.cpio \
bzImage \
ovmf.fd
ABS_IMAGE_FILES = $(addprefix ${BUILD_IMAGES_DIR}/, ${IMAGE_FILES})
all: dist
dist: $(ABS_IMAGE_FILES)
DIST_DIR=${DIST_DIR} BUILD_DIR=${BUILD_DIR} ./dist.sh
$(ABS_IMAGE_FILES):
make images
images:
bitbake dstack-initramfs dstack-rootfs dstack-rootfs-dev ovmf
emu:
TD=0 ./run_td.sh
run:
./run_td.sh
test:
make images dist run
clean:
git clean -xdff
clean-dstack:
bitbake -c cleansstate dstack-guest dstack-rootfs dstack-rootfs-dev