[8026] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: [KBUILD] Re: SCSI Makefile cleanup

daemon@ATHENA.MIT.EDU (Peter Samuelson)
Sun Feb 6 22:04:30 2000

From: Peter Samuelson <peter@cadcamlab.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Date:   Sun,  6 Feb 2000 21:01:20 -0600 (CST)
To: willy@thepuffingroup.com
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kbuild@torque.net,
	linux-kernel@vger.rutgers.edu, linux-scsi@vger.rutgers.edu
Message-ID: <14494.12717.748245.376001@wire.cadcamlab.org>


[willy@thepuffingroup.com]
> Oh, drat.  I didn't reorder the lines in the file, but I did then use
> $(sort $(obj_y)) to remove duplicates.  I don't think duplicates
> really matter, it was just an optimisation.  If that sort is removed,
> how does it look?

Hmmmm.  You could split out the three files that could be duplicated
(wd33c93.o, 53c7xx.o, NCR53C9x.o) from everything else...

  -obj_$(CONFIG_SCSI_SGIWD93) += sgiwd93.o wd33c93.o
  +obj_$(CONFIG_SCSI_SGIWD93) += sgiwd93.o
  +auxobj_$(CONFIG_SCSI_SGIWD93) += wd33c93.o

  -obj_$(CONFIG_SCSI_MCA_53C9X) += NCR53C9x.o mca_53c9x.o
  +obj_$(CONFIG_SCSI_MCA_53C9X) += mca_53c9x.o
  +auxobj_$(CONFIG_SCSI_MCA_53C9X) += NCR53C9x.o

Then you can optimize auxobj_y and auxobj_m without touching obj_y.

A hack?  Yes, horrible.  But I would still like it better than the
current makefile.

Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post