diff options
Diffstat (limited to 'include/configs/amcc-common.h')
| -rw-r--r-- | include/configs/amcc-common.h | 25 | 
1 files changed, 11 insertions, 14 deletions
| diff --git a/include/configs/amcc-common.h b/include/configs/amcc-common.h index 056a22a68..9d0c80b92 100644 --- a/include/configs/amcc-common.h +++ b/include/configs/amcc-common.h @@ -189,14 +189,11 @@  #define CONFIG_ADDMISC	"addmisc=setenv bootargs ${bootargs}\0"  #endif -#define xstr(s)	str(s) -#define str(s)	#s -  /*   * General common environment variables shared on all AMCC eval boards   */  #define CONFIG_AMCC_DEF_ENV						\ -	"netdev=" xstr(CONFIG_USE_NETDEV) "\0"				\ +	"netdev=" __stringify(CONFIG_USE_NETDEV) "\0"				\  	"nfsargs=setenv bootargs root=/dev/nfs rw "			\  		"nfsroot=${serverip}:${rootpath}\0"			\  	"ramargs=setenv bootargs root=/dev/ram rw\0"			\ @@ -204,15 +201,15 @@  		"ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}"	\  		":${hostname}:${netdev}:off panic=1\0"			\  	"addtty=setenv bootargs ${bootargs}"				\ -		" console=" xstr(CONFIG_USE_TTY) ",${baudrate}\0"	\ +		" console=" __stringify(CONFIG_USE_TTY) ",${baudrate}\0"	\  	CONFIG_ADDMISC							\  	"initrd_high=30000000\0"					\  	"kernel_addr_r=1000000\0"					\  	"fdt_addr_r=1800000\0"						\  	"ramdisk_addr_r=1900000\0"					\ -	"hostname=" xstr(CONFIG_HOSTNAME) "\0"				\ -	"bootfile=" xstr(CONFIG_HOSTNAME) "/uImage\0"			\ -	"ramdisk_file=" xstr(CONFIG_HOSTNAME) "/uRamdisk\0"		\ +	"hostname=" __stringify(CONFIG_HOSTNAME) "\0"				\ +	"bootfile=" __stringify(CONFIG_HOSTNAME) "/uImage\0"			\ +	"ramdisk_file=" __stringify(CONFIG_HOSTNAME) "/uRamdisk\0"		\  	CONFIG_AMCC_DEF_ENV_ROOTPATH  /* @@ -234,7 +231,7 @@  	"net_self=run net_self_load;"					\  		"run ramargs addip addtty addmisc;"			\  		"bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}\0" \ -	"fdt_file=" xstr(CONFIG_HOSTNAME) "/" xstr(CONFIG_HOSTNAME) ".dtb\0" +	"fdt_file=" __stringify(CONFIG_HOSTNAME) "/" __stringify(CONFIG_HOSTNAME) ".dtb\0"  /*   * Default environment for arch/ppc booting, @@ -263,15 +260,15 @@  		"bootm ${kernel_addr_r}\0"  #define CONFIG_AMCC_DEF_ENV_NOR_UPD					\ -	"u-boot=" xstr(CONFIG_HOSTNAME) "/u-boot.bin\0"			\ +	"u-boot=" __stringify(CONFIG_HOSTNAME) "/u-boot.bin\0"		\  	"load=tftp 200000 ${u-boot}\0"					\ -	"update=protect off " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;"	\ -		"era " xstr(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;"		\ -		"cp.b ${fileaddr} " xstr(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \ +	"update=protect off " __stringify(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;"	\ +		"era " __stringify(CONFIG_SYS_MONITOR_BASE) " FFFFFFFF;"	\ +		"cp.b ${fileaddr} " __stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \  	"upd=run load update\0"						\  #define CONFIG_AMCC_DEF_ENV_NAND_UPD					\ -	"u-boot-nand=" xstr(CONFIG_HOSTNAME) "/u-boot-nand.bin\0"	\ +	"u-boot-nand=" __stringify(CONFIG_HOSTNAME) "/u-boot-nand.bin\0"\  	"nload=tftp 200000 ${u-boot-nand}\0"				\  	"nupdate=nand erase 0 100000;nand write 200000 0 100000\0"	\  	"nupd=run nload nupdate\0" |