1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# -*-makefile-*-
#
# Copyright (C) 2009 by Uwe Kleine-König
# 2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_LM_SENSORS) += lm_sensors
#
# Paths and names
#
LM_SENSORS_VERSION := 3.5.0
LM_SENSORS_TAG := V3-5-0
LM_SENSORS_MD5 := 37981f5d3a0f649381529cb41c0f1ff3
LM_SENSORS := lm_sensors-$(LM_SENSORS_VERSION)
LM_SENSORS_SUFFIX := tar.gz
LM_SENSORS_URL := \
https://github.com/lm-sensors/lm-sensors/archive/$(LM_SENSORS_TAG).$(LM_SENSORS_SUFFIX)
LM_SENSORS_SOURCE := $(SRCDIR)/$(LM_SENSORS).$(LM_SENSORS_SUFFIX)
LM_SENSORS_DIR := $(BUILDDIR)/$(LM_SENSORS)
LM_SENSORS_LICENSE := GPL-2.0-or-later AND LGPL-2.1-or-later
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
LM_SENSORS_CONF_TOOL := NO
LM_SENSORS_MAKE_OPT := \
PREFIX=/usr \
LIBICONV="" \
MACHINE=$(PTXCONF_ARCH_STRING) \
$(CROSS_ENV_CC)
LM_SENSORS_INSTALL_OPT := \
$(LM_SENSORS_MAKE_OPT) \
install
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/lm_sensors.targetinstall:
@$(call targetinfo)
@$(call install_init, lm_sensors)
@$(call install_fixup, lm_sensors,PRIORITY,optional)
@$(call install_fixup, lm_sensors,SECTION,base)
@$(call install_fixup, lm_sensors,AUTHOR,"Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>")
@$(call install_fixup, lm_sensors,DESCRIPTION,missing)
@$(call install_lib, lm_sensors, 0, 0, 0644, libsensors)
@$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/bin/sensors)
@$(call install_alternative, lm_sensors, 0, 0, 0644, /etc/sensors3.conf)
ifdef PTXCONF_LM_SENSORS_FANCONTROL
@$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/fancontrol)
endif
ifdef PTXCONF_LM_SENSORS_PWMCONFIG
@$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/pwmconfig)
endif
ifdef PTXCONF_ARCH_X86
ifdef PTXCONF_LM_SENSORS_ISASET
@$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/isaset)
endif
ifdef PTXCONF_LM_SENSORS_ISADUMP
@$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/isadump)
endif
endif
@$(call install_finish, lm_sensors)
@$(call touch)
# vim: syntax=make
|