include/ non-config: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
PATCH 17/19 include/ non-config: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).
This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely.
All transformations are of the form:
Before:
#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
After:
#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)Signed-off-by Jon Loeliger <[email protected]>
--- include/_exports.h | 2 +- include/config_cmd_default.h | 1 - include/exports.h | 2 +- include/lcd.h | 2 +- include/mk48t59.h | 2 +- include/net.h | 6 +++--- include/pcmcia.h | 6 +++--- 7 files changed, 10 insertions(+), 11 deletions(-)
include/_exports.h +1 -1
@@ -15,7 +15,7 @@ EXPORT_FUNC(do_reset) EXPORT_FUNC(getenv) EXPORT_FUNC(setenv) EXPORT_FUNC(simple_strtoul) -#if (CONFIG_COMMANDS &CFG_CMD_I2C ) +#if (CONFIG_COMMANDS &CFG_CMD_I2C ) || defined(CONFIG_CMD_I2C ) EXPORT_FUNC(i2c_write) EXPORT_FUNC(i2c_read)#endif /* CFG_CMD_I2C */
include/config_cmd_default.h +0 -1
@@ -38,4 +38,3 @@#define CONFIG_CMD_XIMG /* Load part of Multi Image */ #endif /* _CONFIG_CMD_DEFAULT_H */ -#endif /* _CONFIG_CMD_DEFAULT_H */
include/exports.h +1 -1
@@ -23,7 +23,7 @@ void do_reset (void);unsigned long simple_strtoul (const char *cp,char **endp,unsigned int base);char *getenv (char *name);void setenv (char *varname,char *varvalue); -#if (CONFIG_COMMANDS &CFG_CMD_I2C ) +#if (CONFIG_COMMANDS &CFG_CMD_I2C ) || defined(CONFIG_CMD_I2C )int i2c_write (uchar ,uint ,int ,uchar * ,int );int i2c_read (uchar ,uint ,int ,uchar * ,int );#endif /* CFG_CMD_I2C */
include/lcd.h +1 -1
@@ -173,7 +173,7 @@ void lcd_printf (const char *fmt, ...);/************************************************************************/ /* ** BITMAP DISPLAY SUPPORT */ /************************************************************************/ -#if (CONFIG_COMMANDS &CFG_CMD_BMP ) || defined(CONFIG_SPLASH_SCREEN ) +#if (CONFIG_COMMANDS &CFG_CMD_BMP ) || defined(CONFIG_CMD_BMP ) || defined(CONFIG_SPLASH_SCREEN )# include <bmp_layout.h> # include <asm/byteorder.h> #endif /* (CONFIG_COMMANDS & CFG_CMD_BMP) || CONFIG_SPLASH_SCREEN */
include/mk48t59.h +1 -1
@@ -26,7 +26,7 @@*/ -#if defined(CONFIG_RTC_MK48T59 ) && (CONFIG_COMMANDS &CFG_CMD_DATE ) +#if defined(CONFIG_RTC_MK48T59 ) && ((CONFIG_COMMANDS &CFG_CMD_DATE ) || defined(CONFIG_CMD_DATE ))#define RTC_PORT_ADDR0 CFG_ISA_IO + 0x70#define RTC_PORT_ADDR1 RTC_PORT_ADDR0 + 0x1
include/net.h +3 -3
@@ -341,17 +341,17 @@ typedef enum { BOOTP, RARP, ARP, TFTP, DHCP, PING, DNS, NFS, CDP, NETCONS, SNTP/* from net/net.c */ extern char BootFile[128 ];/* Boot File name */ -#if (CONFIG_COMMANDS &CFG_CMD_PING ) +#if (CONFIG_COMMANDS &CFG_CMD_PING ) || defined(CONFIG_CMD_PING )extern IPaddr_t NetPingIP;/* the ip address to ping */ #endif -#if (CONFIG_COMMANDS &CFG_CMD_CDP ) +#if (CONFIG_COMMANDS &CFG_CMD_CDP ) || defined(CONFIG_CMD_CDP )/* when CDP completes these hold the return values */ extern ushort CDPNativeVLAN;extern ushort CDPApplianceVLAN;#endif -#if (CONFIG_COMMANDS &CFG_CMD_SNTP ) +#if (CONFIG_COMMANDS &CFG_CMD_SNTP ) || defined(CONFIG_CMD_SNTP )extern IPaddr_t NetNtpServerIP;/* the ip address to NTP */ extern int NetTimeOffset;/* offset time from UTC */ #endif
include/pcmcia.h +3 -3
@@ -31,8 +31,8 @@* Allow configuration to select PCMCIA slot, * or try to generate a useful default */ -#if (CONFIG_COMMANDS &CFG_CMD_PCMCIA ) || \ - ((CONFIG_COMMANDS &CFG_CMD_IDE ) && \ +#if (CONFIG_COMMANDS &CFG_CMD_PCMCIA ) || defined(CONFIG_CMD_PCMCIA ) || \ + (((CONFIG_COMMANDS &CFG_CMD_IDE ) || defined(CONFIG_CMD_IDE )) && \ (defined(CONFIG_IDE_8xx_PCCARD) || defined(CONFIG_IDE_8xx_DIRECT) ) )#if !defined(CONFIG_PCMCIA_SLOT_A ) && !defined(CONFIG_PCMCIA_SLOT_B )
@@ -313,7 +313,7 @@ extern u_int *pcmcia_pgcrx[];#define PCMCIA_PGCRX (slot) (*pcmcia_pgcrx[slot])#endif -#if (CONFIG_COMMANDS &CFG_CMD_IDE ) && defined(CONFIG_IDE_8xx_PCCARD) \ +#if ((CONFIG_COMMANDS &CFG_CMD_IDE ) || defined(CONFIG_CMD_IDE )) && defined(CONFIG_IDE_8xx_PCCARD) \ || defined(CONFIG_PXA_PCMCIA )extern int check_ide_device (int slot);#endif
Signature · 1 line
1.5.2.1.239.g75d8