diff options
-rw-r--r-- | meta-fsl-ppc/recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch | 43 | ||||
-rw-r--r-- | meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb | 6 |
2 files changed, 47 insertions, 2 deletions
diff --git a/meta-fsl-ppc/recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch b/meta-fsl-ppc/recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch new file mode 100644 index 00000000..d74ddb9d --- /dev/null +++ b/meta-fsl-ppc/recipes-devtools/qemu/files/0001-configure-properly-check-if-lrt-is-needed.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From e5906138d8042817cc3b49872dd181c66a11abdf Mon Sep 17 00:00:00 2001 | ||
2 | From: Ting Liu <b28495@freescale.com> | ||
3 | Date: Wed, 6 Mar 2013 01:56:35 -0600 | ||
4 | Subject: [PATCH] configure: properly check if -lrt is needed | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | commit 8bacde8d86a09699207d85d4bab06162aed18dc4 | ||
8 | |||
9 | Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> | ||
10 | Signed-off-by: Blue Swirl <blauwirbel@gmail.com> | ||
11 | Signed-off-by: Ting Liu <b28495@freescale.com> | ||
12 | --- | ||
13 | configure | 9 +++++++-- | ||
14 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/configure b/configure | ||
17 | index 999375a..29b3e30 100755 | ||
18 | --- a/configure | ||
19 | +++ b/configure | ||
20 | @@ -2444,13 +2444,18 @@ fi | ||
21 | cat > $TMPC <<EOF | ||
22 | #include <signal.h> | ||
23 | #include <time.h> | ||
24 | -int main(void) { clockid_t id; return clock_gettime(id, NULL); } | ||
25 | +int main(void) { | ||
26 | + timer_create(CLOCK_REALTIME, NULL, NULL); | ||
27 | + return clock_gettime(CLOCK_REALTIME, NULL); | ||
28 | +} | ||
29 | EOF | ||
30 | |||
31 | if compile_prog "" "" ; then | ||
32 | : | ||
33 | -elif compile_prog "" "-lrt" ; then | ||
34 | +# we need pthread for static linking. use previous pthread test result | ||
35 | +elif compile_prog "" "-lrt $pthread_lib" ; then | ||
36 | LIBS="-lrt $LIBS" | ||
37 | + libs_qga="-lrt $libs_qga" | ||
38 | fi | ||
39 | |||
40 | if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaris" != yes -a \ | ||
41 | -- | ||
42 | 1.7.9.7 | ||
43 | |||
diff --git a/meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb b/meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb index ff4afde3..19efd9f2 100644 --- a/meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb +++ b/meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb | |||
@@ -5,11 +5,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \ | |||
5 | 5 | ||
6 | # This means v1.0 with FSL specific patches applied | 6 | # This means v1.0 with FSL specific patches applied |
7 | PV = "1.0+fsl" | 7 | PV = "1.0+fsl" |
8 | PR = "r2" | 8 | PR = "r3" |
9 | 9 | ||
10 | DEPENDS += "dtc" | 10 | DEPENDS += "dtc" |
11 | 11 | ||
12 | SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git" | 12 | SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git \ |
13 | file://0001-configure-properly-check-if-lrt-is-needed.patch \ | ||
14 | " | ||
13 | SRCREV = "7feabd47a814214dc4bebfd97d0eaf30dc50a68f" | 15 | SRCREV = "7feabd47a814214dc4bebfd97d0eaf30dc50a68f" |
14 | 16 | ||
15 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |