summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Huber2016-07-29 14:39:32 +0200
committerMarcel Huber2016-08-01 00:16:29 +0200
commitfc830822e0e7c5ec00455ffbd63203e04a4d27b7 (patch)
tree4b77874f078514bb73aa2c3d7809b95e611f5abd
parent296fb7d95a09f472af71bb307d03b89b4a08a73d (diff)
downloadaur-fc830822e0e7c5ec00455ffbd63203e04a4d27b7.tar.gz
now provide micmgmt lib, mpssdemon and utilities
-rw-r--r--.SRCINFO57
-rw-r--r--.editorconfig29
-rw-r--r--PKGBUILD175
-rw-r--r--micmgmt.setup.py12
4 files changed, 259 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 49a2be5c316..76e128ee1f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,69 @@
pkgbase = mpss
+ pkgdesc = Intel® Manycore Platform Software Stack
pkgver = 3.7.1
- pkgrel = 1
+ pkgrel = 2
url = https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss
arch = x86_64
- license = GPL2
+ license = LGPL2.1
+ makedepends = asciidoc
depends = dkms
+ depends = python
source = dkms.conf
source = blacklist-mic-host.conf
+ source = micmgmt.setup.py
sha256sums = a76162c169073060ee3a966e95342f29b3e342c956d29169c10a6dd97e342fa5
sha256sums = 42dda3527ed2496b851c0fad6a841f660a0c086ecf742bb4f132308b9e38d913
+ sha256sums = 191d6fd54157ad5a9465947c73b4332a83fc4411be5d9738d0594a2b7ddb7273
source_x86_64 = git+https://github.com/marcelhuberfoo/mpss-modules.git#branch=ModuleAndKernelUpdates
+ source_x86_64 = git+https://github.com/marcelhuberfoo/mpss-gen-symver-map.git
+ source_x86_64 = git+https://github.com/marcelhuberfoo/mpss-libscif.git
+ source_x86_64 = git+https://github.com/marcelhuberfoo/mpss-daemon.git
+ source_x86_64 = git+https://github.com/marcelhuberfoo/mpss-micmgmt.git
+ source_x86_64 = git+https://github.com/marcelhuberfoo/mpss-metadata.git
+ sha256sums_x86_64 = SKIP
+ sha256sums_x86_64 = SKIP
+ sha256sums_x86_64 = SKIP
+ sha256sums_x86_64 = SKIP
+ sha256sums_x86_64 = SKIP
sha256sums_x86_64 = SKIP
pkgname = mpss-modules-dkms
- pkgdesc = Intel® Manycore Platform Software Stack; mic Kernel module
+ pkgdesc = mic Kernel module of Intel® Manycore Platform Software Stack
install = mpss-modules-dkms.install
+ groups = mpss
+ depends = dkms
+
+pkgname = mpss-gen-symver-map
+ pkgdesc = gen-symver-map utility of Intel® Manycore Platform Software Stack
+ groups = mpss
+ depends = python
+
+pkgname = mpss-libscif
+ pkgdesc = libscif library of Intel® Manycore Platform Software Stack
+ groups = mpss
+ depends = mpss-modules-dkms
+ depends = mpss-gen-symver-map
+
+pkgname = mpss-micmgmt-miclib
+ pkgdesc = micmgmt library of Intel® Manycore Platform Software Stack
+ groups = mpss
+ depends = mpss-libscif
+
+pkgname = mpss-micmgmt-tools
+ pkgdesc = micmgmt tools of Intel® Manycore Platform Software Stack
+ groups = mpss
+ depends = mpss-micmgmt-miclib
+
+pkgname = mpss-micmgmt-python
+ pkgdesc = miclib python wrapper of Intel® Manycore Platform Software Stack
+ arch = any
+ groups = mpss
+ depends = mpss-micmgmt-miclib
+ depends = python
+
+pkgname = mpss-daemon
+ pkgdesc = mpssd and micctrl of Intel® Manycore Platform Software Stack
+ groups = mpss
+ depends = mpss-libscif
+ depends = mpss-gen-symver-map
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..91faecdb887
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,29 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+# c/c++ settings
+[*.{c,cpp,h,hpp,ipp}]
+indent_style = tab
+indent_size = 4
+charset = utf-8
+
+# 4 space indentation
+[*.py]
+indent_style = space
+indent_size = 4
+charset = utf-8
+
+# 2 space indentation
+[PKGBUILD]
+indent_style = space
+indent_size = 2
+charset = utf-8
+
diff --git a/PKGBUILD b/PKGBUILD
index d3985cffafe..166a6b29064 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,33 @@
# Maintainer: Marcel Huber <`echo "moc tknup liamg tä oofrebuhlecram" | rev`>
pkgbase=mpss
-pkgname=(mpss-modules-dkms)
+pkgname=(mpss-modules-dkms mpss-gen-symver-map mpss-libscif mpss-micmgmt-miclib mpss-micmgmt-tools mpss-micmgmt-python mpss-daemon)
+pkgdesc="Intel® Manycore Platform Software Stack"
pkgver=3.7.1
-pkgrel=1
+pkgrel=2
arch=('x86_64')
url="https://software.intel.com/en-us/articles/intel-manycore-platform-software-stack-mpss"
-license=('GPL2')
-depends=('dkms')
+license=('LGPL2.1')
+depends=(dkms python)
+makedepends=(asciidoc)
source=(dkms.conf
- blacklist-mic-host.conf)
-source_x86_64=(git+https://github.com/marcelhuberfoo/mpss-modules.git#branch=ModuleAndKernelUpdates)
+ blacklist-mic-host.conf
+ micmgmt.setup.py)
+source_x86_64=(git+https://github.com/marcelhuberfoo/mpss-modules.git#branch=ModuleAndKernelUpdates
+ git+https://github.com/marcelhuberfoo/mpss-gen-symver-map.git
+ git+https://github.com/marcelhuberfoo/mpss-libscif.git
+ git+https://github.com/marcelhuberfoo/mpss-daemon.git
+ git+https://github.com/marcelhuberfoo/mpss-micmgmt.git
+ git+https://github.com/marcelhuberfoo/mpss-metadata.git)
sha256sums=('a76162c169073060ee3a966e95342f29b3e342c956d29169c10a6dd97e342fa5'
- '42dda3527ed2496b851c0fad6a841f660a0c086ecf742bb4f132308b9e38d913')
-sha256sums_x86_64=('SKIP')
+ '42dda3527ed2496b851c0fad6a841f660a0c086ecf742bb4f132308b9e38d913'
+ '191d6fd54157ad5a9465947c73b4332a83fc4411be5d9738d0594a2b7ddb7273')
+sha256sums_x86_64=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
## within each split package’s packaging function:
# arch
@@ -32,10 +46,12 @@ sha256sums_x86_64=('SKIP')
# url
package_mpss-modules-dkms() {
+ depends=(dkms)
install=$pkgname.install
- pkgdesc="Intel® Manycore Platform Software Stack; mic Kernel module"
- _pkgname=${pkg%-*}
- msg2 "Starting make conf_install...$(pwd)"
+ pkgdesc="mic Kernel module of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=${pkgname%-*}
+ msg2 "Starting make conf_install in ${_pkgname}..."
make -C $_pkgname DESTDIR="$pkgdir" sysconfdir=/etc includedir=/usr/include \
conf_install dev_install
@@ -59,3 +75,140 @@ package_mpss-modules-dkms() {
install -D -m644 ${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+
+package_mpss-gen-symver-map() {
+ depends=(python)
+ pkgdesc="gen-symver-map utility of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=$pkgname
+ install -D -m755 ${_pkgname}/gen-symver-map "$pkgdir/usr/bin/gen-symver-map"
+ install -D -m644 ${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_mpss-libscif() {
+ depends=(mpss-modules-dkms mpss-gen-symver-map)
+ makedepends=(mpss-gen-symver-map)
+ pkgdesc="libscif library of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=$pkgname
+ _metadata_include_dir=$srcdir/mpss-metadata
+ _modules_include_dir=$srcdir/mpss-modules/include
+ _gem_symver_map_path=$srcdir/mpss-gen-symver-map
+ msg2 "Starting make in ${_pkgname}..."
+ PATH=$PATH:$_gem_symver_map_path \
+ CFLAGS="-I$_modules_include_dir -g" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ all
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ DESTDIR="$pkgdir" \
+ prefix=/usr install
+ install -D -m644 ${_pkgname}/COPYING.LIB "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_mpss-micmgmt-miclib() {
+ depends=(mpss-libscif)
+ pkgdesc="micmgmt library of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=${pkgname%-*}
+ _metadata_include_dir=$srcdir/mpss-metadata
+ _modules_include_dir=$startdir/pkg/mpss-modules-dkms/usr/include
+ _libscif_lib_dir=$startdir/pkg/mpss-libscif/usr/lib
+ _libscif_include_dir=$srcdir/mpss-libscif
+ msg2 "Starting make in ${_pkgname}..."
+ LIBPATH="-L$_libscif_lib_dir" \
+ CPPFLAGS="-I$_modules_include_dir -I$_libscif_include_dir" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ lib
+ CPPFLAGS="-I$_modules_include_dir -I$_libscif_include_dir" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ DESTDIR="$pkgdir" \
+ prefix=/usr \
+ libdir=/usr/lib \
+ install_lib
+ install -D -m644 ${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_mpss-micmgmt-tools() {
+ depends=(mpss-micmgmt-miclib)
+ pkgdesc="micmgmt tools of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=${pkgname%-*}
+ _metadata_include_dir=$srcdir/mpss-metadata
+ _modules_include_dir=$startdir/pkg/mpss-modules-dkms/usr/include
+ _libscif_lib_dir=$startdir/pkg/mpss-libscif/usr/lib
+ _libscif_include_dir=$srcdir/mpss-libscif
+ _miclib_lib_dir=$startdir/pkg/mpss-micmgmt-miclib/usr/lib
+ _miclib_include_dir=$startdir/pkg/mpss-micmgmt-miclib/usr/include
+ msg2 "Starting make in ${_pkgname}..."
+ LIBPATH="-L$_libscif_lib_dir -L$_miclib_lib_dir" \
+ LDFLAGS="-L$_libscif_lib_dir -L$_miclib_lib_dir" \
+ CFLAGS="-I$_modules_include_dir -I$_libscif_include_dir -I$_miclib_include_dir" \
+ CPPFLAGS="-I$_modules_include_dir -I$_libscif_include_dir -I$_miclib_include_dir" \
+ make -C $_pkgname -j1 \
+ --include-dir=$_metadata_include_dir \
+ all
+ CFLAGS="-I$_modules_include_dir -I$_libscif_include_dir -I$_miclib_include_dir" \
+ CPPFLAGS="-I$_modules_include_dir -I$_libscif_include_dir -I$_miclib_include_dir" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ DESTDIR="$pkgdir" \
+ prefix=/usr \
+ install
+ # already installed by mpss-micmgmt-miclib
+ rm $pkgdir/usr/share/doc/micmgmt/libmicmgmt.7.html
+ install -D -m644 ${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_mpss-micmgmt-python() {
+ depends=(mpss-micmgmt-miclib python)
+ pkgdesc="miclib python wrapper of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ arch=('any')
+ _pkgname=${pkgname%-*}
+# _metadata_include_dir=$srcdir/mpss-metadata
+# _site_package_dir=$(python -c 'import site; print(site.getsitepackages()[0])')
+# msg2 "Starting make in ${_pkgname}..."
+# make -C $_pkgname \
+# --include-dir=$_metadata_include_dir \
+# DESTDIR="$pkgdir" \
+# prefix=/usr \
+# srcdir=$_site_package_dir \
+# install_pywrapper
+ cd "$srcdir/$_pkgname/miclib_py"
+ sed -e "s/@PKGVER@/${pkgver}/" \
+ $srcdir/micmgmt.setup.py >setup.py
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -D -m644 $srcdir/${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_mpss-daemon() {
+ depends=(mpss-libscif mpss-gen-symver-map)
+ pkgdesc="mpssd and micctrl of Intel® Manycore Platform Software Stack"
+ groups=(mpss)
+ _pkgname=${pkgname}
+ _metadata_include_dir=$srcdir/mpss-metadata
+ _modules_include_dir=$startdir/pkg/mpss-modules-dkms/usr/include
+ _libscif_lib_dir=$startdir/pkg/mpss-libscif/usr/lib
+ _libscif_include_dir=$srcdir/mpss-libscif
+ msg2 "Starting make in ${_pkgname}..."
+ LDFLAGS="-g -L$_libscif_lib_dir" \
+ CFLAGS="-g -I$_modules_include_dir -I$_libscif_include_dir" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ all
+ LDFLAGS="-g -L$_libscif_lib_dir" \
+ CFLAGS="-g -I$_modules_include_dir -I$_libscif_include_dir" \
+ make -C $_pkgname \
+ --include-dir=$_metadata_include_dir \
+ DESTDIR="$pkgdir" \
+ prefix=/usr \
+ sbindir=/usr/bin \
+ libdir=/usr/lib \
+ install
+ install -D -m644 ${_pkgname}/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
diff --git a/micmgmt.setup.py b/micmgmt.setup.py
new file mode 100644
index 00000000000..50446a6ff2f
--- /dev/null
+++ b/micmgmt.setup.py
@@ -0,0 +1,12 @@
+from setuptools import setup
+
+NAME = 'micmgmt'
+DESC = '''
+Python interface to channel all communications to specified
+Intel(R) Xeon Phi(TM) Coprocessor.
+'''
+
+setup(name=NAME, description=DESC.strip(),
+ version='@PKGVER@',
+ license="LGPLv2+",
+ packages=[NAME])