• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂6e303a57b354fdb34f94058befa0254ebbd231af (tree)
時間2016-03-23 02:49:29
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

SPL: CONFIG_SPL_SERIAL_SUPPORT disabled fix.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Change Summary

差異

--- a/include/common.h
+++ b/include/common.h
@@ -856,15 +856,13 @@ int tstc(void);
856856 #if defined(CONFIG_SPL_BUILD) && !defined(CONFIG_SPL_SERIAL_SUPPORT)
857857 #define putc(...) do { } while (0)
858858 #define puts(...) do { } while (0)
859-#define printf(...) do { } while (0)
860-#define vprintf(...) do { } while (0)
861859 #else
862860 void putc(const char c);
863861 void puts(const char *s);
862+#endif
864863 int printf(const char *fmt, ...)
865864 __attribute__ ((format (__printf__, 1, 2)));
866865 int vprintf(const char *fmt, va_list args);
867-#endif
868866
869867 /* stderr */
870868 #define eputc(c) fputc(stderr, c)
--- a/include/exports.h
+++ b/include/exports.h
@@ -11,11 +11,13 @@ struct spi_slave;
1111
1212 /* These are declarations of exported functions available in C code */
1313 unsigned long get_version(void);
14+#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_SERIAL_SUPPORT)
1415 int getc(void);
1516 int tstc(void);
1617 void putc(const char);
1718 void puts(const char*);
1819 int printf(const char* fmt, ...);
20+#endif
1921 void install_hdlr(int, interrupt_handler_t, void*);
2022 void free_hdlr(int);
2123 void *malloc(size_t);
@@ -24,7 +26,9 @@ void free(void*);
2426 #endif
2527 void __udelay(unsigned long);
2628 unsigned long get_timer(unsigned long);
29+#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_SERIAL_SUPPORT)
2730 int vprintf(const char *, va_list);
31+#endif
2832 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base);
2933 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res);
3034 char *getenv (const char *name);
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -83,9 +83,9 @@ obj-$(CONFIG_LIB_RAND) += rand.o
8383 ifdef CONFIG_SPL_BUILD
8484 # SPL U-Boot may use full-printf, tiny-printf or none at all
8585 ifdef CONFIG_USE_TINY_PRINTF
86-obj-$(CONFIG_SPL_SERIAL_SUPPORT) += tiny-printf.o panic.o strto.o
86+obj-y += tiny-printf.o panic.o strto.o
8787 else
88-obj-$(CONFIG_SPL_SERIAL_SUPPORT) += vsprintf.o panic.o strto.o
88+obj-y += vsprintf.o panic.o strto.o
8989 endif
9090 else
9191 # Main U-Boot always uses the full printf support