From: Brent Cook <bcook@bpointsys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Improve U-Boot Porting Guide in the README
Date: Thu, 16 Jul 2009 17:44:51 -0500 [thread overview]
Message-ID: <200907161744.51888.bcook@bpointsys.com> (raw)
In-Reply-To: <20090716004258.GA16844@cideas.com>
On Wednesday 15 July 2009 07:42:59 pm Jerry Van Baren wrote:
> Update for...
> * BDI2000 -> BDI3000 (BDI2000 is obsolete).
> * Add a line to read the doc/README.* files
> * Fix coding standard violations
>
> Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
> ---
> Dear Wolfgang,
>
> I was looking at the Porting Guide and realized it needed some updating.
This is hilarious, though I am curious what the real-world analog to
'return 0;' is :)
- Brent
> Thanks,
> gvb
>
> README | 60 ++++++++++++++++++++++++++++++++++++------------------------
> 1 files changed, 36 insertions(+), 24 deletions(-)
>
> diff --git a/README b/README
> index de700bd..ca415d3 100644
> --- a/README
> +++ b/README
> @@ -3992,15 +3992,15 @@ U-Boot Porting Guide:
> list, October 2002]
>
>
> -int main (int argc, char *argv[])
> +int main(int argc, char *argv[])
> {
> sighandler_t no_more_time;
>
> - signal (SIGALRM, no_more_time);
> - alarm (PROJECT_DEADLINE - toSec (3 * WEEK));
> + signal(SIGALRM, no_more_time);
> + alarm(PROJECT_DEADLINE - toSec (3 * WEEK));
>
> if (available_money > available_manpower) {
> - pay consultant to port U-Boot;
> + Pay consultant to port U-Boot;
> return 0;
> }
>
> @@ -4008,35 +4008,47 @@ int main (int argc, char *argv[])
>
> Subscribe to u-boot mailing list;
>
> - if (clueless) {
> - email ("Hi, I am new to U-Boot, how do I get started?");
> - }
> + if (clueless)
> + email("Hi, I am new to U-Boot, how do I get started?");
>
> while (learning) {
> Read the README file in the top level directory;
> - Read http://www.denx.de/twiki/bin/view/DULG/Manual ;
> + Read http://www.denx.de/twiki/bin/view/DULG/Manual;
> + Read applicable doc/*.README;
> Read the source, Luke;
> + /* find . -name "*.[chS]" | xargs grep -i <keyword> */
> }
>
> - if (available_money > toLocalCurrency ($2500)) {
> - Buy a BDI2000;
> - } else {
> + if (available_money > toLocalCurrency ($2500))
> + Buy a BDI3000;
> + else
> Add a lot of aggravation and time;
> - }
> -
> - Create your own board support subdirectory;
>
> - Create your own board config file;
> -
> - while (!running) {
> - do {
> - Add / modify source code;
> - } until (compiles);
> - Debug;
> - if (clueless)
> - email ("Hi, I am having problems...");
> + if (a similar board exists) { /* hopefully... */
> + cp -a board/<similar> board/<myboard>
> + cp include/configs/<similar>.h include/configs/<myboard>.h
> + } else {
> + Create your own board support subdirectory;
> + Create your own board include/configs/<myboard>.h file;
> + }
> + Edit new board/<myboard> files
> + Edit new include/configs/<myboard>.h
> +
> + while (!accepted) {
> + while (!running) {
> + do {
> + Add / modify source code;
> + } until (compiles);
> + Debug;
> + if (clueless)
> + email("Hi, I am having problems...");
> + }
> + Send patch file to the U-Boot email list;
> + if (reasonable critiques)
> + Incorporate improvements from email list code review;
> + else
> + Defend code as written;
> }
> - Send patch file to Wolfgang;
>
> return 0;
> }
next prev parent reply other threads:[~2009-07-16 22:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-16 0:42 [U-Boot] [PATCH] Improve U-Boot Porting Guide in the README Jerry Van Baren
2009-07-16 19:46 ` Wolfgang Denk
2009-07-16 22:44 ` Brent Cook [this message]
2009-07-17 5:38 ` Wolfgang Denk
2009-07-17 12:23 ` Jerry Van Baren
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=200907161744.51888.bcook@bpointsys.com \
--to=bcook@bpointsys.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