zephyr: Change main function to return an int.
Zephyr v3.4.0 changed the declaration of the main function to return an int to allow building Zephyr without the -ffreestanding compiler flag. Signed-off-by: Maureen Helm <maureen.helm@analog.com>
This commit is contained in:
parent
90c5b04a97
commit
a7ae3a385e
@ -29,11 +29,13 @@
|
|||||||
int real_main(void);
|
int real_main(void);
|
||||||
int mp_console_init(void);
|
int mp_console_init(void);
|
||||||
|
|
||||||
void main(void) {
|
int main(void) {
|
||||||
#ifdef CONFIG_CONSOLE_SUBSYS
|
#ifdef CONFIG_CONSOLE_SUBSYS
|
||||||
mp_console_init();
|
mp_console_init();
|
||||||
#else
|
#else
|
||||||
zephyr_getchar_init();
|
zephyr_getchar_init();
|
||||||
#endif
|
#endif
|
||||||
real_main();
|
real_main();
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user