diff options
author | Joel Dillon <joel.dillon@codethink.co.uk> | 2012-09-05 14:08:23 +0100 |
---|---|---|
committer | Joel Dillon <joel.dillon@codethink.co.uk> | 2012-09-05 14:08:23 +0100 |
commit | 7f4355fd6dd4976e5b7d5421992718ab7763a682 (patch) | |
tree | cd9dbce48e0fb54d4c027565fba09b3e5c64ab5f /morphology_examples.txt | |
parent | 6ee84608f0179226c38ffb88408afbc2336fe560 (diff) | |
download | documentation-7f4355fd6dd4976e5b7d5421992718ab7763a682.tar.gz |
Add initial documentation of morphology file format
Diffstat (limited to 'morphology_examples.txt')
-rw-r--r-- | morphology_examples.txt | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/morphology_examples.txt b/morphology_examples.txt new file mode 100644 index 0000000..5cabeec --- /dev/null +++ b/morphology_examples.txt @@ -0,0 +1,59 @@ +Example chunk (simplified commands): + + { + "kind": "chunk", + "configure-commands": [ + "mkdir o", + "cd o && ../libc/configure --prefix=/usr" + ], + "build-commands": [ + "cd o && make" + ], + "install-commands": [ + "cd o && make install_root=\"$DESTDIR\" install" + ] + } + +Example stratum: + + { + "name": "foundation", + "kind": "stratum", + "chunks": [ + { + "ref": "baserock/bootstrap", + "build-depends": [], + }, + { + "repo": "linux", + "ref": "baserock/morph", + "build-depends": ["fhs-dirs"] + }, + { + "ref": "baserock/bootstrap", + "build-depends": [ + "linux-api-headers" + ] + }, + { + "ref": "baserock/bootstrap", + "build-depends": [ + "fhs-dirs", + "linux-api-headers" + ] + } + ] + } + +Example system: + + { + "kind": "system", + "arch": "arm", + "system-kind": "syslinux-disk", + "disk-size": "1G", + "strata": [ + "foundation", + "linux-stratum" + ] + } |