diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/lm_sensors/files/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/lm_sensors/files/add-sysfs-ldflags.patch | 20 | ||||
-rw-r--r-- | packages/lm_sensors/lmsensors-apps_2.10.0.bb | 30 | ||||
-rw-r--r-- | packages/lm_sensors/lmsensors-apps_2.9.2.bb | 26 |
4 files changed, 61 insertions, 15 deletions
diff --git a/packages/lm_sensors/files/.mtn2git_empty b/packages/lm_sensors/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/lm_sensors/files/.mtn2git_empty diff --git a/packages/lm_sensors/files/add-sysfs-ldflags.patch b/packages/lm_sensors/files/add-sysfs-ldflags.patch new file mode 100644 index 0000000000..25f13d8d4c --- /dev/null +++ b/packages/lm_sensors/files/add-sysfs-ldflags.patch @@ -0,0 +1,20 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- lm_sensors-2.10.0/lib/Module.mk~add-sysfs-ldflags ++++ lm_sensors-2.10.0/lib/Module.mk +@@ -66,10 +66,10 @@ + # How to create the shared library + ifdef SYSFS_SUPPORT + $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS) +- $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm -lsysfs ++ $(CC) $(LDFLAGS) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm -lsysfs + else + $(MODULE_DIR)/$(LIBSHLIBNAME): $(LIBSHOBJECTS) +- $(CC) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm ++ $(CC) $(LDFLAGS) -shared -Wl,-soname,$(LIBSHSONAME) -o $@ $^ -lc -lm + endif + + $(MODULE_DIR)/$(LIBSHSONAME): $(MODULE_DIR)/$(LIBSHLIBNAME) diff --git a/packages/lm_sensors/lmsensors-apps_2.10.0.bb b/packages/lm_sensors/lmsensors-apps_2.10.0.bb new file mode 100644 index 0000000000..23695700c1 --- /dev/null +++ b/packages/lm_sensors/lmsensors-apps_2.10.0.bb @@ -0,0 +1,30 @@ +# lmsensors-apps .bb build file +# Copyright (C) 2006, Advanced Micro Devices, Inc. All Rights Reserved +# Released under the MIT license (see /COPYING) + +DESCRIPTION = "Hardware health monitoring applications" +HOMEPAGE = "http://secure.netroedge.com/~lm78/" +MAINTAINER = "Raymond Danks <info-linux@geode.amd.com>" +DEPENDS = "libsysfs" +LICENSE = "GPL" + +SRC_URI = "http://secure.netroedge.com/~lm78/archive/lm_sensors-${PV}.tar.gz \ + file://add-sysfs-ldflags.patch;patch=1" +S = "${WORKDIR}/lm_sensors-${PV}" + +do_compile() { + oe_runmake LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" user +} + +APPS = "${S}/prog/dump/i2cdump ${S}/prog/dump/i2cset ${S}/prog/detect/i2cdetect" + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${APPS} ${D}${bindir} +} + +PACKAGES="sensors-i2cdump sensors-i2cset sensors-i2cdetect" + +FILES_sensors-i2cdump="${bindir}/i2cdump" +FILES_sensors-i2cset="${bindir}/i2cset" +FILES_sensors-i2cdetect="${bindir}/i2cdetect" diff --git a/packages/lm_sensors/lmsensors-apps_2.9.2.bb b/packages/lm_sensors/lmsensors-apps_2.9.2.bb index cc5dfe4ff7..24822cdefa 100644 --- a/packages/lm_sensors/lmsensors-apps_2.9.2.bb +++ b/packages/lm_sensors/lmsensors-apps_2.9.2.bb @@ -2,31 +2,27 @@ # Copyright (C) 2006, Advanced Micro Devices, Inc. All Rights Reserved # Released under the MIT license (see /COPYING) -HOMEPAGE="http://secure.netroedge.com/~lm78/" -DESCRIPTION="Hardware health monitoring applications" +DESCRIPTION = "Hardware health monitoring applications" +HOMEPAGE = "http://secure.netroedge.com/~lm78/" MAINTAINER = "Raymond Danks <info-linux@geode.amd.com>" LICENSE = "GPL" -SRC_URI="http://secure.netroedge.com/~lm78/archive/lm_sensors-${PV}.tar.gz" - -S="${WORKDIR}/lm_sensors-${PV}" - -PACKAGES="sensors-i2cdump sensors-i2cset sensors-i2cdetect" - -FILES_sensors-i2cdump="${bindir}/i2cdump" -FILES_sensors-i2cset="${bindir}/i2cset" -FILES_sensors-i2cdetect="${bindir}/i2cdetect" - -do_configure() { -} +SRC_URI = "http://secure.netroedge.com/~lm78/archive/lm_sensors-${PV}.tar.gz" +S = "${WORKDIR}/lm_sensors-${PV}" do_compile() { oe_runmake LINUX=${STAGING_KERNEL_DIR} user } -APPS="${S}/prog/dump/i2cdump ${S}/prog/dump/i2cset ${S}/prog/detect/i2cdetect" +APPS = "${S}/prog/dump/i2cdump ${S}/prog/dump/i2cset ${S}/prog/detect/i2cdetect" do_install() { install -d ${D}${bindir} install -m 0755 ${APPS} ${D}${bindir} } + +PACKAGES="sensors-i2cdump sensors-i2cset sensors-i2cdetect" +FILES_sensors-i2cdump="${bindir}/i2cdump" +FILES_sensors-i2cset="${bindir}/i2cset" +FILES_sensors-i2cdetect="${bindir}/i2cdetect" + |