feat: 在riscv32_virt中新增graphic适配,将musl调整为newlib

在riscv32_virt中新增graphic适配,将riscv32_virt编译从musl调整为newlib。

fix #I52IID

Signed-off-by: xiexg-dc <xiexg@digitalchina.com>
Change-Id: I1a774666609172c5de6310fe43b33185f86ac872
This commit is contained in:
xiexg-dc 2022-04-13 15:05:51 +08:00
parent 56565beeb6
commit 8746f5abe5
2 changed files with 40 additions and 0 deletions

View File

@ -35,4 +35,10 @@
#define O_NDELAY _FNDELAY #define O_NDELAY _FNDELAY
#ifdef __riscv
#ifndef O_CLOEXEC
#define O_CLOEXEC 02000000
#endif
#endif /* __riscv */
#endif /* !_ADAPT_SYS_FCNTL_H */ #endif /* !_ADAPT_SYS_FCNTL_H */

View File

@ -37,4 +37,38 @@
#include_next <time.h> #include_next <time.h>
#ifdef __riscv
#ifndef CLOCK_MONOTONIC_RAW
#define CLOCK_MONOTONIC_RAW 12
#endif
#ifndef CLOCK_REALTIME_COARSE
#define CLOCK_REALTIME_COARSE 5
#endif
#ifndef CLOCK_MONOTONIC_COARSE
#define CLOCK_MONOTONIC_COARSE 6
#endif
#ifndef CLOCK_BOOTTIME
#define CLOCK_BOOTTIME 7
#endif
#ifndef CLOCK_REALTIME_ALARM
#define CLOCK_REALTIME_ALARM 8
#endif
#ifndef CLOCK_BOOTTIME_ALARM
#define CLOCK_BOOTTIME_ALARM 9
#endif
#ifndef CLOCK_SGI_CYCLE
#define CLOCK_SGI_CYCLE 10
#endif
#ifndef CLOCK_TAI
#define CLOCK_TAI 11
#endif
#endif /* __riscv */
#endif /* !_ADAPT_TIME_H */ #endif /* !_ADAPT_TIME_H */