From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Breakage of board ports on new features.
Date: Mon, 04 Dec 2006 10:14:36 -0600 [thread overview]
Message-ID: <4574496C.7040806@freescale.com> (raw)
In-Reply-To: <CF774E5E-8B40-432B-A6CE-A0788CE20BF3@gmail.com>
Pantelis Antoniou wrote:
> Hi there,
>
> So I'm cleaning my new 834x board in the time period of just two days.
I've been working on 834x changes for several months now, including adding
support for the Freescale 8349 ITX.
> There's a commit with a bunch of 834x related fixes which totally broke
> the board port.
Sorry. That patches were originally submitted back in September. I guess you
didn't see them.
> I understand that the main code is volatile, but it seems there's a
> blatant
> disregard of keeping up a minimum of backwards compatibility.
I wouldn't say it's a blatant disregard. Every time we add support for a new
board, we need to consider code consolidation. That often requires changes to
core code that affects all the boards.
I have no knowledge of your board and your work. If I had, I would have tried
to accommodate you as much as possible.
> If someone changes code that's supporting a bunch of board ports, please
> put in some default macros to ensure past behaviour is preserved.
>
> I.e. in this case the CONFIG_MPC8349 & CFG_FLASH_SIZE could have easily
> been defined with the defaults values for the non updated board ports to
> continue working.
CONFIG_MPC8349 should only be defined on 8349 boards, so there's no way to have
a default value. Either you have an 8349 or you don't.
CFG_FLASH_SIZE has always been a part of U-Boot, it just that it was never used
on 83xx boards. When my change to start.S that used that macro was introduced,
we debated whether I should add some kind of default value, but Wolfgang said
no. It makes sense, considering the solution was to add this in start.S:
#ifndef CFG_FLASH_SIZE
#define CFG_FLASH_SIZE 8
#endif
You definitely do not want to introduce code like that into U-Boot, or any project.
I have a list of about a dozen significant changes that I want to make to
U-Boot, many of which will change core files (and break board ports again). The
only thing I can do is make my intentions known in advance.
--
Timur Tabi
Linux Kernel Developer @ Freescale
prev parent reply other threads:[~2006-12-04 16:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-02 22:08 [U-Boot-Users] Breakage of board ports on new features Pantelis Antoniou
2006-12-02 23:42 ` Wolfgang Denk
2006-12-04 17:32 ` Kumar Gala
2006-12-04 17:54 ` Timur Tabi
2006-12-04 18:40 ` Kumar Gala
2006-12-04 23:09 ` Wolfgang Denk
2006-12-04 23:20 ` Timur Tabi
2006-12-04 23:33 ` Kumar Gala
2006-12-05 1:13 ` Tolunay Orkun
2006-12-05 2:10 ` Kumar Gala
2006-12-05 5:15 ` Tolunay Orkun
2006-12-05 5:32 ` Wolfgang Denk
2006-12-05 14:23 ` Kumar Gala
2006-12-05 15:35 ` Wolfgang Denk
2006-12-05 16:15 ` Kumar Gala
2006-12-05 16:57 ` Wolfgang Denk
2006-12-05 17:42 ` Kumar Gala
2006-12-05 17:44 ` Timur Tabi
2006-12-05 21:35 ` Wolfgang Denk
2006-12-05 21:50 ` Kumar Gala
2006-12-05 16:36 ` Timur Tabi
2006-12-04 23:08 ` Wolfgang Denk
2006-12-04 16:14 ` Timur Tabi [this message]
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=4574496C.7040806@freescale.com \
--to=timur@freescale.com \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox