From: Philip Balister <philip@balister.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] conf/machine: Add x86_64 machine.
Date: Thu, 17 Dec 2009 16:11:46 -0500 [thread overview]
Message-ID: <4B2A9E92.9060904@balister.org> (raw)
In-Reply-To: <1261080453-12752-1-git-send-email-raj.khem@gmail.com>
On 12/17/2009 03:07 PM, Khem Raj wrote:
> * This is not supporting multilib
> * Only 64-bit userspace can be built.
>
> Signed-off-by: Khem Raj<raj.khem@gmail.com>
> ---
> conf/machine/include/tune-x86_64.inc | 4 ++++
> conf/machine/x86_64-generic.conf | 31 +++++++++++++++++++++++++++++++
> recipes/gcc/gcc-common.inc | 4 ++++
> 3 files changed, 39 insertions(+), 0 deletions(-)
> create mode 100644 conf/machine/include/tune-x86_64.inc
> create mode 100644 conf/machine/x86_64-generic.conf
>
> diff --git a/conf/machine/include/tune-x86_64.inc b/conf/machine/include/tune-x86_64.inc
> new file mode 100644
> index 0000000..db2a560
> --- /dev/null
> +++ b/conf/machine/include/tune-x86_64.inc
> @@ -0,0 +1,4 @@
> +TARGET_CC_ARCH = "-mtune=generic"
> +BASE_PACKAGE_ARCH = "x86_64"
> +FEED_ARCH = "x86_64"
> +PACKAGE_EXTRA_ARCHS += "x86 i386 i486 i586 i686"
> diff --git a/conf/machine/x86_64-generic.conf b/conf/machine/x86_64-generic.conf
> new file mode 100644
> index 0000000..0dad0ff
> --- /dev/null
> +++ b/conf/machine/x86_64-generic.conf
Any chance bitbake will find the underscore confusing in the machine name?
Philip
> @@ -0,0 +1,31 @@
> +# Copyright (C) 2007,2009 Stelios Koroneos - Digital OPSiS, All Rights Reserved
> +# Released under the MIT license (see packages/COPYING)
> +#@TYPE: Machine
> +#@NAME: x86_64-generic
> +#@DESCRIPTION: Machine configuration for a generic x86_64 machine
> +
> +
> +TARGET_ARCH = "x86_64"
> +
> +PREFERRED_PROVIDER_virtual/kernel = "linux"
> +PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
> +XSERVER="xserver-kdrive-vesa"
> +
> +KERNEL_IMAGETYPE = "bzImage"
> +
> +GLIBC_ADDONS = "nptl"
> +GLIBC_EXTRA_OECONF = "--with-tls"
> +
> +IMAGE_FSTYPES ?= "ext2.gz"
> +IMAGE_DEVICE_TABLES = " \
> + files/device_table-minimal.txt \
> + files/device_table_add-loop.txt \
> + files/device_table_add-scsi.txt \
> +"
> +
> +MACHINE_FEATURES = "kernel26 screen keyboard pci usbhost acpi ext2 x86"
> +MACHINE_EXTRA_RRECOMMENDS = " kernel-modules"
> +
> +#tune for x86_64
> +require conf/machine/include/tune-x86_64.inc
> +
> diff --git a/recipes/gcc/gcc-common.inc b/recipes/gcc/gcc-common.inc
> index 6e777e6..772e7a7 100644
> --- a/recipes/gcc/gcc-common.inc
> +++ b/recipes/gcc/gcc-common.inc
> @@ -15,6 +15,10 @@ def get_gcc_fpu_setting(bb, d):
> return "--with-float=soft"
> return ""
>
> +EXTRA_OECONF_append_x86_64 = " --disable-multilib"
> +EXTRA_OECONF_append_mips64 = " --disable-multilib"
> +EXTRA_OECONF_append_powerpc64 = " --disable-multilib"
> +
> # We really need HOST_SYS here for some packages and TARGET_SYS for others.
> # For now, libgcc is most important so we fix for that - RP.
> SHLIBSDIR = "${STAGING_DIR_TARGET}/shlibs"
next prev parent reply other threads:[~2009-12-17 21:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-17 20:07 [PATCH] conf/machine: Add x86_64 machine Khem Raj
2009-12-17 20:22 ` Phil Blundell
2009-12-17 20:30 ` Khem Raj
2009-12-18 9:41 ` Marcin Juszkiewicz
2009-12-20 19:04 ` Koen Kooi
2009-12-21 2:13 ` Khem Raj
2009-12-21 9:06 ` Koen Kooi
2009-12-21 17:42 ` Khem Raj
2009-12-21 18:33 ` Phil Blundell
2009-12-17 21:11 ` Philip Balister [this message]
2009-12-17 21:25 ` Khem Raj
2009-12-18 14:07 ` 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=4B2A9E92.9060904@balister.org \
--to=philip@balister.org \
--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.