On Fri, 2005-10-14 at 14:57 -0700, Till Straumann wrote:
I have problems with creating a new BSP that inherits from powerpc/shared.
In the usual way, the BSP inherits from the shared area by using VPATH
and overrides specific files by providing its own version which is found
first on VPATH.
Sorry, I have to disagree: "VPATH is evil", and relying on VPATHS is
"bad, bad, bad design".
c/src/lib/libbsp/powerpc/shared/Makefile.am on CVS-trunk doesn't install
anything.
Shouldn't the 'shared' area just be a mere repository for files and the
'make' process never really build anything in the 'shared' area?
Well, in an ideal world, there would not be any "shared code", there
would be libraries, BSPs would like to link into and headers specifying
APIs.
The BSP would then have to explicitely mention all the files it needs/wants
and it has complete control.
That's the current status on CVS-trunk.
How would you, Ralf, address this problem?
By, entirely abandoning shared code and replacing it with libraries with
a properly defined API.
Ralf