summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-09-17 14:05:08 (GMT)
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-09-17 14:05:08 (GMT)
commit89994599e42e9ffc48cbcafbeec08710cb452537 (patch)
tree206c0ef3bd0b0fa8108718d87484b731e256af25
parentb257dc5ab32bef7b4dc30830a5d23ad58ada87d8 (diff)
downloaddefinitions-89994599e42e9ffc48cbcafbeec08710cb452537.tar.gz
Add Smartdevicelink stratum based on Paul Sherwood's work
-rw-r--r--strata/smartdevicelink.morph38
-rw-r--r--strata/smartdevicelink/libapr-util.morph10
-rw-r--r--strata/smartdevicelink/libapr.morph9
-rw-r--r--strata/smartdevicelink/log4cxx.morph9
-rw-r--r--strata/smartdevicelink/smartdevicelink.morph18
-rw-r--r--systems/genivi-plusplus-system-armv7lhf-jetson.morph2
6 files changed, 86 insertions, 0 deletions
diff --git a/strata/smartdevicelink.morph b/strata/smartdevicelink.morph
new file mode 100644
index 0000000..eed62e7
--- /dev/null
+++ b/strata/smartdevicelink.morph
@@ -0,0 +1,38 @@
+kind: stratum
+name: smartdevicelink
+description: Software for Smart Device Link by Ford
+build-depends:
+ - morph: strata/genivi-foundation.morph
+ - morph: strata/genivi.morph
+ - morph: strata/audio-bluetooth.morph
+ - morph: strata/qt5-tools-jetson.morph
+chunks:
+#- name: libapr
+# repo: upstream:libapr
+# morph: strata/smartdevicelink/libapr.morph
+# ref: 1.5.1
+# build-depends: []
+- name: libapr-tarball
+ repo: upstream:libapr-tarball
+ ref: dea1efeb7f60fc6848e1e72b3fc973d0057565db
+ unpetrify-ref: baserock/morph
+ build-depends: []
+- name: libapr-util-tarball
+ morph: strata/trove/libapr-util-tarball.morph
+ repo: upstream:libapr-util-tarball
+ ref: daba269ee5a262cc23621b3ee37ed368d2a2b69b
+ unpetrify-ref: baserock/morph
+ build-depends:
+ - libapr-tarball
+- name: log4cxx
+ repo: upstream:log4cxx
+ ref: master
+ build-depends:
+ - libapr-tarball
+ - libapr-util-tarball
+- name: smartdevicelink
+ repo: upstream:smartdevicelink
+ morph: strata/smartdevicelink/smartdevicelink.morph
+ ref: 8504605b01177da2e55bee6abe4c3f20c82da379
+ build-depends:
+ - log4cxx
diff --git a/strata/smartdevicelink/libapr-util.morph b/strata/smartdevicelink/libapr-util.morph
new file mode 100644
index 0000000..e838a3e
--- /dev/null
+++ b/strata/smartdevicelink/libapr-util.morph
@@ -0,0 +1,10 @@
+name: libapr-util
+kind: chunk
+build-system: autotools
+configure-commands:
+- ./buildconf
+- ./configure --prefix "$PREFIX"
+build-commands:
+- make
+install-commands:
+- make install
diff --git a/strata/smartdevicelink/libapr.morph b/strata/smartdevicelink/libapr.morph
new file mode 100644
index 0000000..ca0d4cb
--- /dev/null
+++ b/strata/smartdevicelink/libapr.morph
@@ -0,0 +1,9 @@
+name: libapr
+kind: chunk
+configure-commands:
+- ./buildconf --verbose
+- ./configure --prefix "$PREFIX"
+build-commands:
+- make
+install-commands:
+- make install
diff --git a/strata/smartdevicelink/log4cxx.morph b/strata/smartdevicelink/log4cxx.morph
new file mode 100644
index 0000000..e236a95
--- /dev/null
+++ b/strata/smartdevicelink/log4cxx.morph
@@ -0,0 +1,9 @@
+name: log4cxx
+kind: chunk
+configure-commands:
+- ./autogen.sh
+- ./configure --prefix="$PREFIX" --with-apr=/usr/lib/apr-2
+build-commands:
+- make
+install-commands:
+- make install
diff --git a/strata/smartdevicelink/smartdevicelink.morph b/strata/smartdevicelink/smartdevicelink.morph
new file mode 100644
index 0000000..6eb26f3
--- /dev/null
+++ b/strata/smartdevicelink/smartdevicelink.morph
@@ -0,0 +1,18 @@
+name: smartdevicelink
+kind: chunk
+
+configure-commands:
+ - cd SDL_Core && cmake .
+build-commands:
+ - cd SDL_Core && make
+install-commands:
+ - cd SDL_Core && make install DESTDIR=/
+ - mkdir -p $DESTDIR/opt/smartlink/include
+ - mkdir -p $DESTDIR/opt/smartlink/bin
+ - mkdir -p $DESTDIR/opt/smartlink/lib
+ - mkdir -p $DESTDIR/opt/smartlink/HMI
+ - cp -r SDL_Core/bin/* $DESTDIR/opt/smartlink/bin
+ - cp -r SDL_Core/include/* $DESTDIR/opt/smartlink/include
+ - cp -r SDL_Core/lib/* $DESTDIR/opt/smartlink/lib
+ - cp -r SDL_Core/src/components/HMI/* $DESTDIR/opt/smartlink/HMI
+ - echo "/opt/smartlink/HMI/index.html" > $DESTDIR/opt/smartlink/bin/hmi_link
diff --git a/systems/genivi-plusplus-system-armv7lhf-jetson.morph b/systems/genivi-plusplus-system-armv7lhf-jetson.morph
index f7afb20..91fed0f 100644
--- a/systems/genivi-plusplus-system-armv7lhf-jetson.morph
+++ b/systems/genivi-plusplus-system-armv7lhf-jetson.morph
@@ -35,6 +35,8 @@ strata:
morph: strata/weston-genivi.morph
- name: qt5-tools-jetson
morph: strata/qt5-tools-jetson.morph
+- name: smartdevicelink
+ morph: strata/smartdevicelink.morph
configuration-extensions:
- set-hostname
- add-config-files