Ronny V. Vindenes wrote:
> l=C3=B8r, 25,.09.2004 kl. 00.11 -0700, skrev Eric Anholt:=20
>>Module name: Mesa
>>Changes by: anholt@.... 04/09/25 00:11:12
>> Refactor the linux-dri config files so that linux-dri-x86 inherits fr=
>> linux-dri. Turn on -O by default (-O2 provides a slight improvement =
>> performance, at a large cost to debuggability). Turn off -fPIC on x8=
>> default. Turn on -Wall, to catch more stupid mistakes. This could b=
e both done
>> cleaner, and done for more config files, but it works for me for now.
> I've converted a couple more of config/linux* , if there's interest I
> can post a patch with all linux* when it's done (tomorrow maybe).
> I've changed it so that linux-foo-bar inherits from linux-foo which in
> turn inherits from linux, this gives nice and short files for the
> various targets and makes it easy to e.g. change linux-foo to include
> linux-icc instead of linux to compile foo* with icc.
There's lots of opportunity for inheritance in the various config=20
files. One thing to be careful of, using OOP terms, is abtract base=20
classes. That is, if 'linux-foobar' is used as a base class/config=20
but doesn't actually set all the required build variables, it=20
shouldn't show up in the list of possible configs the first time you=20
run make. See the $(TOP)/configs/current rule in the top-level Makefile.
We'd have to come up with a naming convention so that we could filter=20
out the base configs.
> I've also noticed parallel (make -jX) builds don't work 100%, I'll look
> closer into it tomorrow.
That would be good.