All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Dan Malek <dan@embeddededge.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Jun Sun <jsun@mvista.com>, Ralf Baechle <ralf@linux-mips.org>,
	Linux/MIPS Development <linux-mips@linux-mips.org>
Subject: Re: CVS Update@-mips.org: linux
Date: Sat, 14 Jun 2003 20:48:22 +0200 (MET DST)	[thread overview]
Message-ID: <Pine.GSO.3.96.1030614203554.1934E-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <3EEA3B5C.2000201@embeddededge.com>

On Fri, 13 Jun 2003, Dan Malek wrote:

> >   arch/mips/platforms/platform1/...
> >                      /platform2/...
> 
>  From my experience with other architectures, fewer intermediate
> directories are often useful, for example:
> 
> 	arch/mips/platforms/board_and_chip_files
> 
> allows a maximum amount of code sharing and minimal duplication.

 What prevents one from sharing code from different directories?

> When you have lots of lower level directories, you often have
> many identical files in them that should be shared, but are not,
> causing support/update challenges.  For example:
> 
> 	arch/mips/platforms/mfg_board_common.[ch]
> 	arch/mips/platforms/mfg_board_type1.[ch]
> 	arch/mips/platforms/mfg_board_type2.[ch]
> 
> keeps all manufacturer shared code in one place, and the board
> files could be quite small.  I have the specific case right now
> with a board vendor that has about six similar boards, all in
> separate directories like this:
> 
> 	arch/mips/au1000/board1/file.c
> 	arch/mips/au1000/board2/file.c
> 	arch/mips/au1000/board3/file.c
> 
> where the code is all identical in those files.  My first move is

 IMO file.c should me moved up one level or to arch/mips/au1000/lib.

> going to be consolidation of all of the "board" directories into a
> single "manufacturer" directory just to eliminate the overhead of
> keeping all of these files consistent on updates.  Then, I'm just
> going to prefix the board type to the unique file names.  I find
> this much easier to maintain and to share code.  Common sense
> file names using a standard manufacturer/board name prefix makes
> the files just as easy to identify as separate directories.

 Identification is not a problem.  Logical separation is.  Directories
were invented for a reason.

> It would be nice to see the defconfig files in their own directory,
> that would be the single most useful way to eliminate some clutter :-)

 It sounds reasonable.  The generic defconfig of course has to be left
where it is now.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

  parent reply	other threads:[~2003-06-14 18:47 UTC|newest]

Thread overview: 143+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030613135835Z8225250-1272+2544@linux-mips.org>
2003-06-13 14:19 ` CVS Update@-mips.org: linux Geert Uytterhoeven
2003-06-13 14:30   ` Ralf Baechle
2003-06-13 17:33     ` Jun Sun
2003-06-13 18:56       ` Geert Uytterhoeven
2003-06-13 20:28         ` Maciej W. Rozycki
2003-06-13 21:00           ` Dan Malek
2003-06-13 21:44             ` Jun Sun
2003-06-13 23:23               ` Ralf Baechle
2003-06-14 18:55                 ` Maciej W. Rozycki
2003-06-14 18:48             ` Maciej W. Rozycki [this message]
2003-06-13 21:45           ` Jun Sun
     [not found] <20041218022359Z8225198-1751+3809@linux-mips.org>
2004-12-18 21:32 ` Steven J. Hill
2004-12-18 22:28   ` Maciej W. Rozycki
     [not found] <20041217205625Z8225073-1751+3779@linux-mips.org>
2004-12-18  1:04 ` Maciej W. Rozycki
     [not found] <20041216030425Z8225321-1751+3720@linux-mips.org>
2004-12-16  3:13 ` Steven J. Hill
2004-12-16  3:52 ` Maciej W. Rozycki
     [not found] <20041209220930Z8225298-1751+3401@linux-mips.org>
2004-12-09 22:21 ` Manish Lachwani
     [not found] <20041127061929Z8224786-1751+2584@linux-mips.org>
2004-11-27 22:05 ` Maciej W. Rozycki
2004-11-27 23:15   ` Ralf Baechle
2004-11-28  2:01     ` Maciej W. Rozycki
2004-11-28 11:53       ` Ralf Baechle
2004-11-28 17:44         ` Maciej W. Rozycki
2004-11-28 17:57           ` Ralf Baechle
2004-11-29 14:51         ` Jan-Benedict Glaw
     [not found] <20041020023431Z98555-1751+175@linux-mips.org>
2004-10-20 16:58 ` Thomas Koeller
2004-10-21  9:19   ` Thomas Koeller
2004-10-21 13:03     ` Ralf Baechle
2004-10-21 15:56       ` Maciej W. Rozycki
     [not found] <20040820120223Z8225206-1530+8785@linux-mips.org>
2004-08-23  9:29 ` Maciej W. Rozycki
2004-08-23  9:54   ` Kumba
2004-08-23 10:58     ` Ralf Baechle
2004-08-23 10:24   ` Ralf Baechle
2004-08-23 11:40     ` Maciej W. Rozycki
     [not found] <20040811202903Z8225206-1530+8297@linux-mips.org>
2004-08-11 20:36 ` Christoph Hellwig
2004-05-19 17:03 Manish Lachwani
     [not found] <20040519162924Z8225564-1530+2150@linux-mips.org>
2004-05-19 16:43 ` Maciej W. Rozycki
     [not found] <20040420163230Z8225288-1530+99@linux-mips.org>
2004-04-20 17:51 ` Jun Sun
2004-04-20 20:11   ` Ralf Baechle
2004-04-20 20:20     ` Pete Popov
2004-04-20 22:31     ` Jun Sun
2004-04-21  8:55       ` Gleb O. Raiko
2004-04-21 14:11       ` Maciej W. Rozycki
2004-04-21 17:20         ` Jun Sun
2004-04-21 18:04           ` Maciej W. Rozycki
     [not found] <20040322200826Z8225300-9616+4225@linux-mips.org>
2004-03-23 12:44 ` Maciej W. Rozycki
     [not found] <20040317153023Z8225229-9616+3963@linux-mips.org>
2004-03-17 15:37 ` freshy98
     [not found] <20040315205101Z8225248-9616+3861@linux-mips.org>
2004-03-16  4:11 ` Yoichi Yuasa
     [not found] <20040303034310Z8225905-9616+2989@linux-mips.org>
2004-03-03  4:09 ` Ralf Baechle
     [not found] <20040208143438Z8224987-9616+1909@linux-mips.org>
2004-02-08 14:36 ` William Lee Irwin III
2004-02-08 14:40   ` Christoph Hellwig
     [not found] <20040202141939Z8225226-9616+1555@linux-mips.org>
2004-02-02 15:13 ` Maciej W. Rozycki
2004-02-02 15:23   ` Ralf Baechle
2004-02-03 15:30     ` Maciej W. Rozycki
2004-02-03 15:49       ` Ralf Baechle
2004-02-03 16:04         ` Maciej W. Rozycki
     [not found] <20040123165755Z8225342-9616+749@linux-mips.org>
2004-01-23 17:03 ` Maciej W. Rozycki
     [not found] <20040123142002Z8225342-9616+728@linux-mips.org>
2004-01-23 16:50 ` Maciej W. Rozycki
     [not found] <20040115062800Z8225198-9616+139@linux-mips.org>
2004-01-15  9:39 ` Ralf Baechle
     [not found] <20040113080926Z8225270-16706+2387@linux-mips.org>
2004-01-13 17:22 ` Dan Aizenstros
2004-01-14 15:25   ` Maciej W. Rozycki
2004-01-14 17:34     ` Pete Popov
     [not found] <20031124151816Z8225418-16706+435@linux-mips.org>
2003-11-24 15:23 ` Jan-Benedict Glaw
     [not found] <20031103231010Z8225443-1272+8723@linux-mips.org>
2003-11-04 18:48 ` Maciej W. Rozycki
2003-11-04 18:48   ` Maciej W. Rozycki
     [not found] <20031013142637Z8225419-1272+7775@linux-mips.org>
     [not found] ` <Pine.GSO.3.96.1031014114452.17028B-100000@delta.ds2.pg.gda.pl>
2003-10-14 13:28   ` Ralf Baechle
2003-10-15 14:23     ` Maciej W. Rozycki
     [not found] <20031009160717Z8225587-1272+7472@linux-mips.org>
2003-10-10 18:56 ` Kip Walker
2003-10-10 19:03   ` Kip Walker
2003-10-11  7:27     ` Ralf Baechle
2003-10-14  9:28   ` Maciej W. Rozycki
     [not found] <20030909113150Z8225348-1272+5180@linux-mips.org>
2003-09-09 13:40 ` Maciej W. Rozycki
2003-09-10  8:51   ` Ralf Baechle
     [not found] <20030825170001Z8225388-1272+4466@linux-mips.org>
2003-08-25 17:18 ` Ralf Baechle
     [not found] <20030729120925Z8225214-1272+3844@linux-mips.org>
2003-07-29 12:20 ` Jan-Benedict Glaw
     [not found] <20030722005641Z8225235-1272+3651@linux-mips.org>
2003-07-22  1:22 ` Geert Uytterhoeven
     [not found] <20030720230140Z8224861-1272+3549@linux-mips.org>
2003-07-21 10:49 ` Maciej W. Rozycki
2003-07-21 12:12   ` Kevin D. Kissell
2003-07-21 12:12     ` Kevin D. Kissell
2003-07-21 14:44     ` Ralf Baechle
2003-07-21 15:50     ` Maciej W. Rozycki
2003-07-21 18:20       ` Keith M Wesolowski
2003-07-22 19:39         ` Maciej W. Rozycki
2003-07-22 21:21           ` Ralf Baechle
2003-07-22 21:37             ` Maciej W. Rozycki
2003-07-22 21:47               ` Geert Uytterhoeven
2003-07-22 22:51                 ` Maciej W. Rozycki
2003-07-30  2:12                   ` Ralf Baechle
2003-07-30  7:47                     ` Maciej W. Rozycki
2003-07-30 14:07                       ` Ralf Baechle
2003-07-30  3:16               ` Ralf Baechle
2003-07-30  7:55                 ` Maciej W. Rozycki
2003-07-30 14:05                   ` Ralf Baechle
2003-07-21 21:14       ` Ralf Baechle
2003-07-22 19:40         ` Maciej W. Rozycki
2003-07-21 14:42   ` Ralf Baechle
     [not found] <20030716010829Z8224802-1272+3435@linux-mips.org>
2003-07-16  1:17 ` Ralf Baechle
     [not found] <20030627191204Z8225311-1272+2885@linux-mips.org>
2003-06-27 19:46 ` Maciej W. Rozycki
2003-06-27 20:32   ` Kip Walker
2003-06-27 20:48     ` Maciej W. Rozycki
     [not found] <20030624033916Z8224827-1272+2821@linux-mips.org>
2003-06-24  9:31 ` Ralf Baechle
2003-06-24 17:51   ` Pete Popov
2003-06-24 21:10     ` Ralf Baechle
     [not found] <20030615004718Z8225220-1272+2582@linux-mips.org>
2003-06-16  1:19 ` Atsushi Nemoto
2003-06-16  1:42   ` Atsushi Nemoto
2003-06-16  1:58     ` Atsushi Nemoto
     [not found] <20030615135712Z8225205-1272+2604@linux-mips.org>
2003-06-15 15:18 ` ilya
     [not found] <20030605182419Z8224802-1272+2270@linux-mips.org>
2003-06-05 18:42 ` Guido Guenther
2003-06-05 19:45   ` Jan-Benedict Glaw
2003-06-05 20:12     ` Ralf Baechle
2003-06-09 11:12 ` Maciej W. Rozycki
2003-06-09 11:46   ` Geert Uytterhoeven
     [not found] <20030601120750Z8225197-1272+2136@linux-mips.org>
2003-06-01 14:25 ` Jan-Benedict Glaw
2003-06-01 15:56   ` Ralf Baechle
2003-06-01 16:10     ` Jan-Benedict Glaw
     [not found] <20030516221926Z8225233-1272+1964@linux-mips.org>
2003-05-16 22:27 ` Thiemo Seufer
2003-05-17 16:13   ` Maciej W. Rozycki
     [not found] <20030427233451Z8225245-1272+1630@linux-mips.org>
2003-04-30  8:55 ` Maciej W. Rozycki
     [not found] <20030424114755Z8225208-1272+1554@linux-mips.org>
2003-04-28 10:25 ` Atsushi Nemoto
2003-04-28 11:27   ` Ralf Baechle
     [not found] <20030421125733Z8225073-1272+1478@linux-mips.org>
2003-04-21 16:00 ` Ralf Baechle
     [not found] <20030412205002Z8225201-1272+1267@linux-mips.org>
2003-04-14  1:05 ` Wayne Chen
2003-04-14  1:05   ` Wayne Chen
     [not found] <20030402120316Z8225232-1272+1120@linux-mips.org>
2003-04-13 15:22 ` Karsten Merker
2003-04-14 11:57   ` Maciej W. Rozycki
2003-04-14 15:55     ` Ralf Baechle
     [not found] <20030403133610Z8225197-1272+1139@linux-mips.org>
2003-04-03 14:11 ` Maciej W. Rozycki
2003-04-03 14:24   ` Ralf Baechle
2003-04-03 14:48     ` Maciej W. Rozycki
2003-04-03 15:42       ` Ralf Baechle
2003-04-03 16:27         ` Maciej W. Rozycki
2003-04-03 16:31           ` Dominic Sweetman
2003-04-03 16:47             ` Maciej W. Rozycki
2003-04-03 22:55               ` Ralf Baechle
2003-04-03 14:51     ` Juan Quintela
     [not found] <20030306011121Z8225204-1272+770@linux-mips.org>
2003-03-26 16:52 ` Maciej W. Rozycki
     [not found] <20030220194640Z8225262-1272+600@linux-mips.org>
2003-02-21 12:32 ` Maciej W. Rozycki
2003-02-21 20:22   ` Kip Walker
2003-02-21 20:50     ` Maciej W. Rozycki
     [not found] <20030216062530Z8224847-1272+556@linux-mips.org>
2003-02-17 13:46 ` Ralf Baechle
2003-02-17 19:38   ` Pete Popov
     [not found] <20030126173616Z8225206-1272+297@linux-mips.org>
2003-01-27  6:28 ` Ralf Baechle
2003-01-27 12:04   ` Maciej W. Rozycki
     [not found] <20021102200215Z1123906-9213+801@linux-mips.org>
2002-11-02 20:12 ` Geert Uytterhoeven

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=Pine.GSO.3.96.1030614203554.1934E-100000@delta.ds2.pg.gda.pl \
    --to=macro@ds2.pg.gda.pl \
    --cc=dan@embeddededge.com \
    --cc=geert@linux-m68k.org \
    --cc=jsun@mvista.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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.