Patchwork uclibc: Add default uClibc.machine files

login
register
mail settings
Submitter Khem Raj
Date June 30, 2011, 11:33 p.m.
Message ID <1309476797-16325-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/6769/
State New, archived
Headers show

Comments

Khem Raj - June 30, 2011, 11:33 p.m.
Add generic machine config file

uClibc.machine in topdir should work mostly
and odd ones like mips should have a copy
of their own as explained

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../uclibc/uclibc-git/mips/uClibc.machine          |   16 ++++++++++++++++
 meta/recipes-core/uclibc/uclibc-git/uClibc.machine |   14 ++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-core/uclibc/uclibc-git/mips/uClibc.machine
 create mode 100644 meta/recipes-core/uclibc/uclibc-git/uClibc.machine
Richard Purdie - June 30, 2011, 11:40 p.m.
On Thu, 2011-06-30 at 16:33 -0700, Khem Raj wrote:
> Add generic machine config file
> 
> uClibc.machine in topdir should work mostly
> and odd ones like mips should have a copy
> of their own as explained
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  .../uclibc/uclibc-git/mips/uClibc.machine          |   16 ++++++++++++++++
>  meta/recipes-core/uclibc/uclibc-git/uClibc.machine |   14 ++++++++++++++
>  2 files changed, 30 insertions(+), 0 deletions(-)
>  create mode 100644 meta/recipes-core/uclibc/uclibc-git/mips/uClibc.machine
>  create mode 100644 meta/recipes-core/uclibc/uclibc-git/uClibc.machine

Merged to master, thanks.

Richard

Patch

diff --git a/meta/recipes-core/uclibc/uclibc-git/mips/uClibc.machine b/meta/recipes-core/uclibc/uclibc-git/mips/uClibc.machine
new file mode 100644
index 0000000..7d7ab3f
--- /dev/null
+++ b/meta/recipes-core/uclibc/uclibc-git/mips/uClibc.machine
@@ -0,0 +1,16 @@ 
+# in OE we use TARGET_CC_ARCH="-march=mips32" but by
+# default uclibc uses mips1 ISA for o32 ABI which ends
+# up with conflicting march options to gcc. Here we
+# ask for MIPS32 ISA to match the OE defaults
+
+CONFIG_MIPS_ISA_MIPS32=y
+
+# Below options are exact copy of general
+# uClibc.machine file
+#
+FORCE_OPTIONS_FOR_ARCH=y
+ARCH_HAS_MMU=y
+ARCH_USE_MMU=y
+KERNEL_HEADERS="/usr/include"
+HAVE_DOT_CONFIG=y
+
diff --git a/meta/recipes-core/uclibc/uclibc-git/uClibc.machine b/meta/recipes-core/uclibc/uclibc-git/uClibc.machine
new file mode 100644
index 0000000..595f444
--- /dev/null
+++ b/meta/recipes-core/uclibc/uclibc-git/uClibc.machine
@@ -0,0 +1,14 @@ 
+#
+# Automatically generated make config: don't edit
+# Version: 0.9.32-git
+# Mon Jul 19 01:34:29 2010
+#
+#
+# Using ELF file format
+#
+FORCE_OPTIONS_FOR_ARCH=y
+ARCH_HAS_MMU=y
+ARCH_USE_MMU=y
+KERNEL_HEADERS="/usr/include"
+HAVE_DOT_CONFIG=y
+