-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (42 loc) · 1.54 KB
/
Copy pathMakefile
File metadata and controls
54 lines (42 loc) · 1.54 KB
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
# SPDX-FileCopyrightText: © 2026 Phala Network <dstack@phala.network>
#
# SPDX-License-Identifier: Apache-2.0
OS_YOCTO_SUBMODULES := \
os/yocto/deps/bitbake \
os/yocto/deps/openembedded-core \
os/yocto/deps/meta-yocto \
os/yocto/deps/meta-confidential-compute \
os/yocto/deps/meta-virtualization \
os/yocto/deps/meta-openembedded \
os/yocto/deps/meta-rust-bin \
os/yocto/deps/meta-security
.PHONY: help core core-check core-test sdk-test os os-yocto os-deps os-image os-repro-check
help:
@echo "dstack monorepo targets:"
@echo " core build the Rust workspace"
@echo " core-check check the Rust workspace"
@echo " core-test test the Rust workspace with the simulator"
@echo " sdk-test run all public SDK tests"
@echo " os build the guest OS natively with the default backend"
@echo " os-yocto build the guest OS natively with Yocto"
@echo " os-deps initialize only the Yocto dependency submodules"
@echo " os-image build one production guest image in the pinned container"
@echo " os-repro-check build twice and compare reproducible outputs"
core:
cargo build --manifest-path dstack/Cargo.toml
core-check:
cargo check --manifest-path dstack/Cargo.toml --workspace
core-test:
./dstack/run-tests.sh
sdk-test:
cd sdk && ./run-tests.sh
os:
./os/build.sh
os-yocto:
./os/build.sh --backend yocto
os-deps:
git submodule update --init --depth 1 -- $(OS_YOCTO_SUBMODULES)
os-image: os-deps
cd os/yocto/repro-build && ./repro-build.sh -n
os-repro-check: os-deps
cd os/yocto/repro-build && ./repro-build.sh