All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Make getenv_IPaddr() global
Date: Thu, 31 Dec 2009 06:31:52 +0100	[thread overview]
Message-ID: <4B3C3748.6040109@googlemail.com> (raw)
In-Reply-To: <f8328f7c0912301331m7ae655c0ke6891526776cf0c3@mail.gmail.com>

On 30.12.2009 22:31, Ben Warren wrote:
> Hi Dirk,
>
> On Wed, Dec 30, 2009 at 6:36 AM, Dirk Behme<dirk.behme@googlemail.com>wrote:
>
>> There are boards out there that do not have network support in
>> U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This
>> makes it desirable to be able to port network configuration (like
>> the IP address) to the Linux kernel.
>>
>> We should not make the passing of the IP configuration to Linux
>> dependent on U-Boot features / settings.
>>
>> For this, make getenv_IPaddr() global. This fixes build error
>>
>> u-boot/lib_xxx/board.c:360: undefined reference to `getenv_IPaddr'
>>
>> on various architectures.
>>
>> Signed-off-by: Dirk Behme<dirk.behme@googlemail.com>
>>
>> ---
>>
>> This makes other patches trying to fix this issue obsolete. E.g.
>>
>> http://lists.denx.de/pipermail/u-boot/2009-December/065809.html
>> http://lists.denx.de/pipermail/u-boot/2009-December/065810.html
>> http://lists.denx.de/pipermail/u-boot/2009-December/065822.html
>>
>> See
>>
>> http://lists.denx.de/pipermail/u-boot/2009-December/065833.html
>> http://lists.denx.de/pipermail/u-boot/2009-December/065847.html
>> http://lists.denx.de/pipermail/u-boot/2009-December/065848.html
>>
>> for further details.
>>
>>   lib_generic/Makefile    |    1
>>   lib_generic/net_utils.c |   57
>> ++++++++++++++++++++++++++++++++++++++++++++++++
>>   net/net.c               |   26 ---------------------
>>   3 files changed, 58 insertions(+), 26 deletions(-)
>>
>> Index: u-boot-main/lib_generic/Makefile
>> ===================================================================
>> --- u-boot-main.orig/lib_generic/Makefile
>> +++ u-boot-main/lib_generic/Makefile
>> @@ -41,6 +41,7 @@ COBJS-y += gunzip.o
>>   COBJS-y += lmb.o
>>   COBJS-y += ldiv.o
>>   COBJS-$(CONFIG_MD5) += md5.o
>> +COBJS-y += net_utils.o
>>   COBJS-y += sha1.o
>>   COBJS-$(CONFIG_SHA256) += sha256.o
>>   COBJS-y += string.o
>> Index: u-boot-main/lib_generic/net_utils.c
>> ===================================================================
>> --- /dev/null
>> +++ u-boot-main/lib_generic/net_utils.c
>>
>
> I agree that this function should be generic, but it's more of an
> environment function than a networking one.  Why not put this somewhere like
> common/env_common.c or create a new file called common/env_net.c?

Because Wolfgang proposed lib_generic/net_utils.c

http://lists.denx.de/pipermail/u-boot/2009-December/065848.html

I don't care where to put it, please discuss this with Wolfgang ;)

Best regards

Dirk

  reply	other threads:[~2009-12-31  5:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-30 14:36 [U-Boot] [PATCH] Make getenv_IPaddr() global Dirk Behme
2009-12-30 21:31 ` Ben Warren
2009-12-31  5:31   ` Dirk Behme [this message]
2010-01-02 23:50   ` Wolfgang Denk
2010-01-03  3:09     ` Ben Warren

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=4B3C3748.6040109@googlemail.com \
    --to=dirk.behme@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.