
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