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