From 93ea89f0d979a000e4c47dd8a8991328b2ac8cf7 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Sun, 23 Sep 2012 17:41:23 +0200 Subject: COMMON: Use __stringify() instead of xstr() Kill multiple occurances and redeclaration of xstr in favor of __stringify(). Signed-off-by: Marek Vasut Cc: Wolfgang Denk --- include/configs/MPC8308RDB.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include/configs/MPC8308RDB.h') diff --git a/include/configs/MPC8308RDB.h b/include/configs/MPC8308RDB.h index 2d48dde808..a1fbece8e8 100644 --- a/include/configs/MPC8308RDB.h +++ b/include/configs/MPC8308RDB.h @@ -556,9 +556,6 @@ #define CONFIG_BOOTDELAY 5 /* -1 disables auto-boot */ -#define xstr(s) str(s) -#define str(s) #s - #define CONFIG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \ "consoledev=ttyS0\0" \ @@ -592,10 +589,10 @@ "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \ "bootcmd=run flash_self\0" \ "load=tftp ${loadaddr} ${u-boot}\0" \ - "update=protect off " xstr(CONFIG_SYS_MONITOR_BASE) \ - " +${filesize};era " xstr(CONFIG_SYS_MONITOR_BASE) \ + "update=protect off " __stringify(CONFIG_SYS_MONITOR_BASE) \ + " +${filesize};era " __stringify(CONFIG_SYS_MONITOR_BASE)\ " +${filesize};cp.b ${fileaddr} " \ - xstr(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \ + __stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \ "upd=run load update\0" \ #endif /* __CONFIG_H */ -- cgit v1.2.3