[U-Boot] [PATCH v2 0/6] Reduce code size of libnet

Simon Glass sjg at chromium.org
Thu Oct 27 18:24:26 CEST 2011


This patch series should change no functionality, but just reduce code size
slightly to what it was before the tftpput series.

Each patch is independent and each can be accepted or rejected as required.
Overall the effect is to reduce the code size to about 36 bytes lower
than it was before tftp when in on ARMv7 and PowerPC (IAD210) with my
toolchains.

Since this changes core net code, it needs to be examined carefully.

Changes in v2:
- Add net_transfer() fix
- Add patch with #ifdefs for cases which can only happen with tftpput
- Fix commit message to say memset() instead of memcpy()

Simon Glass (6):
  net: Hide more code behind CONFIG_CMD_TFTPPUT
  net: Make net_transfer() a static function
  net: Add more #ifdefs for tftpput to reduce code size
  net: Change for loop to memset()
  net: Be less picky about decoding the netretry env var
  net: Export auto_load, use it in rarp

 README        |    4 ++++
 include/net.h |    6 ++++++
 net/bootp.c   |   34 ++--------------------------------
 net/net.c     |   52 +++++++++++++++++++++++++++++++++++++++++++---------
 net/rarp.c    |   18 +-----------------
 net/tftp.c    |   19 +++++++++++++++----
 6 files changed, 71 insertions(+), 62 deletions(-)

-- 
1.7.3.1



More information about the U-Boot mailing list