xref: /openbmc/u-boot/include/config_uncmd_spl.h (revision ecd4551f)
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 
28 #ifndef __CONFIG_UNCMD_SPL_H__
29 #define __CONFIG_UNCMD_SPL_H__
30 
31 #ifdef CONFIG_SPL_BUILD
32 /* SPL needs only BOOTP + TFTP so undefine other stuff to save space */
33 #undef CONFIG_CMD_CDP
34 #undef CONFIG_CMD_DHCP
35 #undef CONFIG_CMD_DNS
36 #undef CONFIG_CMD_LINK_LOCAL
37 #undef CONFIG_CMD_NFS
38 #undef CONFIG_CMD_PING
39 #undef CONFIG_CMD_RARP
40 #undef CONFIG_CMD_SNTP
41 #undef CONFIG_CMD_TFTPPUT
42 #undef CONFIG_CMD_TFTPSRV
43 #endif /* CONFIG_SPL_BUILD */
44 #endif /* __CONFIG_UNCMD_SPL_H__ */
45