[U-Boot] [PATCH] Compilation under Cygwin

Hello.
I am attempting to compile U-Boot under Cygwin (up to date, it's not and old version or anything) and noticed that "make" fails due to GCC not recognising "inline" modifiers to functions:
scripts/kconfig/list.h:81:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ static inline void __list_add(struct list_head *_new, ^ scripts/kconfig/list.h:99:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ static inline void list_add_tail(struct list_head *_new, struct list_head *head) ^ scripts/kconfig/list.h:111:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ static inline void __list_del(struct list_head *prev, struct list_head *next) ^
Amongst others. See also http://www.programdevelop.com/5356097/ for another developer who experienced the same issue.
Apparenly this is caused by a system-dependent condition in /Makefile, which forces GCC to run in ANSI mode, and as "inline" isn't C89, compilation fails. Removing this condition does the trick.
Patch attached
participants (1)
-
Marcos Vives Del Sol