mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-10 03:17:49 +00:00
lm_sensors: add package
This commit is contained in:
parent
96a8f4fccd
commit
47f820102f
@ -0,0 +1,43 @@
|
|||||||
|
################################################################################
|
||||||
|
# This file is part of LibreELEC - http://www.libreelec.tv
|
||||||
|
# Copyright (C) 2016 Team LibreELEC
|
||||||
|
#
|
||||||
|
# LibreELEC is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# LibreELEC is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
PKG_NAME="lm_sensors"
|
||||||
|
PKG_VERSION="3.4.0"
|
||||||
|
PKG_REV="1"
|
||||||
|
PKG_ARCH="any"
|
||||||
|
PKG_LICENSE="GPL"
|
||||||
|
PKG_SITE="http://secure.netroedge.com/~lm78/"
|
||||||
|
PKG_URL="http://ftp.gwdg.de/pub/linux/misc/lm-sensors/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||||
|
PKG_DEPENDS_TARGET="toolchain"
|
||||||
|
PKG_PRIORITY="optional"
|
||||||
|
PKG_SECTION="tools"
|
||||||
|
PKG_SHORTDESC="lm_sensors: Hardware monitoring via the SMBus"
|
||||||
|
PKG_LONGDESC="lm_sensors is a package to get data from the SMB (System Management Bus - an i2c bus) on modern mainboards. It consists of kernel modules and users space tools to get stuff like cpu / mb temperature, voltages, fan speed..."
|
||||||
|
|
||||||
|
# TODO: PKG_MAKE_OPTS_TARGET + ETCDIR=/storage/.kodi/addons/tools.lm_sensors/data if one wants sensor3.conf..
|
||||||
|
PKG_MAKE_OPTS_TARGET="PREFIX=/usr CC=$TARGET_CC AR=$TARGET_AR"
|
||||||
|
PKG_MAKEINSTALL_OPTS_TARGET="PREFIX=/usr"
|
||||||
|
|
||||||
|
pre_make_target() {
|
||||||
|
export CFLAGS="$TARGET_CFLAGS"
|
||||||
|
export CPPFLAGS="$TARGET_CPPFLAGS"
|
||||||
|
}
|
||||||
|
|
||||||
|
makeinstall_target() {
|
||||||
|
: # meh
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
From 0b2b2e26bbae3d06580080a66a85e5e0d90ea9f6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stefan Saraev <stefan@saraev.ca>
|
||||||
|
Date: Sun, 10 Aug 2014 14:21:19 +0300
|
||||||
|
Subject: [PATCH] link static
|
||||||
|
|
||||||
|
---
|
||||||
|
prog/sensors/Module.mk | 2 +-
|
||||||
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/prog/sensors/Module.mk b/prog/sensors/Module.mk
|
||||||
|
index b656441..ad59874 100644
|
||||||
|
--- a/prog/sensors/Module.mk
|
||||||
|
+++ b/prog/sensors/Module.mk
|
||||||
|
@@ -40,7 +40,7 @@ REMOVESENSORSMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGSENSORSMAN1DIR)/%
|
||||||
|
LIBICONV := $(shell if /sbin/ldconfig -p | grep -q '/libiconv\.so$$' ; then echo \-liconv; else echo; fi)
|
||||||
|
|
||||||
|
$(PROGSENSORSTARGETS): $(PROGSENSORSSOURCES:.c=.ro) lib/$(LIBSHBASENAME)
|
||||||
|
- $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) $(LIBICONV) -Llib -lsensors
|
||||||
|
+ $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) $(LIBICONV) -Llib -Wl,-Bstatic -lsensors -Wl,-Bdynamic -lm
|
||||||
|
|
||||||
|
all-prog-sensors: $(PROGSENSORSTARGETS)
|
||||||
|
user :: all-prog-sensors
|
||||||
|
--
|
||||||
|
1.7.2.5
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user