summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOla Redell <ola.redell@retotech.se>2017-11-15 14:46:12 +0100
committerOla Redell <ola.redell@retotech.se>2017-11-15 14:46:12 +0100
commitba584d2c8b184980c4b9b511e91db468584151b2 (patch)
tree3b7fbcfd4b1914097f4bb21424fe36ac68ec5bca
parent0c23c22067355c0b3c3660e14507d79915edea7e (diff)
downloadmeta-jailhouse-ba584d2c8b184980c4b9b511e91db468584151b2.tar.gz
updated README with variable information
-rw-r--r--README.md55
1 files changed, 46 insertions, 9 deletions
diff --git a/README.md b/README.md
index 467a847..55db8f1 100644
--- a/README.md
+++ b/README.md
@@ -25,14 +25,15 @@ Maintainers
25* Anders Törnqvist <anders@retotech.se> 25* Anders Törnqvist <anders@retotech.se>
26* Jonas Weståker <jonas@retotech.se> 26* Jonas Weståker <jonas@retotech.se>
27 27
28Please submit any patches against this jailhouse layer to 28Please submit any patches against this jailhouse layer
29meta-jailhouse@retotech.se 29via email or https://bitbucket.org/retotech/meta-jailhouse
30 30
31 31
32Tested with 32Tested with
33=========== 33===========
34 34
35This layer has been developed for and tested with Bananapi M1 as target. 35* Yocto 2.2
36* This layer has been developed for and tested with Bananapi M1 as target.
36No other targets have been used thus far. 37No other targets have been used thus far.
37 38
38 39
@@ -66,13 +67,14 @@ to your image recipe, or local.conf:
66 67
67The jailhouse inmates and cells are by default 68The jailhouse inmates and cells are by default
68placed under `/usr/share/jailhouse/{inmates,cells}`. These locations 69placed under `/usr/share/jailhouse/{inmates,cells}`. These locations
69can be adjusted using the variables in jailhouse-dirs.inc. 70can be adjusted using the variables in **jailhouse-defs.inc**.
70 71
71The jailhouse build system builds cell configuration (*.cell) files from the 72The jailhouse build system builds binary cell configuration (*.cell) files
72cell descriptions (*.c). To enable cell descriptions being defined in 73from cell configuration sources (*.c). To allow cell configurations to be
73cell recipes and imported into the jailhouse build, the jailhouse recipe 74defined in cell recipes and imported into the jailhouse build, the jailhouse
74defines a CELLS variable that lists all recipes that provide cells (and inmates) 75recipe defines a CELLS variable that lists all recipes that provide cells (and
75for the jailhouse build. Adapt the CELLS variable according to your needs, e.g. 76inmates) for the jailhouse build. Adapt the CELLS variable according to your
77needs, e.g.
76 78
77 CELLS_append = " freertos-cell" 79 CELLS_append = " freertos-cell"
78 80
@@ -110,3 +112,38 @@ as follows:
110Using this class and variables ensures that the file designated by the 112Using this class and variables ensures that the file designated by the
111`CELLCONFIG` variable is pulled into the jailhouse build such that 113`CELLCONFIG` variable is pulled into the jailhouse build such that
112a corresponding *.cell file is created. 114a corresponding *.cell file is created.
115
116
117Important Variables
118===================
119
120The following variables should be set in jailhouse bbappends and cell recipes
121
122`CELLCONFIG` The name of the source cell configuration file (.c) that a cell
123recipe installs into the sysroot, for the jailhouse recipe to use to create
124a binary configuration file. This variable should be set in a cell recipe
125using a full path e.g. `CELLCONFIG = "${S}/my/path/cell-config.c"`.
126Empty by default.
127
128`CELLS` A list of cells that should be built with jailhouse. The jailhouse
129recipe will get dependencies to all cells listed in this variable and
130pull in their cell configuration source files to the build. Empty by default.
131
132`INMATE` The name of the inmate binary file (.bin) that a cell recipe
133produces. This variable should be set in a cell recipe
134using a full path e.g. `INMATE = "${B}/freertos-demo.bin"`.
135Empty by default.
136
137The following variables can be left as is
138
139`JH_DATADIR` Base directory for installed jailhouse cells on target. This
140defaults to ${datadir}/jailhouse.
141
142`CELL_DIR` Target directory into which binary cell configuration files (.cell)
143are installed. This defaults to ${JH_DATADIR}/cells.
144
145`CELLCONF_DIR` Target directory into which the source cell configuration files
146(.c) are installed. Defaults to ${JH_DATADIR}/configs.
147
148`INMATES_DIR` Target directory into which inmate binaries (.bin) are installed.
149Defaults to ${JH_DATADIR}/inmates.