Initial Commit
- initial default booting image
This commit is contained in:
31
package/lm-sensors/0001-no-host-ldconfig.patch
Normal file
31
package/lm-sensors/0001-no-host-ldconfig.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
Remove usage of host ldconfig
|
||||
|
||||
To know whether the libiconv library is available, lm-sensors is using
|
||||
the host ldconfig, which is obviously wrong in cross-compilation.
|
||||
|
||||
Moreover, the lm-sensors program making use of the iconv_*() API
|
||||
already does it when __UCLIBC__ is *not* defined. In this case, the
|
||||
iconv_*() functions are already part of the C library, so there is no
|
||||
need to link against a separate library. Therefore, this patch simply
|
||||
removes the libiconv handling.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Bernd: rebased for 3.6.2]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
|
||||
Index: b/prog/sensors/Module.mk
|
||||
===================================================================
|
||||
--- a/prog/sensors/Module.mk
|
||||
+++ b/prog/sensors/Module.mk
|
||||
@@ -39,10 +39,8 @@
|
||||
REMOVESENSORSMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGSENSORSMAN1DIR)/%,$(PROGSENSORSMAN1FILES))
|
||||
REMOVESENSORSZSH := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(ZSHCOMPDIR)/%,$(PROGSENSORSZSHCOMPFILES))
|
||||
|
||||
-LIBICONV := $(shell if /sbin/ldconfig -p | grep -q '/libiconv\.so$$' ; then echo \-liconv; else echo; fi)
|
||||
-
|
||||
$(PROGSENSORSTARGETS): $(PROGSENSORSSOURCES:.c=.ro) lib/$(LIBDEP_FOR_PROGS)
|
||||
- $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) $(LIBICONV) -Llib -lsensors -lm
|
||||
+ $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) -Llib -lsensors -lm
|
||||
|
||||
all-prog-sensors: $(PROGSENSORSTARGETS)
|
||||
user :: all-prog-sensors
|
||||
57
package/lm-sensors/Config.in
Normal file
57
package/lm-sensors/Config.in
Normal file
@@ -0,0 +1,57 @@
|
||||
config BR2_PACKAGE_LM_SENSORS
|
||||
bool "lm-sensors"
|
||||
help
|
||||
Lm-sensors is a hardware health monitoring package for
|
||||
Linux. It allows you to access information from
|
||||
temperature, voltage, and fan speed sensors. It
|
||||
works with most newer systems.
|
||||
|
||||
https://hwmon.wiki.kernel.org
|
||||
|
||||
if BR2_PACKAGE_LM_SENSORS
|
||||
comment "lm-sensors tools"
|
||||
|
||||
config BR2_PACKAGE_LM_SENSORS_SENSORS
|
||||
bool "sensors"
|
||||
default y
|
||||
help
|
||||
Sensors is used to show the current readings of all sensor
|
||||
chips.
|
||||
|
||||
config BR2_PACKAGE_LM_SENSORS_FANCONTROL
|
||||
bool "fancontrol"
|
||||
help
|
||||
Script for temperature driven fan control
|
||||
|
||||
config BR2_PACKAGE_LM_SENSORS_ISADUMP
|
||||
bool "isadump"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
help
|
||||
Isadump is a small helper program to examine registers
|
||||
visible through the ISA bus.
|
||||
|
||||
config BR2_PACKAGE_LM_SENSORS_ISASET
|
||||
bool "isaset"
|
||||
depends on BR2_i386 || BR2_x86_64
|
||||
help
|
||||
Isaset is a small helper program to set register visible
|
||||
through the ISA bus.
|
||||
|
||||
config BR2_PACKAGE_LM_SENSORS_PWMCONFIG
|
||||
bool "pwmconfig"
|
||||
help
|
||||
Pwmconfig searches your sensors for pulse width modulation
|
||||
(PWM) controls, and tests each one to see if it controls a fan
|
||||
on your motherboard.
|
||||
|
||||
config BR2_PACKAGE_LM_SENSORS_SENSORS_DETECT
|
||||
bool "sensors-detect"
|
||||
depends on BR2_PACKAGE_PERL
|
||||
help
|
||||
Sensors-detect is an interactive program for detecting
|
||||
available hardware monitoring chips.
|
||||
|
||||
comment "sensors-detect needs perl"
|
||||
depends on !BR2_PACKAGE_PERL
|
||||
|
||||
endif
|
||||
4
package/lm-sensors/lm-sensors.hash
Normal file
4
package/lm-sensors/lm-sensors.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 c6a0587e565778a40d88891928bf8943f27d353f382d5b745a997d635978a8f0 lm-sensors-3-6-2.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LGPL
|
||||
52
package/lm-sensors/lm-sensors.mk
Normal file
52
package/lm-sensors/lm-sensors.mk
Normal file
@@ -0,0 +1,52 @@
|
||||
################################################################################
|
||||
#
|
||||
# lm-sensors
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LM_SENSORS_VERSION = 3-6-2
|
||||
LM_SENSORS_SITE = $(call github,lm-sensors,lm-sensors,V$(LM_SENSORS_VERSION))
|
||||
LM_SENSORS_INSTALL_STAGING = YES
|
||||
LM_SENSORS_DEPENDENCIES = host-bison host-flex
|
||||
LM_SENSORS_LICENSE = LGPL-2.1+ (libsensors), GPL-2.0+ (programs)
|
||||
LM_SENSORS_LICENSE_FILES = COPYING.LGPL COPYING
|
||||
|
||||
LM_SENSORS_BINS_ = bin/sensors-conf-convert
|
||||
LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_SENSORS) += bin/sensors
|
||||
LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_FANCONTROL) += sbin/fancontrol
|
||||
LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_ISADUMP) += sbin/isadump
|
||||
LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_ISASET) += sbin/isaset
|
||||
LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_PWMCONFIG) += sbin/pwmconfig
|
||||
LM_SENSORS_BINS_$(BR2_PACKAGE_LM_SENSORS_SENSORS_DETECT) += sbin/sensors-detect
|
||||
|
||||
LM_SENSORS_MAKE_OPTS = \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
PREFIX=/usr
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=0 EXLDFLAGS=-static
|
||||
else
|
||||
LM_SENSORS_MAKE_OPTS += BUILD_SHARED_LIB=1
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
LM_SENSORS_MAKE_OPTS += BUILD_STATIC_LIB=0
|
||||
else
|
||||
LM_SENSORS_MAKE_OPTS += BUILD_STATIC_LIB=1
|
||||
endif
|
||||
|
||||
define LM_SENSORS_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(LM_SENSORS_MAKE_OPTS) -C $(@D)
|
||||
endef
|
||||
|
||||
define LM_SENSORS_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LM_SENSORS_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
|
||||
rm -f $(addprefix $(STAGING_DIR)/usr/,$(LM_SENSORS_BINS_) $(LM_SENSORS_BINS_y))
|
||||
endef
|
||||
|
||||
define LM_SENSORS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LM_SENSORS_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/,$(LM_SENSORS_BINS_))
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user