public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Proposal for patch to configure network parameters
@ 2007-04-20 19:22 Ulf Samuelsson
  2007-04-20 20:40 ` Timur Tabi
  2007-04-20 20:47 ` [U-Boot-Users] Proposal for patch to configure network parameters Wolfgang Denk
  0 siblings, 2 replies; 51+ messages in thread
From: Ulf Samuelsson @ 2007-04-20 19:22 UTC (permalink / raw)
  To: u-boot

U-Boot has  a number of network parameters like

CONFIG_HOSTNAME
CONFIG_IPADDR
CONFIG_GATEWAYIP
CONFIG_NETMASK
etc.

While these can be defined in an "include/configs/<board>.h",
it would be nice to be able to define this in a separate file
since they are really not board specific.
They are more dependent on the network where the machine is built.

Such a file  I.E: "include/custom.h",  would get included by
the automatically generated "config.h", after the board specific file
is included, to allow it to override any values.

In the normal distribution, this file would be empty so it will not affect
any current boards.

This would allow you to automatically analyse your machine
to find out your host ipaddress, and add an appropriate
ipaddr, netmask, gatewayip etc and overwrite the file with a custom
default network configuration before you build.

There may be other things which you want to set depending
on your host environment.

In short patches would be something similar to:

+++include/custom.h
+ #

+++mkconfig
   echo "#include <configs/$1.h>" >>config.h
+ echo "#include <custom.h>" >>config.h
   exit 0

If the idea seems acceptable, I will go ahead and generate the real patches.

Best Regards
Ulf Samuelsson

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2007-04-23 14:51 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 19:22 [U-Boot-Users] Proposal for patch to configure network parameters Ulf Samuelsson
2007-04-20 20:40 ` Timur Tabi
2007-04-20 20:49   ` Wolfgang Denk
2007-04-20 20:55   ` Ben Warren
2007-04-20 21:51     ` [U-Boot-Users] Proposal for patch to configurenetwork parameters Ulf Samuelsson
2007-04-20 23:12       ` Wolfgang Denk
2007-04-20 23:39         ` Ulf Samuelsson
2007-04-21  0:31           ` Wolfgang Denk
2007-04-21  6:07             ` Ulf Samuelsson
2007-04-21  6:17             ` Ulf Samuelsson
2007-04-22 19:56           ` Timur Tabi
2007-04-22 20:25             ` Wolfgang Denk
2007-04-22 20:30               ` Timur Tabi
2007-04-22 21:27             ` Ulf Samuelsson
2007-04-20 21:59   ` [U-Boot-Users] Proposal for patch to configure network parameters Ulf Samuelsson
2007-04-20 23:14     ` Wolfgang Denk
2007-04-20 23:46       ` [U-Boot-Users] Proposal for patch to configure networkparameters Ulf Samuelsson
2007-04-20 20:47 ` [U-Boot-Users] Proposal for patch to configure network parameters Wolfgang Denk
2007-04-20 21:35   ` [U-Boot-Users] Proposal for patch to configure networkparameters Ulf Samuelsson
2007-04-20 22:59     ` Wolfgang Denk
2007-04-20 23:29       ` Ulf Samuelsson
2007-04-21  0:25         ` Wolfgang Denk
2007-04-21  6:05           ` Ulf Samuelsson
2007-04-21 10:37             ` Robert Schwebel
2007-04-22  5:30               ` Ulf Samuelsson
2007-04-22  7:27                 ` Robert Schwebel
2007-04-22  8:45                   ` Ulf Samuelsson
2007-04-22 11:05                     ` Wolfgang Denk
2007-04-22 13:16                       ` Ulf Samuelsson
2007-04-22 13:58                         ` Wolfgang Denk
2007-04-22 14:28                           ` Ulf Samuelsson
2007-04-22 18:48                             ` Wolfgang Denk
2007-04-22 10:30                 ` Wolfgang Denk
2007-04-20 23:03   ` [U-Boot-Users] Proposal for patch to configure network parameters Timur Tabi
2007-04-20 23:29     ` Wolfgang Denk
2007-04-20 23:58       ` [U-Boot-Users] Proposal for patch to configure networkparameters Ulf Samuelsson
2007-04-21 12:41       ` [U-Boot-Users] Proposal for patch to configure network parameters Andreas Schweigstill
2007-04-22 20:11       ` Timur Tabi
2007-04-22 20:31         ` Wolfgang Denk
2007-04-22 21:50           ` [U-Boot-Users] Proposal for patch to configure networkparameters Ulf Samuelsson
2007-04-22 23:57             ` Wolfgang Denk
2007-04-23  5:43               ` Ulf Samuelsson
2007-04-23  6:46                 ` [U-Boot-Users] MPC8343 I2C problem Monstr at seznam.cz
2007-04-23 14:46                   ` Timur Tabi
2007-04-23  7:00                 ` [U-Boot-Users] MPC8343 NET without PHY Monstr at seznam.cz
2007-04-23 14:51                   ` Timur Tabi
2007-04-23  8:59                 ` [U-Boot-Users] Proposal for patch to configure networkparameters Wolfgang Denk
2007-04-23  9:24                   ` Ulf Samuelsson
2007-04-23 10:50                     ` Wolfgang Denk
2007-04-23  9:01                 ` Ulf Samuelsson
2007-04-22 21:38         ` Ulf Samuelsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox