mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:27:35 +00:00
CMake: Let Meta/serenity.sh run aarch64
make it past cmake
This adds just enough scaffolding to make cmake succeed. The build falls over immediately.
This commit is contained in:
parent
a43ad0e706
commit
bbad4758b2
9 changed files with 115 additions and 23 deletions
|
@ -67,7 +67,12 @@ set(LIBC_SOURCES
|
|||
file(GLOB AK_SOURCES CONFIGURE_DEPENDS "../../../AK/*.cpp")
|
||||
file(GLOB ELF_SOURCES CONFIGURE_DEPENDS "../LibELF/*.cpp")
|
||||
|
||||
if ("${SERENITY_ARCH}" STREQUAL "i686")
|
||||
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
|
||||
set(ASM_SOURCES "arch/aarch64/setjmp.S")
|
||||
set(ELF_SOURCES ${ELF_SOURCES} ../LibELF/Arch/aarch64/entry.S ../LibELF/Arch/aarch64/plt_trampoline.S)
|
||||
set(CRTI_SOURCE "arch/aarch64/crti.S")
|
||||
set(CRTN_SOURCE "arch/aarch64/crtn.S")
|
||||
elseif ("${SERENITY_ARCH}" STREQUAL "i686")
|
||||
set(ASM_SOURCES "arch/i386/setjmp.S")
|
||||
set(ELF_SOURCES ${ELF_SOURCES} ../LibELF/Arch/i386/entry.S ../LibELF/Arch/i386/plt_trampoline.S)
|
||||
set(CRTI_SOURCE "arch/i386/crti.S")
|
||||
|
|
21
Userland/Libraries/LibC/arch/aarch64/crti.S
Normal file
21
Userland/Libraries/LibC/arch/aarch64/crti.S
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
.section .init, "ax", @progbits
|
||||
.p2align 2
|
||||
.global _init
|
||||
.type _init, @function
|
||||
_init:
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
||||
|
||||
.section .fini, "ax", @progbits
|
||||
.p2align 4
|
||||
.global _fini
|
||||
.type _fini, @function
|
||||
_fini:
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
13
Userland/Libraries/LibC/arch/aarch64/crtn.S
Normal file
13
Userland/Libraries/LibC/arch/aarch64/crtn.S
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
.section .init, "ax", @progbits
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
||||
|
||||
.section .fini, "ax", @progbits
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
15
Userland/Libraries/LibC/arch/aarch64/setjmp.S
Normal file
15
Userland/Libraries/LibC/arch/aarch64/setjmp.S
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
.global setjmp
|
||||
setjmp:
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
||||
|
||||
.global longjmp
|
||||
longjmp:
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
12
Userland/Libraries/LibELF/Arch/aarch64/entry.S
Normal file
12
Userland/Libraries/LibELF/Arch/aarch64/entry.S
Normal file
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
.globl _invoke_entry
|
||||
.hidden _invoke_entry
|
||||
.type _invoke_entry,@function
|
||||
_invoke_entry: # (argc, argv, envp, entry)
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
13
Userland/Libraries/LibELF/Arch/aarch64/plt_trampoline.S
Normal file
13
Userland/Libraries/LibELF/Arch/aarch64/plt_trampoline.S
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
.p2align 4
|
||||
.globl _plt_trampoline
|
||||
.hidden _plt_trampoline
|
||||
.type _plt_trampoline,@function
|
||||
_plt_trampoline: # (object, relocation_index)
|
||||
# FIXME: Possibly incomplete.
|
||||
ret
|
Loading…
Add table
Add a link
Reference in a new issue