From: Guo Hongruan <camelguo@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] Fix compiling error of uclibc-initial-0.9.30.1 due to incorrect uClibc.machine for qemumips
Date: Sat, 2 Jan 2010 15:34:34 +0800 [thread overview]
Message-ID: <1262417674-26652-1-git-send-email-camelguo@gmail.com> (raw)
In-Reply-To: <>
1. Add mips entry for linux-uclibc into package_qa_get_machine_dict of insane.bbclass. Without it the insance check will fail due to key miss exception.
2. Rewrite the complete qemumips/uClibc.machine, In the previous one, the TARGET_ARCH is set i386 (not mips).
---
classes/insane.bbclass | 1 +
.../uclibc/uclibc-0.9.30.1/qemumips/uClibc.machine | 49 +++++++++-----------
2 files changed, 23 insertions(+), 27 deletions(-)
diff --git a/classes/insane.bbclass b/classes/insane.bbclass
index 495c3a5..804caf0 100644
--- a/classes/insane.bbclass
+++ b/classes/insane.bbclass
@@ -61,6 +61,7 @@ def package_qa_get_machine_dict():
"i486": ( 3, 0, 0, True, True),
"i586": ( 3, 0, 0, True, True),
"i686": ( 3, 0, 0, True, True),
+ "mips": ( 8, 0, 0, False, True),
"mipsel": ( 8, 0, 0, True, True),
"avr32": (6317, 0, 0, False, True),
"sh4": (42, 0, 0, True, True),
diff --git a/recipes/uclibc/uclibc-0.9.30.1/qemumips/uClibc.machine b/recipes/uclibc/uclibc-0.9.30.1/qemumips/uClibc.machine
index 44fec16..1cf1add 100644
--- a/recipes/uclibc/uclibc-0.9.30.1/qemumips/uClibc.machine
+++ b/recipes/uclibc/uclibc-0.9.30.1/qemumips/uClibc.machine
@@ -1,21 +1,22 @@
#
# Automatically generated make config: don't edit
-# Fri Nov 23 15:49:33 2007
+# Wed Jul 9 13:37:36 2008
#
# TARGET_alpha is not set
# TARGET_arm is not set
+# TARGET_avr32 is not set
# TARGET_bfin is not set
# TARGET_cris is not set
# TARGET_e1 is not set
# TARGET_frv is not set
# TARGET_h8300 is not set
# TARGET_hppa is not set
-TARGET_i386=y
+# TARGET_i386 is not set
# TARGET_i960 is not set
# TARGET_ia64 is not set
# TARGET_m68k is not set
# TARGET_microblaze is not set
-# TARGET_mips is not set
+TARGET_mips=y
# TARGET_nios is not set
# TARGET_nios2 is not set
# TARGET_powerpc is not set
@@ -25,44 +26,38 @@ TARGET_i386=y
# TARGET_v850 is not set
# TARGET_vax is not set
# TARGET_x86_64 is not set
+# TARGET_xtensa is not set
#
# Target Architecture Features and Options
#
-TARGET_ARCH="i386"
+TARGET_ARCH="mips"
FORCE_OPTIONS_FOR_ARCH=y
-CONFIG_GENERIC_386=y
-# CONFIG_386 is not set
-# CONFIG_486 is not set
-# CONFIG_586 is not set
-# CONFIG_586MMX is not set
-# CONFIG_686 is not set
-# CONFIG_PENTIUMII is not set
-# CONFIG_PENTIUMIII is not set
-# CONFIG_PENTIUM4 is not set
-# CONFIG_K6 is not set
-# CONFIG_K7 is not set
-# CONFIG_ELAN is not set
-# CONFIG_CRUSOE is not set
-# CONFIG_WINCHIPC6 is not set
-# CONFIG_WINCHIP2 is not set
-# CONFIG_CYRIXIII is not set
-# CONFIG_NEHEMIAH is not set
+ARCH_CFLAGS="-mno-split-addresses"
+CONFIG_MIPS_O32_ABI=y
+# CONFIG_MIPS_N32_ABI is not set
+# CONFIG_MIPS_N64_ABI is not set
+# CONFIG_MIPS_ISA_1 is not set
+# CONFIG_MIPS_ISA_2 is not set
+# CONFIG_MIPS_ISA_3 is not set
+# CONFIG_MIPS_ISA_4 is not set
+CONFIG_MIPS_ISA_MIPS32=y
+# CONFIG_MIPS_ISA_MIPS64 is not set
TARGET_SUBARCH=""
#
# Using ELF file format
#
-ARCH_LITTLE_ENDIAN=y
-
-#
-# Using Little Endian
-#
+ARCH_ANY_ENDIAN=y
+# ARCH_BIG_ENDIAN is not set
+ARCH_WANTS_BIG_ENDIAN=y
+# ARCH_WANTS_LITTLE_ENDIAN=y
ARCH_HAS_MMU=y
ARCH_USE_MMU=y
UCLIBC_HAS_FLOATS=y
UCLIBC_HAS_FPU=y
-DO_C99_MATH=y
+# DO_C99_MATH is not set
+# UCLIBC_HAS_FENV is not set
KERNEL_HEADERS="/usr/include"
HAVE_DOT_CONFIG=y
--
1.5.4.3
next reply other threads:[~2010-01-02 7:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-02 7:34 Guo Hongruan [this message]
2010-01-02 8:35 ` [PATCH] Fix compiling error of uclibc-initial-0.9.30.1 due to incorrect uClibc.machine for qemumips Holger Hans Peter Freyther
2010-01-02 8:42 ` Guo Hongruan
2010-01-02 9:08 ` signed-off procedure (was: [PATCH] Fix compiling error of uclibc-initial-0.9.30.1 due to incorrect uClibc.machine for qemumips) Paul Menzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262417674-26652-1-git-send-email-camelguo@gmail.com \
--to=camelguo@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.