Move architecture-depedendent libc internal headers to jerry-libc/arch folder.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -50,15 +50,6 @@ set(COMPILE_FLAGS_LIBC "${COMPILE_FLAGS_JERRY} ${C_FLAGS_JERRY}")
|
|||||||
set(INCLUDE_LIBC_INTERFACE ${CMAKE_SOURCE_DIR}/jerry-libc/include)
|
set(INCLUDE_LIBC_INTERFACE ${CMAKE_SOURCE_DIR}/jerry-libc/include)
|
||||||
set(INCLUDE_LIBC_INTERFACE ${INCLUDE_LIBC_INTERFACE} PARENT_SCOPE)
|
set(INCLUDE_LIBC_INTERFACE ${INCLUDE_LIBC_INTERFACE} PARENT_SCOPE)
|
||||||
|
|
||||||
# Platform-specific
|
|
||||||
# Linux
|
|
||||||
set(INCLUDE_LIBC_LINUX target/linux)
|
|
||||||
# MCU
|
|
||||||
# STM32F3
|
|
||||||
set(INCLUDE_LIBC_MCU_STM32F3 target/mcu-stubs)
|
|
||||||
# STM32F4
|
|
||||||
set(INCLUDE_LIBC_MCU_STM32F4 target/mcu-stubs)
|
|
||||||
|
|
||||||
# Third-party
|
# Third-party
|
||||||
# Platform-specific
|
# Platform-specific
|
||||||
# Linux
|
# Linux
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#ifdef __TARGET_HOST_x64
|
#ifdef __TARGET_HOST_x64
|
||||||
# include "asm_x64.h"
|
# include "arch/x86-64.h"
|
||||||
#elif defined (__TARGET_HOST_x86)
|
#elif defined (__TARGET_HOST_x86)
|
||||||
# include "asm_x86.h"
|
# include "arch/x86-32.h"
|
||||||
#elif defined (__TARGET_HOST_ARMv7)
|
#elif defined (__TARGET_HOST_ARMv7)
|
||||||
# include "asm_arm.h"
|
# include "arch/arm-v7.h"
|
||||||
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
||||||
# error "!__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7"
|
# error "!__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7"
|
||||||
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
||||||
|
|||||||
@@ -29,15 +29,6 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef __TARGET_HOST_x64
|
|
||||||
# include "asm_x64.h"
|
|
||||||
#elif defined (__TARGET_HOST_x86)
|
|
||||||
# include "asm_x86.h"
|
|
||||||
#elif defined (__TARGET_HOST_ARMv7)
|
|
||||||
# include "asm_arm.h"
|
|
||||||
#else /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
|
||||||
# error "!__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 "
|
|
||||||
#endif /* !__TARGET_HOST_x64 && !__TARGET_HOST_x86 && !__TARGET_HOST_ARMv7 */
|
|
||||||
#include "jerry-libc-defs.h"
|
#include "jerry-libc-defs.h"
|
||||||
|
|
||||||
LIBC_UNREACHABLE_STUB_FOR (int raise (int sig_no __attr_unused___))
|
LIBC_UNREACHABLE_STUB_FOR (int raise (int sig_no __attr_unused___))
|
||||||
|
|||||||
Reference in New Issue
Block a user