From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Linz Date: Tue, 18 Nov 2003 16:21:15 +0100 Subject: [U-Boot-Users] u-boot and NIOS dk 1s10 board In-Reply-To: <1B1B671D73FED2119B1000A0C9B8A9600108ED04@ORBNET> References: <1B1B671D73FED2119B1000A0C9B8A9600108ED04@ORBNET> Message-ID: <03111816211506.23084@pcj86> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Dienstag, 18. November 2003 15:13 schrieb Scott McNutt: > Hi All, > > I agree with all of the comments I have seen so far WRT > Nios configuration issues. My primary motivation is to make > sure Nios users new to u-boot, can build a __working__ version > of u-boot by simply: > > $ make DK1C20_config | DK1S10_config | etc. > $ make > > As long as this holds true, I'm happy :-) Yes, right. > > > Yes, of course. We have to make different configuration > > files -- one for each board. But, do we really need different > > board directories with almost the same code in it? > > u-boot has a clever mechanism we can use to avoid code > duplication by using the VENDOR make variable. A good > example is in board/siemens: the SCM and CCM boards > both share common code. Sounds interesting. I will spend some time on it next weekend. > > Since this mechanism is supported ... and it is being used by > other board families, we can do the same. It's a bit more > work ... but I believe it will satisfy everyone :-) > > > Ex.: My current Stratix patch is based on the Cyclone board, > > because both boards are equal in context of u-boot basics need. > > Only the second serial i/f differs (not needed til now). So there > > will be more identicalness than differences for both boards. > > Understood. We can create board/altera_nios (or some other > meaningful name) and take advantage of the VENDOR variable > to accommodate common code. Stephen & Patrice, please let > me know your thoughts. Hmm, sounds good to me. More comments next week. I have to look up the VENDOR make mechanism and play with it. I don't know more about it. br, Stephan