diff options
-rw-r--r-- | meta/recipes-devtools/qemu/qemu.inc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index faaea781cd..094a975177 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc | |||
@@ -5,7 +5,7 @@ DEPENDS = "glib-2.0 zlib pixman" | |||
5 | RDEPENDS_${PN}_class-target += "bash" | 5 | RDEPENDS_${PN}_class-target += "bash" |
6 | 6 | ||
7 | require qemu-targets.inc | 7 | require qemu-targets.inc |
8 | inherit autotools pkgconfig bluetooth | 8 | inherit pkgconfig bluetooth |
9 | BBCLASSEXTEND = "native nativesdk" | 9 | BBCLASSEXTEND = "native nativesdk" |
10 | 10 | ||
11 | # QEMU_TARGETS is overridable variable | 11 | # QEMU_TARGETS is overridable variable |
@@ -27,6 +27,7 @@ EXTRA_OECONF = " \ | |||
27 | --disable-werror \ | 27 | --disable-werror \ |
28 | --target-list=${@get_qemu_target_list(d)} \ | 28 | --target-list=${@get_qemu_target_list(d)} \ |
29 | --extra-cflags='${CFLAGS}' \ | 29 | --extra-cflags='${CFLAGS}' \ |
30 | ${PACKAGECONFIG_CONFARGS} \ | ||
30 | " | 31 | " |
31 | EXTRA_OECONF_append_class-native = " --python=python2.7" | 32 | EXTRA_OECONF_append_class-native = " --python=python2.7" |
32 | 33 | ||
@@ -36,27 +37,23 @@ LDFLAGS_append_class-native = " -fuse-ld=bfd" | |||
36 | 37 | ||
37 | export LIBTOOL="${HOST_SYS}-libtool" | 38 | export LIBTOOL="${HOST_SYS}-libtool" |
38 | 39 | ||
40 | B = "${WORKDIR}/build" | ||
41 | |||
39 | do_configure_prepend_class-native() { | 42 | do_configure_prepend_class-native() { |
40 | # Append build host pkg-config paths for native target since the host may provide sdl | 43 | # Append build host pkg-config paths for native target since the host may provide sdl |
41 | BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "") | 44 | BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "") |
42 | if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then | 45 | if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then |
43 | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH | 46 | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH |
44 | fi | 47 | fi |
45 | |||
46 | # Alter target makefiles to accept CFLAGS set via env | ||
47 | sed -i -r \ | ||
48 | -e 's/^(C|OP_C|HELPER_C)FLAGS=/\1FLAGS+=/' \ | ||
49 | "${S}"/Makefile "${S}"/Makefile.target | ||
50 | } | 48 | } |
51 | 49 | ||
52 | do_configure() { | 50 | do_configure() { |
53 | ${S}/configure ${EXTRA_OECONF} | 51 | ${S}/configure ${EXTRA_OECONF} |
54 | test ! -e ${S}/target-i386/beginend_funcs.sh || chmod a+x ${S}/target-i386/beginend_funcs.sh | ||
55 | } | 52 | } |
56 | 53 | ||
57 | do_install () { | 54 | do_install () { |
58 | export STRIP="true" | 55 | export STRIP="" |
59 | autotools_do_install | 56 | oe_runmake 'DESTDIR=${D}' install |
60 | } | 57 | } |
61 | 58 | ||
62 | # The following fragment will create a wrapper for qemu-mips user emulation | 59 | # The following fragment will create a wrapper for qemu-mips user emulation |