From 0c32a9b4e0ae6d3ec57283d972b3797e1363ee511c50d82468b4576c41338d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 2 Sep 2016 08:05:46 +0000 Subject: [PATCH] Accepting request 423888 from home:rudi_m:musthave Add new new kernel module ftsteutates to let sensors work on recent Fujitsu mainboards. See Documentation ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/Software&Tools/Linux_SystemMonitoring&Watchdog&GPIO/Fujitsu_mainboards-1-Sensors_HowTo-en-US.pdf Note this initial kmp package may need some more improvements. I'll do it when I know that this package would be accepted at all. I've tested this module with kernel 4.4.x from Leap 42.2 on openSUSE 13.1 and Leap 42.1. Fujitsu is trying to get this module into kernel upstream. I would really like to get this kmp package into Leap 42.2. OBS-URL: https://build.opensuse.org/request/show/423888 OBS-URL: https://build.opensuse.org/package/show/hardware/ftsteutates?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ ftsteutates-module_20160601.zip | 3 ++ ftsteutates.changes | 5 +++ ftsteutates.spec | 78 +++++++++++++++++++++++++++++++++ preamble | 1 + 5 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 ftsteutates-module_20160601.zip create mode 100644 ftsteutates.changes create mode 100644 ftsteutates.spec create mode 100644 preamble diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/ftsteutates-module_20160601.zip b/ftsteutates-module_20160601.zip new file mode 100644 index 0000000..b699dde --- /dev/null +++ b/ftsteutates-module_20160601.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:599e656e499e369e6220c2d8a074299e97486fa8e8ee1c82769bfafcdf6f3cca +size 24419 diff --git a/ftsteutates.changes b/ftsteutates.changes new file mode 100644 index 0000000..22af3e8 --- /dev/null +++ b/ftsteutates.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Jul 12 10:28:57 UTC 2016 - sweet_f_a@gmx.de + +- initial package ftsteutates version 20160601 + diff --git a/ftsteutates.spec b/ftsteutates.spec new file mode 100644 index 0000000..11b02ed --- /dev/null +++ b/ftsteutates.spec @@ -0,0 +1,78 @@ +# +# spec file for package ftsteutates +# +# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: ftsteutates +Version: 20160601 +Release: 0 +Summary: Kernel module ftsteutates +License: GPL-2.0+ +Group: System/Kernel +Url: ftp://ftp.ts.fujitsu.com/pub/Mainboard-OEM-Sales/Services/ +Source0: ftsteutates-module_%{version}.zip +Source1: preamble +BuildRequires: kernel-source +BuildRequires: kernel-syms +BuildRequires: module-init-tools +BuildRequires: unzip +Requires: ftsteutates-kmp +BuildRoot: %{_tmppath}/%{name}-%{version}-build +ExclusiveArch: %ix86 x86_64 +%suse_kernel_module_package -p %_sourcedir/preamble + +%description +System monitoring and thermal management for +Teutates chips/Fujitsu mainboards (D34xx). + +%package KMP +Summary: Kernel module ftsteutates +Group: System/Kernel + +%description KMP +System monitoring and thermal management for Fujitsu mainboards (D34xx). + +%prep +%setup -q -n ftsteutates +mkdir source +mkdir obj +cp -a Makefile ftsteutates.c source/ + +%build +for flavor in %flavors_to_build; do + rm -rf obj/$flavor + cp -r source obj/$flavor + make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \ + M=$PWD/obj/$flavor +done + +%install +# install kernel modules +export INSTALL_MOD_PATH=%{buildroot} +export INSTALL_MOD_DIR=updates +for flavor in %flavors_to_build; do + make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ + M=$PWD/obj/$flavor +done + +%files +%defattr(-,root,root) +%doc assets test + +%clean +rm -rf %{buildroot} + +%changelog diff --git a/preamble b/preamble new file mode 100644 index 0000000..ace95d0 --- /dev/null +++ b/preamble @@ -0,0 +1 @@ +Requires: kernel-%1