qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stuart Brady <sdb@zubnet.me.uk>
To: Stefan Weil <weil@mail.berlios.de>
Cc: Blue Swirl <blauwirbel@gmail.com>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 1/2] Add checkpatch.pl from Linux kernel
Date: Sun, 9 Jan 2011 20:23:14 +0000	[thread overview]
Message-ID: <20110109202314.GA17755@zubnet.me.uk> (raw)
In-Reply-To: <4D29F477.5010001@mail.berlios.de>

On Sun, Jan 09, 2011 at 06:46:31PM +0100, Stefan Weil wrote:

> I appreciate that it will be possible to use scripts like this one
> for QEMU, too. Let me just add a small remark.
> 
> QEMU's root directory is already crowded with too many files
> (at least that's my personal opinion).
> 
> Why not use a directory structure similar to Linux and add
> the script to scripts/checkpatch.pl? More scripts will follow,
> e.g. scripts/get_maintainer.pl, and users will know where they
> have to look for these scripts.

I'd agree.  We should probably also have a SubmittingPatches file
which mentions the checkpatch script, and also the developers
certificate of origin (which I assume applies to QEMU, but I've
not actually seen that stated anywhere)...  Linux's document might
be a good starting point for QEMU.

Would you include scripts that are used when building in this
directory?  The scripts that I could find are:

   create_config
   feature_to_c.sh
   hxtool
   qemu-binfmt-conf.sh
   texi2pod.pl

Linux seems to mix both scripts that a user might run directly, and
scripts that are only using when building, which seems wrong to me.

BTW, I notice that qemu-binfmt-conf.sh could do with some cleanup...
e.g. QEMU might be installed somewhere other than /usr/local/bin,
there's the FIXME against MIPS, readability could be improved, and
quite a few targets are missing.  I might have a go at some of this.

Some other suggestions for directories that may make sense:

   sysemu/devices/audio
   sysemu/devices/input
   sysemu/devices/net
   sysemu/devices/serial
   sysemu/devices/storage
   sysemu/devices/video
   sysemu/machines
   sysemu/migration
   targets/x86
   targets/*
   unit-tests

Placing the *-user and *-softmmu directories into one single directory
would also avoid clutter.

Projects using Automake hide their .d files inside a .deps directory,
so perhaps that would be worth considering.

... and I guess 'Virtual Linux.c' doesn't make much sense now. :-)

Either way, placing scripts that users and developers might well need in
a separate directory (perhaps including examples for tun, etc?) reads
like a good idea to my eyes, anyway.

Cheers,
-- 
Stuart Brady

      reply	other threads:[~2011-01-09 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09 11:45 [Qemu-devel] [PATCH 1/2] Add checkpatch.pl from Linux kernel Blue Swirl
2011-01-09 17:46 ` Stefan Weil
2011-01-09 20:23   ` Stuart Brady [this message]

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=20110109202314.GA17755@zubnet.me.uk \
    --to=sdb@zubnet.me.uk \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=weil@mail.berlios.de \
    /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;
as well as URLs for NNTP newsgroup(s).