All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] drivers: initial tree import for drivers reorganization
Date: Thu, 11 Oct 2007 14:32:54 -0600	[thread overview]
Message-ID: <fa686aa40710111332o306f8575p715b2055cc563610@mail.gmail.com> (raw)
In-Reply-To: <1192091549-25875-1-git-send-email-plagnioj@jcrosoft.com>

On 10/11/07, Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

First, a general comment.  This patch should go away entirely.  Create
the new makefile one at a time in the same patch where you move the
files.  It will be easier to review/merge that way.

Specific comments below.  Otherwise, not a bad patch series.  Address
the comments and it will probably look pretty good.  Thanks for the
work.

> ---
>  Makefile                                 |   17 +++++++++++++++++
>  drivers/{nand_legacy => ata}/Makefile    |   11 ++++++-----
>  drivers/bios_emulator/Makefile           |   20 ++++++++++++--------
>  drivers/{nand_legacy => block}/Makefile  |   11 ++++++-----
>  drivers/{nand_legacy => char}/Makefile   |   11 ++++++-----
>  drivers/{nand_legacy => eeprom}/Makefile |   11 ++++++-----
>  drivers/{nand_legacy => hwmon}/Makefile  |   11 ++++++-----
>  drivers/{nand_legacy => i2c}/Makefile    |   11 ++++++-----
>  drivers/{nand_legacy => ide}/Makefile    |   11 ++++++-----
>  drivers/{nand_legacy => input}/Makefile  |   11 ++++++-----
>  drivers/{nand_legacy => leds}/Makefile   |   11 ++++++-----
>  drivers/{nand_legacy => misc}/Makefile   |   11 ++++++-----
>  drivers/{nand_legacy => mtd}/Makefile    |   11 ++++++-----
>  drivers/nand_legacy/Makefile             |    3 ++-
>  drivers/net/Makefile                     |    3 ++-
>  drivers/{nand_legacy => pci}/Makefile    |   11 ++++++-----
>  drivers/{nand_legacy => pcmcia}/Makefile |   11 ++++++-----
>  drivers/qe/Makefile                      |    6 +++++-
>  drivers/{nand_legacy => sata}/Makefile   |   11 ++++++-----
>  drivers/{nand_legacy => scsi}/Makefile   |   11 ++++++-----
>  drivers/serial/Makefile                  |    3 ++-
>  drivers/{nand_legacy => usb}/Makefile    |   11 ++++++-----
>  drivers/{nand_legacy => video}/Makefile  |   11 ++++++-----
>  23 files changed, 142 insertions(+), 97 deletions(-)
>  copy drivers/{nand_legacy => ata}/Makefile (88%)
>  copy drivers/{nand_legacy => block}/Makefile (87%)
>  copy drivers/{nand_legacy => char}/Makefile (87%)
>  copy drivers/{nand_legacy => eeprom}/Makefile (87%)
>  copy drivers/{nand_legacy => hwmon}/Makefile (87%)
>  copy drivers/{nand_legacy => i2c}/Makefile (88%)
>  copy drivers/{nand_legacy => ide}/Makefile (88%)
>  copy drivers/{nand_legacy => input}/Makefile (87%)
>  copy drivers/{nand_legacy => leds}/Makefile (87%)
>  copy drivers/{nand_legacy => misc}/Makefile (87%)
>  copy drivers/{nand_legacy => mtd}/Makefile (88%)
>  copy drivers/{nand_legacy => pci}/Makefile (88%)
>  copy drivers/{nand_legacy => pcmcia}/Makefile (87%)
>  copy drivers/{nand_legacy => sata}/Makefile (87%)
>  copy drivers/{nand_legacy => scsi}/Makefile (87%)
>  copy drivers/{nand_legacy => usb}/Makefile (88%)
>  copy drivers/{nand_legacy => video}/Makefile (87%)

Here are my comments on the layout:
>
> diff --git a/Makefile b/Makefile
> index 6410f08..57038e7 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -208,18 +208,35 @@ LIBS += disk/libdisk.a
>  LIBS += rtc/librtc.a
>  LIBS += dtt/libdtt.a
>  LIBS += drivers/libdrivers.a
> +LIBS += drivers/ata/libata.a

Merge with drivers/block

>  LIBS += drivers/bios_emulator/libatibiosemu.a
> +LIBS += drivers/block/libblock.a
> +LIBS += drivers/char/libchar.a

What is this?  how is 'char' different from 'serial'?  We don't have a
char device API, so I don't understand how this fits in.

You're moving keyboard drivers into here; so maybe merge with drivers/input.

> +LIBS += drivers/eeprom/libeeprom.a

I'm not sure about this one; it feels kind of wrong (there can be i2c
eeprom, SPI eeprom, etc).  I need to think some more...

> +LIBS += drivers/hwmon/libhwmon.a

We don't really have an hwmon api, and only one driver is being moved
there which is an i2c device.  Probably just merge with drivers/i2c.

> +LIBS += drivers/i2c/libi2c.a
> +LIBS += drivers/ide/libide.a

merge with drivers/block

> +LIBS += drivers/input/libinput.a
> +LIBS += drivers/leds/libleds.a

merge with drivers/misc

> +LIBS += drivers/misc/libmisc.a
> +LIBS += drivers/mtd/libmtd.a

eeprom and NAND might be better to go in here.


>  LIBS += drivers/nand/libnand.a
>  LIBS += drivers/nand_legacy/libnand_legacy.a

These two need to be sorted out; but that doesn't affect your patch
series... just thinking out loud.

>  LIBS += drivers/net/libnet.a
> +LIBS += drivers/pci/libpci.a
> +LIBS += drivers/pcmcia/libpcmcia.a

I'm tempted to just merge these under drivers/bus since it's not a lot
of files...  not sure though.

>  ifeq ($(CPU),mpc83xx)
>  LIBS += drivers/qe/qe.a
>  endif
>  ifeq ($(CPU),mpc85xx)
>  LIBS += drivers/qe/qe.a
>  endif
> +LIBS += drivers/sata/libsata.a

merge with drivers/block

> +LIBS += drivers/scsi/libscsi.a

merge with drivers/block

>  LIBS += drivers/serial/libserial.a
>  LIBS += drivers/sk98lin/libsk98lin.a
> +LIBS += drivers/usb/libusb.a
> +LIBS += drivers/video/libvideo.a
>  LIBS += post/libpost.a post/drivers/libpostdrivers.a
>  LIBS += $(shell if [ -d post/lib_$(ARCH) ]; then echo \
>         "post/lib_$(ARCH)/libpost$(ARCH).a"; fi)
> diff --git a/drivers/nand_legacy/Makefile b/drivers/ata/Makefile
> similarity index 88%
> copy from drivers/nand_legacy/Makefile
> copy to drivers/ata/Makefile
> index 95314d8..f93d6cb 100644
> --- a/drivers/nand_legacy/Makefile
> +++ b/drivers/ata/Makefile
> @@ -1,7 +1,7 @@
>  #
> -# (C) Copyright 2006
> +# (C) Copyright 2007
>  # Wolfgang Denk, DENX Software Engineering, wd at denx.de.
> -#
> +# Jean-Christophe PLAGNIOL-VILLARD, plagnioj at jcrosoft.com.

Really?  This is just a boilerplate Makefile where you've moved lines
from one file to another.  It's a pretty small change to be asserting
copyrights.  (I didn't make claims on the rework to drivers/Makefile
and common/Makefile which was more invasive).

Don't worry, you'll still get credit for your work.

> diff --git a/drivers/bios_emulator/Makefile b/drivers/bios_emulator/Makefile
> index 90c64da..cb0a13e 100644
> --- a/drivers/bios_emulator/Makefile
> +++ b/drivers/bios_emulator/Makefile
> @@ -6,14 +6,18 @@ X86DIR  = x86emu
>
>  $(shell mkdir -p $(obj)$(X86DIR))
>
> -COBJS  = atibios.o biosemu.o besys.o bios.o \
> -       $(X86DIR)/decode.o \
> -       $(X86DIR)/ops2.o \
> -       $(X86DIR)/ops.o \
> -       $(X86DIR)/prim_ops.o \
> -       $(X86DIR)/sys.o \
> -       $(X86DIR)/debug.o
> -
> +COBJS-y        += atibios.o
> +COBJS-y        += biosemu.o
> +COBJS-y        += besys.o
> +COBJS-y        += bios.o
> +COBJS-y        += $(X86DIR)/decode.o
> +COBJS-y        += $(X86DIR)/ops2.o
> +COBJS-y        += $(X86DIR)/ops.o
> +COBJS-y        += $(X86DIR)/prim_ops.o
> +COBJS-y        += $(X86DIR)/sys.o
> +COBJS-y        += $(X86DIR)/debug.o
> +
> +COBJS  := $(COBJS-y)
>  SRCS   := $(COBJS:.o=.c)
>  OBJS   := $(addprefix $(obj),$(COBJS))

Split this change into it's own makefile.... Actually drop this change
entirely.  It is unnecessary because all the bios emulation files are
all compiled at the same time regardless.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195

  parent reply	other threads:[~2007-10-11 20:32 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-11  8:32 [U-Boot-Users] [PATCH] drivers: initial tree import for drivers reorganization Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32 ` [U-Boot-Users] [PATCH] drivers/ata: move ata drivers to drivers/ata Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32   ` [U-Boot-Users] [PATCH] drivers/block : move block drivers to drivers/block Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32     ` [U-Boot-Users] [PATCH] drivers/char : move char drivers to drivers/char Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32       ` [U-Boot-Users] [PATCH] drivers/eeprom : move eeprom drivers to drivers/eeprom Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32         ` [U-Boot-Users] [PATCH] drivers/hwmon : move hardware monitor drviers to drivers/hwmon Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32           ` [U-Boot-Users] [PATCH] drivers/i2c : move i2c drivers to drivers/i2c Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32             ` [U-Boot-Users] [PATCH] drivers/input : move input drivers to drivers/input Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32               ` [U-Boot-Users] [PATCH] drivers/ide : move ide drivers to drivers/ide Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                 ` [U-Boot-Users] [PATCH] drivers/leds : move leds drivers to drivers/leds Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                   ` [U-Boot-Users] [PATCH] drivers/mtd : move mtd drivers to drivers/mtd Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                     ` [U-Boot-Users] [PATCH] drivers/pci : move pci drivers to drivers/pci Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                       ` [U-Boot-Users] [PATCH] drivers/pcmcia : move pcmcia drivers to drivers/pcmcia Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                         ` [U-Boot-Users] [PATCH] drivers/scsi : move scsi drivers to drivers/scsi Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                           ` [U-Boot-Users] [PATCH] drivers/usb : move usb drivers to drivers/usb Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                             ` [U-Boot-Users] [PATCH] drivers/video : move video drivers to drivers/video Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                               ` [U-Boot-Users] [PATCH] drivers/serial : move serial drivers to drivers/serial Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                 ` [U-Boot-Users] [PATCH] drivers/net : move net drivers to drivers/net Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                   ` [U-Boot-Users] [PATCH] drivers/misc : move misc drivers to drivers/misc Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                     ` [U-Boot-Users] [PATCH] drivers/rtc : move rtc drivers to drivers/rtc Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                       ` [U-Boot-Users] [PATCH] remove libdrivers reference Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                         ` [U-Boot-Users] [PATCH] drivers/misc : move files Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                           ` [U-Boot-Users] [PATCH] Makefile : fix tags ctags etags with new drivers organization Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                             ` [U-Boot-Users] [PATCH] Fix net drivers include headers Jean-Christophe PLAGNIOL-VILLARD
2007-10-11  8:32                                               ` [U-Boot-Users] [PATCH] fix specific ssi.h include when ds1722 or mw_eeprom not used Jean-Christophe PLAGNIOL-VILLARD
2007-10-11 20:11                                                 ` Grant Likely
2007-10-11 20:21                                                   ` Jean-Christophe PLAGNIOL-VILLARD
2007-10-11 20:14                                               ` [U-Boot-Users] [PATCH] Fix net drivers include headers Grant Likely
2007-10-11 20:02                                           ` [U-Boot-Users] [PATCH] drivers/misc : move files Grant Likely
2007-10-11 20:12                                             ` Grant Likely
2007-10-11 20:17                                       ` [U-Boot-Users] [PATCH] drivers/rtc : move rtc drivers to drivers/rtc Grant Likely
2007-10-11 20:16                                   ` [U-Boot-Users] [PATCH] drivers/net : move net drivers to drivers/net Grant Likely
2007-10-12  7:49                             ` [U-Boot-Users] [PATCH] drivers/usb : move usb drivers to drivers/usb Markus Klotzbücher
2007-10-13 15:14                               ` plagnioj at jcrosoft.com
2007-10-13 23:28                                 ` Haavard Skinnemoen
2007-10-15 10:31                                   ` Markus Klotzbücher
2007-10-15 10:47                                     ` Haavard Skinnemoen
2007-10-15 11:03                                     ` Wolfgang Denk
2007-10-15  8:35                                       ` plagnioj at jcrosoft.com
2007-10-16  7:09                                         ` Markus Klotzbücher
2007-10-15  9:45                                 ` Markus Klotzbücher
2007-10-11 20:18                       ` [U-Boot-Users] [PATCH] drivers/pci : move pci drivers to drivers/pci Grant Likely
2007-10-11 19:44 ` [U-Boot-Users] [PATCH] drivers: initial tree import for drivers reorganization Wolfgang Denk
2007-10-11 20:10   ` Jean-Christophe PLAGNIOL-VILLARD
2007-10-11 20:24     ` Grant Likely
2007-10-11 20:32       ` Jean-Christophe PLAGNIOL-VILLARD
2007-10-11 20:36         ` Grant Likely
2007-10-11 20:43           ` Jean-Christophe PLAGNIOL-VILLARD
2007-10-11 20:32 ` Grant Likely [this message]
2007-10-14 10:50   ` plagnioj at jcrosoft.com
2007-10-14 13:43     ` Wolfgang Denk

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=fa686aa40710111332o306f8575p715b2055cc563610@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=u-boot@lists.denx.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 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.