[oe-commits] Tom Rini : lmsensors-apps: Various important fixes
git version control
git at git.openembedded.org
Wed Jun 1 01:24:08 UTC 2011
Module: openembedded.git
Branch: master
Commit: fffb908d5a2f7ebb4ddbaaa30651b1ee2653de01
URL: http://git.openembedded.org/?p=openembedded.git&a=commit;h=fffb908d5a2f7ebb4ddbaaa30651b1ee2653de01
Author: Tom Rini <tom_rini at mentor.com>
Date: Tue May 31 18:20:13 2011 -0700
lmsensors-apps: Various important fixes
- Add DEPENDS = "bison-native flex-native"
- Pass in CC/AR so that we build for the target
- Use EXTRA_OEMAKE to pass in args
- Set PACKAGE_ARCH = ${MACHINE_ARCH} since we reference kernel stuff.
Signed-off-by: Tom Rini <tom_rini at mentor.com>
---
recipes/lm_sensors/lmsensors-apps_3.2.0.bb | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/recipes/lm_sensors/lmsensors-apps_3.2.0.bb b/recipes/lm_sensors/lmsensors-apps_3.2.0.bb
index ea2ea8a..ea75b35 100644
--- a/recipes/lm_sensors/lmsensors-apps_3.2.0.bb
+++ b/recipes/lm_sensors/lmsensors-apps_3.2.0.bb
@@ -2,23 +2,26 @@ DESCRIPTION = "Hardware health monitoring applications"
HOMEPAGE = "http://www.lm-sensors.org/"
DEPENDS = "sysfsutils virtual/libiconv"
LICENSE = "GPL"
+PR = "r1"
+DEPENDS = "bison-native flex-native"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
-SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2 \
-"
+SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2"
SRC_URI[md5sum] = "829d88fb09d67723fbf42853eb84d1fd"
SRC_URI[sha256sum] = "bde7e1d8b473bca6528694b696668c4cd0a28515aef36b961e4f7d8a6b47e581"
S = "${WORKDIR}/lm_sensors-${PV}"
-export PREFIX="${prefix}"
+EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \
+ MACHINE=${TARGET_ARCH} PREFIX=${prefix} CC="${CC}" AR="${AR}"'
do_compile() {
- oe_runmake user LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" PROG_EXTRA=sensors MACHINE=${TARGET_ARCH}
+ oe_runmake user PROG_EXTRA=sensors
}
do_install() {
- oe_runmake user_install EXLDFLAGS="${LDFLAGS}" DESTDIR=${D}
+ oe_runmake user_install DESTDIR=${D}
# move manuals into proper place
install -d ${D}${mandir}
@@ -40,4 +43,3 @@ FILES_libsensors = "${libdir}/libsensors.so.*"
FILES_libsensors-dbg += "${libdir}/.debug"
FILES_libsensors-dev = "${libdir}/libsensors.so ${libdir}/libsensors.a ${includedir}"
FILES_libsensors-doc = "${mandir}/man3"
-
More information about the Openembedded-commits
mailing list