public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marc Singer <elf@buici.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Preparing a KEV7a400 patch
Date: Wed, 6 Aug 2003 15:34:27 -0700	[thread overview]
Message-ID: <20030806223427.GA7826@buici.com> (raw)
In-Reply-To: <20030806222224.0632FC59E4@atlas.denx.de>

On Thu, Aug 07, 2003 at 12:22:19AM +0200, Wolfgang Denk wrote:
> Dear Marc,
> 
> in message <20030806191635.GA2601@buici.com> you wrote:
> > I've successfully ported u-boot to the Sharp KEV7A400 board.  It can
> > program flash, boot from the network, and it runs from flash.
> >
> > Before I submit a patch, I believe there are a couple of outstanding
> > issues that you,  Wolfgang, want resolved.
> >
> >  1) Dependency on Perl
> >
> >     Are you OK with an initial patch that checks for the presence of a
> >     Perl interpreter?  Since this is the only board using the
> >     mkocnfigx script, such a method will be backward compatible.  I
> >     agree that a shell script of the Perl script must be written.
> 
> Can you please split your patch in two separate parts: one  with  the
> support for the new Sharp KEV7A400 board, and another one to use your
> Perl script?

That's an interesting request.  There isn't really a way to separate
them this way since the configuration control script is used to divide
the LHA7A400 implementation of the ARM920 from the Samsung
implementation.

> Did you address the issues I raised with this script  last  time  you
> showed it to me?

I've rewritten the generation script using text tools.  It is
attached.  It uses the preprocessor to generate the list of #defines,
so I think that it better matches your expectations.

Cheers.
-------------- next part --------------
#!/bin/sh
#
# mkconfigx
#
# Copyright (c) 2003
# Marc Singer <elf@buici.com>
#
# Generate a configuration file to control building
# (compiling/linking).  The output may be included in Makefiles to
# select which source files to compile and link.
#
# Here, we select configuration entries of the form:
#  
#  #define CONFIG_XXX 1
#
# where XXX is an enabled configuration option.
# 
#
# About CPP
# ---------
#
# The macro CPP may refer to 'gcc -E'.  This definition is not
# compatible with this use of the preprocessor because the input file
# is a header and not a source file.  Should there be a dependency on
# a target-specific macro, another method must be found.
#

CONFIG=configx.mk

CPP=cpp
[ -z "$GREP" ] && GREP=grep
[ -z "$SED" ]  && SED=sed
[ -z "$SORT" ] && SORT=sort

echo > $CONFIG
echo "# Automatically generated - do not edit" >> $CONFIG
echo >> $CONFIG

$CPP -Iinclude -dM include/config.h\
  | $GREP -E "define[ \t]+CONFIG_[^ \t]*[ \t]+1$"\
  | $SED -e "s/.*\(CONFIG_[^ \t]*\).*/\1=y/"\
  | $SORT\
  >> $CONFIG

  reply	other threads:[~2003-08-06 22:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-06 19:16 [U-Boot-Users] Preparing a KEV7a400 patch Marc Singer
2003-08-06 22:22 ` Wolfgang Denk
2003-08-06 22:34   ` Marc Singer [this message]
2003-08-06 23:30     ` Wolfgang Denk
2003-08-07  0:47       ` Marc Singer
2003-08-07 12:51         ` Wolfgang Denk
2003-08-07 17:54           ` Marc Singer

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=20030806223427.GA7826@buici.com \
    --to=elf@buici.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