config_uncmd_spl.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * (C) Copyright 2012
  3. * Ilya Yanok, ilya.yanok@gmail.com
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc.
  21. *
  22. * We don't use any commands in SPL, but generic networking code
  23. * has some features enabled/disabled based on CONFIG_CMD_*
  24. * options. As we want a minimal set of features included
  25. * into network SPL image, we undefine some config options here.
  26. */
  27. #ifndef __CONFIG_UNCMD_SPL_H__
  28. #define __CONFIG_UNCMD_SPL_H__
  29. #ifdef CONFIG_SPL_BUILD
  30. /* SPL needs only BOOTP + TFTP so undefine other stuff to save space */
  31. #undef CONFIG_CMD_CDP
  32. #undef CONFIG_CMD_DHCP
  33. #undef CONFIG_CMD_DNS
  34. #undef CONFIG_CMD_LINK_LOCAL
  35. #undef CONFIG_CMD_NFS
  36. #undef CONFIG_CMD_PING
  37. #undef CONFIG_CMD_RARP
  38. #undef CONFIG_CMD_SNTP
  39. #undef CONFIG_CMD_TFTPPUT
  40. #undef CONFIG_CMD_TFTPSRV
  41. #endif /* CONFIG_SPL_BUILD */
  42. #endif /* __CONFIG_UNCMD_SPL_H__ */