remove lm_sensor as it is already in meta-oe
PATCH 2/2 qemu: configure properly check if -lrt is needed
In reply to [email protected]From: Ting Liu <[email protected]>
-lrt is needed to avoid the error "undefined reference to `timer_settime'". add the check in configure.
Backport from http://git.qemu.org/?p=qemu.git
commit: 8bacde8d86a09699207d85d4bab06162aed18dc4
Fix the below build issue:
| ../qemu-timer.o: In function `dynticks_rearm_timer': | .../qemu/1.0+fsl-r2/git/qemu-timer.c:597: undefined reference to `timer_gettime' | .../qemu/1.0+fsl-r2/git/qemu-timer.c:610: undefined reference to `timer_settime' | ../qemu-timer.o: In function `dynticks_stop_timer': | .../qemu/1.0+fsl-r2/git/qemu-timer.c:583: undefined reference to `timer_delete' | ../qemu-timer.o: In function `dynticks_start_timer': | .../qemu/1.0+fsl-r2/git/qemu-timer.c:565: undefined reference to `timer_create' | ivshmem.o: In function `pci_ivshmem_init': | .../qemu/1.0+fsl-r2/git/hw/ivshmem.c:720: undefined reference to `shm_open' | .../qemu/1.0+fsl-r2/git/hw/ivshmem.c:727: undefined reference to `shm_open' | collect2: error: ld returned 1 exit status | make[1]: *** [qemu-system-ppc] Error 1 | make: *** [subdir-ppc-softmmu] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile
Yocto 1.4_M4 uses qemu 1.3.1 which includes this fix. So this issue only appeared to us.
Signed-off-by Ting Liu <[email protected]>
--- ...configure-properly-check-if-lrt-is-needed.patch | 43 ++++++++++++++++++++ recipes-devtools/qemu/qemu_1.0.bb | 6 ++- 2 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch
recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch new file +43 -0
@@ -0,0 +1,43 @@ +From e5906138d8042817cc3b49872dd181c66a11abdf Mon Sep 17 00:00:00 2001 +From: Ting Liu <[email protected]> +Date: Wed, 6 Mar 2013 01:56:35 -0600 +Subject: [PATCH] configure: properly check if -lrt is needed + +Upstream-Status: Backport +commit 8bacde8d86a09699207d85d4bab06162aed18dc4 + +Signed-off-by: Natanael Copa <[email protected]> +Signed-off-by: Blue Swirl <[email protected]> +Signed-off-by: Ting Liu <[email protected]> +--- + configure | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index 999375a..29b3e30 100755 +--- a/configure ++++ b/configure +@@ -2444,13 +2444,18 @@ fi + cat > $TMPC <<EOF + #include <signal.h> + #include <time.h> +-int main(void) { clockid_t id; return clock_gettime(id, NULL); } ++int main(void) { ++ timer_create(CLOCK_REALTIME, NULL, NULL); ++ return clock_gettime(CLOCK_REALTIME, NULL); ++} + EOF + + if compile_prog "" "" ; then + : +-elif compile_prog "" "-lrt" ; then ++# we need pthread for static linking. use previous pthread test result ++elif compile_prog "" "-lrt $pthread_lib" ; then + LIBS="-lrt $LIBS" ++ libs_qga="-lrt $libs_qga" + fi + + if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \ +-- +1.7.9.7 +
recipes-devtools/qemu/qemu_1.0.bb +4 -2
@@ -5,11 +5,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ # This means v1.0 with FSL specific patches applied PV = "1.0+fsl" -PR = "r2" +PR = "r3" DEPENDS += "dtc" -SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git" +SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git \ + file://0001-configure-properly-check-if-lrt-is-needed.patch \ +" SRCREV = "7feabd47a814214dc4bebfd97d0eaf30dc50a68f" S = "${WORKDIR}/git"
Signature · 1 line
1.7.9.7
PATCH 1/2 remove lm_sensor as it is already in meta-oe
From: Ting Liu <[email protected]>
Signed-off-by Ting Liu <[email protected]>
--- .../lm_sensors/lmsensors-apps_3.3.2.bb | 50 -------------------- 1 file changed, 50 deletions(-) delete mode 100644 recipes-extended/lm_sensors/lmsensors-apps_3.3.2.bb
recipes-extended/lm_sensors/lmsensors-apps_3.3.2.bb deleted +0 -50
@@ -1,50 +0,0 @@ -SUMMARY = "A hardware health monitoring package for Linux" -DESCRIPTION = "Lm-sensors is a hardware health monitoring package for Linux. \ - It allows you to access information from temperature, voltage, \ - and fan speed sensors." -HOMEPAGE = "http://www.lm-sensors.org/" -DEPENDS = "sysfsutils virtual/libiconv \ - bison-native flex-native" -LICENSE = "GPLv2 & LGPLv2.1" -LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ - file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c" - -PR = "r2" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2" - -SRC_URI[md5sum] = "f357ba00b080ab102a170f7bf8bb2578" -SRC_URI[sha256sum] = "f13dd885406841a7352ccfb8b9ccb23c4c057abe3de4258da5444c149a9e3ae1" - -S = "${WORKDIR}/lm_sensors-${PV}" - -EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \ - MACHINE=${TARGET_ARCH} PREFIX=${prefix} CC="${CC}" \ - AR="${AR}" MANDIR=${mandir}' - -do_compile() { - oe_runmake user PROG_EXTRA=sensors -} - -do_install() { - oe_runmake user_install DESTDIR=${D} -} - -PACKAGES =+ "libsensors libsensors-dev libsensors-staticdev libsensors-dbg libsensors-doc" -PACKAGES =+ "lmsensors-sensors lmsensors-sensors-dbg lmsensors-sensors-doc" -PACKAGES =+ "lmsensors-scripts" - -FILES_lmsensors-scripts = "${bindir}/*.pl ${bindir}/ddcmon ${sbindir}/fancontrol* ${sbindir}/pwmconfig ${sbindir}/sensors-detect" -RDEPENDS_lmsensors-scripts += "lmsensors-sensors perl bash" -RDEPENDS_lmsensors-apps += "perl-module-strict perl-module-vars perl-module-warnings-register perl-module-warnings" -RDEPENDS_lmsensors-scripts += "perl-module-fcntl perl-module-exporter perl-module-xsloader perl-module-exporter-heavy perl-module-file-basename perl-module-constant" - -FILES_lmsensors-sensors = "${bindir}/sensors ${sysconfdir}" -FILES_lmsensors-sensors-dbg += "${bindir}/.debug/sensors" -FILES_lmsensors-sensors-doc = "${mandir}/man1 ${mandir}/man5" -FILES_libsensors = "${libdir}/libsensors.so.*" -FILES_libsensors-dbg += "${libdir}/.debug" -FILES_libsensors-dev = "${libdir}/libsensors.so ${includedir}" -FILES_libsensors-staticdev = "${libdir}/libsensors.a" -FILES_libsensors-doc = "${mandir}/man3"
Signature · 1 line
1.7.9.7