summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Firth <dan.firth@codethink.co.uk>2015-01-18 22:26:03 (GMT)
committerBaserock Gerrit <gerrit@baserock.org>2015-05-01 11:05:43 (GMT)
commit6dd0128cd1c943a16c38652ac0a8821844771cf7 (patch)
treeea960065fe32df502719825a42b433c8e646ace3
parent0e9bcdbc969214e5c8880c260b1cb83b96b655a3 (diff)
downloaddefinitions-6dd0128cd1c943a16c38652ac0a8821844771cf7.tar.gz
Add ocaml chunk, strata and system
Change-Id: I7b36e0e1ef55b4146896aaa3dbc9e4f61c4d205e
-rw-r--r--strata/ocaml-language.morph11
-rw-r--r--strata/ocaml/ocaml.morph8
-rw-r--r--systems/ocaml-system-x86_64.morph20
3 files changed, 39 insertions, 0 deletions
diff --git a/strata/ocaml-language.morph b/strata/ocaml-language.morph
new file mode 100644
index 0000000..3364763
--- /dev/null
+++ b/strata/ocaml-language.morph
@@ -0,0 +1,11 @@
+name: ocaml-language
+kind: stratum
+description: |
+ OCaml
+build-depends:
+- morph: strata/core.morph
+chunks:
+- name: ocaml
+ morph: strata/ocaml/ocaml.morph
+ repo: upstream:ocaml
+ ref: fa7961d5fada53056f38a9ae36615df26352028a
diff --git a/strata/ocaml/ocaml.morph b/strata/ocaml/ocaml.morph
new file mode 100644
index 0000000..00e3676
--- /dev/null
+++ b/strata/ocaml/ocaml.morph
@@ -0,0 +1,8 @@
+name: ocaml
+kind: chunk
+configure-commands:
+- ./configure --prefix "$PREFIX"
+build-commands:
+- make world.opt
+install-commands:
+- make DESTDIR="$DESTDIR" install
diff --git a/systems/ocaml-system-x86_64.morph b/systems/ocaml-system-x86_64.morph
new file mode 100644
index 0000000..1903e4d
--- /dev/null
+++ b/systems/ocaml-system-x86_64.morph
@@ -0,0 +1,20 @@
+name: ocaml-system-x86_64
+kind: system
+description: OCaml base system
+arch: x86_64
+strata:
+- name: build-essential
+ morph: strata/build-essential.morph
+- name: core
+ morph: strata/core.morph
+- name: foundation
+ morph: strata/foundation.morph
+- name: bsp-x86_64-generic
+ morph: strata/bsp-x86_64-generic.morph
+- name: ocaml-language
+ morph: strata/ocaml-language.morph
+configuration-extensions:
+- set-hostname
+- add-config-files
+- nfsboot
+- install-files