Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] qemu: do not hardcode python2.7 path
@ 2018-04-02 13:42 Ruslan Ruslichenko
  2018-04-02 13:42 ` [PATCH 2/2] tune-core2.inc: add cpu type for qemu Ruslan Ruslichenko
  0 siblings, 1 reply; 2+ messages in thread
From: Ruslan Ruslichenko @ 2018-04-02 13:42 UTC (permalink / raw)
  To: openembedded-core; +Cc: xe-linux-external

It can be installed to some non standard path in which
case build will be broken.
As python2.7 is specified in HOSTTOOLS we can rely
that it is present in the PATH, so no need to hardcode
it to /usr/bin.

Signed-off-by: Ruslan Ruslichenko <rruslich@cisco.com>
---
 meta/recipes-devtools/qemu/qemu.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 2a1d14b..dc73df8 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -28,7 +28,7 @@ EXTRA_OECONF = " \
     --target-list=${@get_qemu_target_list(d)} \
     --extra-cflags='${CFLAGS}' \
     "
-EXTRA_OECONF_append_class-native = " --python=${USRBINPATH}/python2.7"
+EXTRA_OECONF_append_class-native = " --python=python2.7"
 
 EXTRA_OEMAKE_append_class-native = " LD='${LD}' AR='${AR}' OBJCOPY='${OBJCOPY}' LDFLAGS='${LDFLAGS}'"
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] tune-core2.inc: add cpu type for qemu
  2018-04-02 13:42 [PATCH 1/2] qemu: do not hardcode python2.7 path Ruslan Ruslichenko
@ 2018-04-02 13:42 ` Ruslan Ruslichenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ruslan Ruslichenko @ 2018-04-02 13:42 UTC (permalink / raw)
  To: openembedded-core; +Cc: xe-linux-external

Define cpu type for Qemu in QEMU_EXTRAOPTIONS.
Otherways Qemu will emulate some virtual qemu32/64 processor,
which has very basic set of features, and programs built
for later CPU may crash, due to lack of new features (e.g. SSSE3).

Signed-off-by: Ruslan Ruslichenko <rruslich@cisco.com>
---
 meta/conf/machine/include/tune-core2.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/conf/machine/include/tune-core2.inc b/meta/conf/machine/include/tune-core2.inc
index 6a03466..c686bb4 100644
--- a/meta/conf/machine/include/tune-core2.inc
+++ b/meta/conf/machine/include/tune-core2.inc
@@ -21,15 +21,18 @@ TUNE_FEATURES_tune-core2-32 = "${TUNE_FEATURES_tune-x86} core2"
 BASE_LIB_tune-core2-32 = "lib"
 TUNE_PKGARCH_tune-core2-32 = "core2-32"
 PACKAGE_EXTRA_ARCHS_tune-core2-32 = "${PACKAGE_EXTRA_ARCHS_tune-i686} core2-32"
+QEMU_EXTRAOPTIONS_core2-32 = " -cpu core2duo"
 
 AVAILTUNES += "core2-64"
 TUNE_FEATURES_tune-core2-64 = "${TUNE_FEATURES_tune-x86-64} core2"
 BASE_LIB_tune-core2-64 = "lib64"
 TUNE_PKGARCH_tune-core2-64 = "core2-64"
 PACKAGE_EXTRA_ARCHS_tune-core2-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} core2-64"
+QEMU_EXTRAOPTIONS_core2-64 = " -cpu core2duo"
 
 AVAILTUNES += "core2-64-x32"
 TUNE_FEATURES_tune-core2-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} core2"
 BASE_LIB_tune-core2-64-x32 = "libx32"
 TUNE_PKGARCH_tune-core2-64-x32 = "core2-64-x32"
 PACKAGE_EXTRA_ARCHS_tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64-x32} core2-64-x32"
+QEMU_EXTRAOPTIONS_core2-64-x32 = " -cpu core2duo"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-02 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-02 13:42 [PATCH 1/2] qemu: do not hardcode python2.7 path Ruslan Ruslichenko
2018-04-02 13:42 ` [PATCH 2/2] tune-core2.inc: add cpu type for qemu Ruslan Ruslichenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox