diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-29 16:05:03 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2015-05-29 16:05:03 +0000 |
commit | c34784fe24683f8f4bc1b4e1a52c972fd2de19d3 (patch) | |
tree | 15efdf4d5b664ab49b86f7f429d4d0c167bd779f | |
parent | 7fddd2839b1cd33ea0e4fa156a68f4b0d471af3a (diff) | |
download | definitions-baserock/jonathanmaw/tizen.tar.gz |
WIP: Add Tizenbaserock/jonathanmaw/tizen
-rw-r--r-- | strata/tizen.morph | 93 | ||||
-rw-r--r-- | strata/tizen/dlog.morph | 3 | ||||
-rw-r--r-- | strata/tizen/iniparser.morph | 26 | ||||
-rw-r--r-- | strata/tizen/libslp-db-util.morph | 7 | ||||
-rw-r--r-- | strata/tizen/libslp-memo.morph | 3 | ||||
-rw-r--r-- | strata/tizen/minizip.morph | 9 | ||||
-rw-r--r-- | strata/tizen/pkgmgr-info.morph | 13 | ||||
-rw-r--r-- | strata/tizen/pkgmgr.morph | 3 | ||||
-rw-r--r-- | strata/tizen/tizen-platform-config.morph | 6 | ||||
-rw-r--r-- | strata/tizen/tizen-platform-wrapper.morph | 3 | ||||
-rw-r--r-- | strata/tizen/vconf-internal-keys.morph | 8 | ||||
-rw-r--r-- | strata/tizen/vconf.morph | 8 | ||||
-rw-r--r-- | strata/tizen/wrt-widgets.morph | 19 | ||||
-rw-r--r-- | systems/genivi-devel-tizen.morph | 101 |
14 files changed, 302 insertions, 0 deletions
diff --git a/strata/tizen.morph b/strata/tizen.morph new file mode 100644 index 00000000..be73516f --- /dev/null +++ b/strata/tizen.morph @@ -0,0 +1,93 @@ +name: tizen +kind: stratum +description: | + This stratum installs tizen-based stuff +build-depends: +- morph: strata/core.morph +- morph: strata/java.morph +- morph: strata/enlightenment.morph +- morph: strata/icu.morph +chunks: +- name: tizen-platform-wrapper + morph: strata/tizen/tizen-platform-wrapper.morph + repo: git://review.tizen.org/platform/core/appfw/tizen-platform-wrapper + ref: tizen +- name: tizen-platform-config + morph: strata/tizen/tizen-platform-config.morph + repo: git://review.tizen.org/platform/core/appfw/tizen-platform-config + ref: tizen + build-depends: + - tizen-platform-wrapper +- name: dlog + morph: strata/tizen/dlog.morph + repo: git://review.tizen.org/platform/core/system/dlog + ref: tizen + build-depends: + - tizen-platform-config +- name: vconf-internal-keys + morph: strata/tizen/vconf-internal-keys.morph + repo: git://review.tizen.org/platform/core/appfw/vconf-internal-keys + ref: tizen + build-depends: + - tizen-platform-config +- name: vconf + morph: strata/tizen/vconf.morph + repo: git://review.tizen.org/platform/core/appfw/vconf + ref: tizen + build-depends: + - tizen-platform-config + - dlog + - vconf-internal-keys +- name: libslp-db-util + morph: strata/tizen/libslp-db-util.morph + repo: git://review.tizen.org/platform/core/appfw/libslp-db-util + ref: tizen + build-depends: + - dlog +#- name: libslp-memo +# morph: strata/tizen/libslp-memo.morph +# repo: git://review.tizen.org/apps/core/preloaded/libslp-memo +# ref: tizen +# build-depends: +# - dlog +- name: smack + # This is Tizen's fork of smack. The canonical upstream is at + # github:smack-team/smack + repo: git://review.tizen.org/platform/upstream/smack + ref: tizen +- name: pkgmgr-info + morph: strata/tizen/pkgmgr-info.morph + repo: git://review.tizen.org/platform/core/appfw/pkgmgr-info + ref: tizen + build-depends: + - tizen-platform-config + - dlog + - vconf + - libslp-db-util + - smack +- name: minizip + morph: strata/tizen/minizip.morph + repo: upstream:zlib + ref: db333af7e9b90a23fd7f9cd8dc128123b34bf698 + unpetrify-ref: baserock/build-essential +- name: iniparser + morph: strata/tizen/iniparser.morph + #repo: git://review.tizen.org/platform/upstream/iniparser + repo: github:ndevilla/iniparser + ref: v4.0 +- name: pkgmgr + morph: strata/tizen/pkgmgr.morph + repo: git://review.tizen.org/framework/appfw/slp-pkgmgr + ref: tizen_2.3 + build-depends: + - pkgmgr-info + - dlog + - vconf + - minizip + - iniparser +- name: wrt-widgets + morph: strata/tizen/wrt-widgets.morph + repo: git://review.tizen.org/profile/common/wrt-widgets + ref: tizen + build-depends: + - tizen-platform-config diff --git a/strata/tizen/dlog.morph b/strata/tizen/dlog.morph new file mode 100644 index 00000000..3289ef36 --- /dev/null +++ b/strata/tizen/dlog.morph @@ -0,0 +1,3 @@ +name: dlog +kind: chunk +build-system: autotools diff --git a/strata/tizen/iniparser.morph b/strata/tizen/iniparser.morph new file mode 100644 index 00000000..102503bc --- /dev/null +++ b/strata/tizen/iniparser.morph @@ -0,0 +1,26 @@ +name: iniparser +kind: chunk +build-commands: +- make +install-commands: +- mkdir -p "$DESTDIR/$PREFIX/lib" +- install -m 755 libiniparser.so.0 "$DESTDIR/$PREFIX/lib" +- ln -s libiniparser.so.0 "$DESTDIR/$PREFIX/lib/libiniparser.so" +- mkdir -p "$DESTDIR/$PREFIX/include" +- install -m 644 src/*.h "$DESTDIR/$PREFIX/include" +- install -m 644 src/*.h "$DESTDIR/$PREFIX/include" +- mkdir -p $DESTDIR/$PREFIX/lib/pkgconfig +- | + cat > "$DESTDIR/$PREFIX/lib/pkgconfig/iniparser.pc" <<EOF + prefix = ${PREFIX} + exec_prefix = ${PREFIX} + libdir = ${PREFIX}/lib + includedir = ${PREFIX}/include + + Name : iniparser + Description : a free stand-alone ini file parsing library. + Version : 2.17 + Libs : -L\${libdir} -liniparser + Cflags : -I\${includedir} + + EOF diff --git a/strata/tizen/libslp-db-util.morph b/strata/tizen/libslp-db-util.morph new file mode 100644 index 00000000..9f0084c4 --- /dev/null +++ b/strata/tizen/libslp-db-util.morph @@ -0,0 +1,7 @@ +name: libslp-db-util +kind: chunk +build-system: cmake +configure-commands: +- | + cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \ + -DLIB_INSTALL_DIR="$PREFIX/lib" diff --git a/strata/tizen/libslp-memo.morph b/strata/tizen/libslp-memo.morph new file mode 100644 index 00000000..0e4c0ebe --- /dev/null +++ b/strata/tizen/libslp-memo.morph @@ -0,0 +1,3 @@ +name: libslp-memo +kind: chunk +build-system: cmake diff --git a/strata/tizen/minizip.morph b/strata/tizen/minizip.morph new file mode 100644 index 00000000..d37a0bc9 --- /dev/null +++ b/strata/tizen/minizip.morph @@ -0,0 +1,9 @@ +name: minzip +kind: chunk +configure-commands: +- cd contrib/minizip && autoreconf -fvi +- cd contrib/minizip && ./configure --prefix="$PREFIX" +build-commands: +- cd contrib/minizip && make +install-commands: +- cd contrib/minizip && make DESTDIR="$DESTDIR" install diff --git a/strata/tizen/pkgmgr-info.morph b/strata/tizen/pkgmgr-info.morph new file mode 100644 index 00000000..8cdc00b2 --- /dev/null +++ b/strata/tizen/pkgmgr-info.morph @@ -0,0 +1,13 @@ +name: pkgmgr-info +kind: chunk +build-system: cmake +pre-configure-commands: +# In yocto's tizen-distro, TizenCommon is a module they patch cmake to add. +# It has some useful assignments, but unless it's used very frequently, it's +# easier to do the necessary assignments and remove inclusion of TizenCommon. +- sed -i '/INCLUDE(TizenCommon)/d' CMakeLists.txt parser/CMakeLists.txt +configure-commands: +- | + cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \ + -DLIB_INSTALL_DIR="$PREFIX/lib" \ + -DTZ_SYS_CONFIG="$PREFIX/kdb" diff --git a/strata/tizen/pkgmgr.morph b/strata/tizen/pkgmgr.morph new file mode 100644 index 00000000..070c1527 --- /dev/null +++ b/strata/tizen/pkgmgr.morph @@ -0,0 +1,3 @@ +name: pkgmgr +kind: chunk +build-system: cmake diff --git a/strata/tizen/tizen-platform-config.morph b/strata/tizen/tizen-platform-config.morph new file mode 100644 index 00000000..8030a504 --- /dev/null +++ b/strata/tizen/tizen-platform-config.morph @@ -0,0 +1,6 @@ +name: tizen-platform-config +kind: chunk +build-system: autotools +configure-commands: +# It tries to install system config into /usr/etc +- ./autogen.sh "--prefix=$PREFIX" --sysconfdir=/etc diff --git a/strata/tizen/tizen-platform-wrapper.morph b/strata/tizen/tizen-platform-wrapper.morph new file mode 100644 index 00000000..3edeb062 --- /dev/null +++ b/strata/tizen/tizen-platform-wrapper.morph @@ -0,0 +1,3 @@ +name: tizen-platform-wrapper +kind: chunk +build-system: autotools diff --git a/strata/tizen/vconf-internal-keys.morph b/strata/tizen/vconf-internal-keys.morph new file mode 100644 index 00000000..a64a81aa --- /dev/null +++ b/strata/tizen/vconf-internal-keys.morph @@ -0,0 +1,8 @@ +name: vconf-internal-keys +kind: chunk +build-system: cmake +configure-commands: +- | + cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \ + -DLIB_INSTALL_DIR="$PREFIX/lib" \ + -DTZ_SYS_CONFIG="$PREFIX/kdb" diff --git a/strata/tizen/vconf.morph b/strata/tizen/vconf.morph new file mode 100644 index 00000000..f31bfc75 --- /dev/null +++ b/strata/tizen/vconf.morph @@ -0,0 +1,8 @@ +name: vconf +kind: chunk +build-system: cmake +configure-commands: +- | + cmake -DCMAKE_INSTALL_PREFIX="$PREFIX" \ + -DLIB_INSTALL_DIR="$PREFIX/lib" \ + -DTZ_SYS_CONFIG="$PREFIX/kdb" diff --git a/strata/tizen/wrt-widgets.morph b/strata/tizen/wrt-widgets.morph new file mode 100644 index 00000000..215d4e76 --- /dev/null +++ b/strata/tizen/wrt-widgets.morph @@ -0,0 +1,19 @@ +name: wrt-widgets +kind: chunk +install-commands: +# TODO: Consider making install-commands do it, instead of deferring to a systemd unit. +# This depends on what pkgcmd is capable of +# The systemd unit explicitly looks for install_widgets in /usr/bin +- mkdir -p "$DESTDIR/usr/bin" +- cp install_widgets.sh prepare_widgets.sh "$DESTDIR/usr/bin" +- mkdir -p "$DESTDIR/$PREFIX/share/widget_demo" +- cp -r apps/*.wgt "$DESTDIR/$PREFIX/share/widget_demo" +# Use a custom install.conf because we don't have tizen's default users +- cat <<EOF >"$DESTDIR/$PREFIX/share/widget_demo/install.conf" + root:BluetoothChat.wgt annex.wgt bubblewrap.wgt go.wgt mancala.wgt + EOF +- mkdir -p "$DESTDIR/$PREFIX/lib/systemd/user/default.target.wants" +- install -m 644 xwalk_widgets_preinstall.service "$DESTDIR/$PREFIX/lib/systemd/user" +- | + ln -sf ../xwalk_widgets_preinstall.service \ + "$DESTDIR/$PREFIX/lib/systemd/user/default.target.wants/xwalk_widgets_preinstall.service" diff --git a/systems/genivi-devel-tizen.morph b/systems/genivi-devel-tizen.morph new file mode 100644 index 00000000..daa5a47f --- /dev/null +++ b/systems/genivi-devel-tizen.morph @@ -0,0 +1,101 @@ +name: genivi-devel-tizen +kind: system +description: | + A devel system plus GENIVI and Tizen development +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: connectivity + morph: strata/connectivity.morph +- name: connman-common + morph: strata/connman-common.morph +- name: audio-bluetooth + morph: strata/audio-bluetooth.morph +- name: libdrm-common + morph: strata/libdrm-common.morph +- name: multimedia-common + morph: strata/multimedia-common.morph +- name: multimedia-gstreamer + morph: strata/multimedia-gstreamer.morph +- name: genivi + morph: strata/genivi.morph +- name: wayland-generic + morph: strata/wayland-generic.morph +- name: graphics-common + morph: strata/graphics-common.morph +- name: input-common + morph: strata/input-common.morph +- name: llvm-common + morph: strata/llvm-common.morph +- name: mesa-common-vm + morph: strata/mesa-common-vm.morph +- name: x-common + morph: strata/x-common.morph +- name: weston-genivi + morph: strata/weston-genivi.morph +- name: tools + morph: strata/tools.morph +- name: python-cliapp + morph: strata/python-cliapp.morph +- name: python-pygobject + morph: strata/python-pygobject.morph +- name: python-wsgi + morph: strata/python-wsgi.morph +- name: morph-utils + morph: strata/morph-utils.morph +- name: openstack-common + morph: strata/openstack-common.morph +- name: openstack-clients + morph: strata/openstack-clients.morph +- name: cloudinit-support + morph: strata/cloudinit-support.morph +- name: nodejs + morph: strata/nodejs.morph +- name: ruby + morph: strata/ruby.morph +- name: lorry + morph: strata/lorry.morph +- name: baserock-import + morph: strata/baserock-import.morph +- name: nfs + morph: strata/nfs.morph +- name: python-core + morph: strata/python-core.morph +- name: python-tools + morph: strata/python-tools.morph +- name: python-common + morph: strata/python-common.morph +- name: devtools + morph: strata/devtools.morph +- name: ansible + morph: strata/ansible.morph +- name: swift + morph: strata/swift.morph +- name: libsoup-common + morph: strata/libsoup-common.morph +- name: ostree-core + morph: strata/ostree-core.morph +- name: coreutils-common + morph: strata/coreutils-common.morph +- name: java + morph: strata/java.morph +- name: icu + morph: strata/icu.morph +- name: tizen + morph: strata/tizen.morph +configuration-extensions: +- set-hostname +- add-config-files +- simple-network +- nfsboot +- install-files +- cloud-init +- fstab +- install-essential-files |