new file mode 100644
@@ -0,0 +1,13 @@
+--- b/Makefile 2013-03-18 14:19:22.297921165 +0100
++++ a/Makefile 2013-03-18 14:26:05.053909264 +0100
+@@ -77,7 +77,7 @@
+ # manual pages will be installed.
+ MANDIR := $(PREFIX)/man
+
+-MACHINE := $(shell uname -m)
++MACHINE := $(TARGET_CPU)
+
+ # Extra non-default programs to build; e.g., sensord
+ #PROG_EXTRA := sensord
+
+Diff finished. Mon Mar 18 14:26:32 2013
new file mode 100644
@@ -0,0 +1,41 @@
+DESCRIPTION = "LM sensors: Monitoring tool"
+LICENCE = "LGPL"
+HOMEPAGE = "http://www.lm-sensors.org/"
+
+inherit make c
+
+DEPENDS = "kernel-dev native:flex native:bison libm"
+
+RDEPENDS_${PN} = "libm"
+
+SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2"
+S = "${SRCDIR}/lm_sensors-${PV}"
+
+do_compile[prefuncs] += "do_compile_remove_prefix"
+do_compile_remove_prefix () {
+ sed -i -e 's/\(PREFIX :=\).*/\1\${prefix}/' Makefile
+ sed -i -e 's/\(CC :=\).*/\1\"${CC}"/' Makefile
+}
+
+do_compile() {
+ export PREFIX=${prefix}
+ oe_runmake \
+ LINUX=${HOST_SYSROOT}${kernelsrcdir} \
+ TARGET_ARCH=${TARGET_ARCH} \
+ user PROG_EXTRA=sensors
+}
+
+do_install() {
+ oe_runmake user_install DESTDIR=${D}
+
+ install -d ${D}${mandir}
+ rm -rf ${D}${mandir}/*
+ mv ${D}/usr/man/ ${D}${mandir}
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN} ${PN}-dev ${PN}-locale"
+inherit auto-package-utils
+AUTO_PACKAGE_UTILS = "fancontrol isadump isaset pwmconfig sensors-detect sensors sensors-conf-convert"
+RDEPENDS_${PN} += "${PN}-sensors"
+
+FILES_${PN} += "${libdir}/libsensors.so"
new file mode 100644
@@ -0,0 +1,5 @@
+require lmsensors.inc
+
+SRC_URI += "file://makefile_machine_fix.patch"
+
+export TARGET_CPU
\ No newline at end of file
new file mode 100644
@@ -0,0 +1 @@
+b55c06f425993e42f13553f204066c446da36fd3 lm_sensors-3.3.3.tar.bz2
From: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk> --- .../lmsensors-3.3.3/makefile_machine_fix.patch | 13 +++++++ recipes/lmsensors/lmsensors.inc | 41 ++++++++++++++++++++ recipes/lmsensors/lmsensors_3.3.3.oe | 5 +++ recipes/lmsensors/lmsensors_3.3.3.oe.sig | 1 + 4 files changed, 60 insertions(+) create mode 100644 recipes/lmsensors/lmsensors-3.3.3/makefile_machine_fix.patch create mode 100644 recipes/lmsensors/lmsensors.inc create mode 100644 recipes/lmsensors/lmsensors_3.3.3.oe create mode 100644 recipes/lmsensors/lmsensors_3.3.3.oe.sig