@@ -52,26 +52,51 @@ This guide will demonstrate how to build a Zarhus OS image from zero!
52
52
53
53
# # Build
54
54
55
- From ` yocto` directory run:
55
+ Depending on which features you want to have in your build, pass the desired
56
+ ` .yml` files via command line. You can read more on that in
57
+ [kas documentation.](https://kas.readthedocs.io/en/latest/userguide/project-configuration.html#including-configuration-files-via-the-command-line)
58
+ The files should be passed in a specific order. The file which is passed after
59
+ some file will override settings set by the previously-passed file.
60
+
61
+ Currently, the following files are present in ` meta-zarhus/kas` :
62
+
63
+ * ` common.yml` : common configuration file, should be included in all builds;
64
+ * ` cache.yml` : file for cache mirrors configuration;
65
+ * ` debug.yml` : adds debug functionalities into the final image;
66
+ * ` rockchip.yml` : Rockchip-specific target configuration file, should be used
67
+ for Rockchip builds;
68
+ * ` webkit.yml` : includes Webkit and some additional functionalities into build.
69
+
70
+ Then check BSP layers for available target platform (target platforms configs
71
+ are located in ` conf/machine` directory of every BSP layer) and choose one.
72
+ Then, from ` yocto` directory run:
56
73
57
74
` ` ` shell
58
- $ SHELL=/bin/bash kas-container build meta-zarhus/kas-IMAGE_TYPE.yml
75
+ SHELL=/bin/bash KAS_MACHINE= < TARGET_NAME > kas-container build < KAS_FILES >
59
76
` ` `
60
77
61
78
!!! note
62
79
63
- Replace ` IMAGE_TYPE` with either ` debug` or ` prod` .
80
+ Replace ` < TARGET_NAME> ` with the name of the chosen target
81
+ configuration file, and ` < KAS_FILES> ` with a list of kas files, separated by
82
+ ` :` .
64
83
65
- Image build takes time, so be patient and after the build finishes you should see
66
- something similar to this (the exact tasks numbers may differ):
84
+ For example:
67
85
68
86
` ` ` shell
69
- Initialising tasks: 100% | # ##########################################################################################| Time: 0:00:01
70
- Sstate summary: Wanted 2 Found 0 Missed 2 Current 931 (0% match, 99% complete)
71
- NOTE: Executing Tasks
72
- NOTE: Tasks Summary: Attempted 2532 tasks of which 2524 didn't need to be rerun and all succeeded.
87
+ SHELL=/bin/bash KAS_MACHINE=orangepi-cm4 kas-container build meta-zarhus/kas/common.yml:meta-zarhus/kas/rockchip.yml
73
88
` ` `
74
89
90
+ * Image build takes time, so be patient and after build' s finish you should see
91
+ something similar to (the exact tasks numbers may differ):
92
+
93
+ ```shell
94
+ Initialising tasks: 100% |###########################################################################################| Time: 0:00:01
95
+ Sstate summary: Wanted 2 Found 0 Missed 2 Current 931 (0% match, 99% complete)
96
+ NOTE: Executing Tasks
97
+ NOTE: Tasks Summary: Attempted 2532 tasks of which 2524 didn' t need to be rerun and all succeeded.
98
+ ` ` `
99
+
75
100
# Verification
76
101
77
102
The build should finish without errors or warnings.
0 commit comments