From 6eede856b500b4d501daa411935b349dcc63f10b Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Sun, 18 Jun 2006 16:51:50 +0000 Subject: lm_sensors: add 2.10.0, reformat 2.9.2 per style guideline demands --- packages/lm_sensors/files/.mtn2git_empty | 0 packages/lm_sensors/files/add-sysfs-ldflags.patch | 20 +++++++++++++++ packages/lm_sensors/lmsensors-apps_2.10.0.bb | 30 +++++++++++++++++++++++ packages/lm_sensors/lmsensors-apps_2.9.2.bb | 26 +++++++++----------- 4 files changed, 61 insertions(+), 15 deletions(-) create mode 100644 packages/lm_sensors/files/.mtn2git_empty create mode 100644 packages/lm_sensors/files/add-sysfs-ldflags.patch create mode 100644 packages/lm_sensors/lmsensors-apps_2.10.0.bb diff --git a/packages/lm_sensors/files/.mtn2git_empty b/packages/lm_sensors/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 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 " +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 " 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" + -- cgit v1.2.3