Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] qemu-system: new host package
Date: Thu, 05 Dec 2013 18:49:48 +0100	[thread overview]
Message-ID: <52A0BCBC.5000008@mind.be> (raw)
In-Reply-To: <529F24A4.6030005@zacarias.com.ar>

On 04/12/13 13:48, Gustavo Zacarias wrote:
> On 12/04/2013 09:33 AM, Thomas Petazzoni wrote:
>
>> Yes, I agree, the user mode emulation should probably be removed. It
>> simply cannot work properly, because we have no way of guaranteeing
>> that the kernel headers used for the target toolchain are older than
>> the kernel running on the system.

  It's not possible to do it in Config.in, but it's easy to do during the 
build: compare /usr/include/linux/version.h with 
$(STAGING_DIR)/usr/include/linux/version.h

  Or am I missing something? I admit, it assumes that the distro installs 
kernel headers corresponding to the running kernel (but a distro that 
doesn't do that is pretty broken), and it assumes that you'll run qemu on 
the build machine.


>> And even if we want to keep the user mode emulation, I think there
>> should be one single package. Nothing prevents from having sub-options
>> to enable either the user mode or system mode emulation, or both, or to
>> have a version selection.
>
> A single package prevents different versions of -user and -system (at
> least in a nice way).

  We do it for gcc, binutils, ... and it doesn't look that ugly to me. 
It's mostly the Config.in part that looks ugly.


> Sometimes the latest version of qemu doesn't play nice with some kernel
> versions because of newer OpenBIOS/other BIOSes versions breaking with
> newer kernels - it's a common scenario for non-x86/x86_64.
> And there may be some particular need for -user to be a newer or
> different version than system, though i can't come up with any idea of why.
> At the moment i don't think -user is useful for anything in particular
> because of the limitations you wrote.
> Problem is building two different versions in a single package wouldn't
> be all that great, for all intents and purposes they would be two
> packages anyway.

  The two packages would be 90% identical (except for needless 
divergences, like one using generic-package and the other using 
autotools-package). So I don't agree they would be two packages. The host 
and the target build of e.g. python differ more than these two.

  Regards,
  Arnout


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2013-12-05 17:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-04  0:40 [Buildroot] [RFC PATCH 0/2] host-qemu-system Gustavo Zacarias
2013-12-04  0:40 ` [Buildroot] [PATCH 1/2] qemu-system: new host package Gustavo Zacarias
2013-12-04  8:44   ` Thomas Petazzoni
2013-12-04 10:06     ` Gustavo Zacarias
2013-12-04 12:33       ` Thomas Petazzoni
2013-12-04 12:48         ` Gustavo Zacarias
2013-12-05 17:49           ` Arnout Vandecappelle [this message]
2013-12-05 22:31             ` Thomas Petazzoni
2013-12-06  1:14               ` Frank Hunleth
2013-12-06 15:58                 ` Arnout Vandecappelle
2013-12-09 12:15                   ` Frank Hunleth
2013-12-09 12:18                   ` [Buildroot] [UNSURE]Re: " François Perrad
2013-12-04  0:40 ` [Buildroot] [PATCH 2/2] configs/qemu: update for host-qemu-system goodness Gustavo Zacarias

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=52A0BCBC.5000008@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox