[oe-commits] [openembedded-core] 24/24: tune-ppce500mc.inc: pass -mcpu=e500mc for ppce500mc kernel compile

git at git.openembedded.org git at git.openembedded.org
Fri Jul 8 14:57:21 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 8073d855a709c30afe5fc8fe7f42995ecfff59b2
Author: Zhenhua Luo <zhenhua.luo at nxp.com>
AuthorDate: Tue Jun 28 15:25:07 2016 +0800

    tune-ppce500mc.inc: pass -mcpu=e500mc for ppce500mc kernel compile
    
    Currently the -mcpu parameter is not passed to cross gcc when assembling
    kernel .S file, the implicit -mcpu option that defaults to the latest
    server cpu might casuse incorrect assembling.
    
    A existent case is that wait instruction of ppce500mc is incorrectly assembled
    to power9 version with default -mcpu setting, accordingly kernel boot calltrace
    happend when wait instruction is executed on ppce500mc targets.
    
    Signed-off-by: Zhenhua Luo <zhenhua.luo at nxp.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/conf/machine/include/tune-ppce500mc.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/conf/machine/include/tune-ppce500mc.inc b/meta/conf/machine/include/tune-ppce500mc.inc
index a1ca9be..bc26a0f 100644
--- a/meta/conf/machine/include/tune-ppce500mc.inc
+++ b/meta/conf/machine/include/tune-ppce500mc.inc
@@ -12,3 +12,6 @@ PACKAGE_EXTRA_ARCHS_tune-ppce500mc = "${PACKAGE_EXTRA_ARCHS_tune-powerpc} ppce50
 
 # glibc configure options to get e500mc specific library (for sqrt)
 GLIBC_EXTRA_OECONF += "${@bb.utils.contains('TUNE_FEATURES', 'ppce500mc', '-with-cpu=e500mc', '', d)}"
+
+# pass -mcpu=e500mc for ppce500mc kernel cross compile
+TARGET_CC_KERNEL_ARCH = "-mcpu=e500mc"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list