-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49e6b9b
commit daf6b30
Showing
56 changed files
with
521 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) | ||
if(DEFINED ENV{VITASDK}) | ||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VITASDK}/share/vita.toolchain.cmake" CACHE PATH "toolchain file") | ||
else() | ||
message(FATAL_ERROR "Please define VITASDK to point to your SDK path!") | ||
endif() | ||
endif() | ||
|
||
project(kernel) | ||
include("${VITASDK}/share/vita.cmake" REQUIRED) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,-q -Wall -O3 -nostdlib") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-exceptions") | ||
|
||
add_executable(kernel | ||
main.c | ||
) | ||
|
||
target_link_libraries(kernel | ||
SceIofilemgrForDriver_stub | ||
SceSysclibForDriver_stub | ||
SceSysmemForDriver_stub | ||
SceModulemgrForKernel_stub | ||
SceModulemgrForDriver_stub | ||
SceThreadmgrForDriver_stub | ||
taihenForKernel_stub | ||
taihenModuleUtils_stub | ||
) | ||
|
||
vita_create_self(kernel.skprx kernel CONFIG exports.yml UNSAFE) | ||
|
||
vita_create_stubs(stubs kernel ${CMAKE_SOURCE_DIR}/exports.yml KERNEL) | ||
|
||
install(DIRECTORY ${CMAKE_BINARY_DIR}/stubs/ | ||
DESTINATION lib | ||
FILES_MATCHING PATTERN "*.a" | ||
) | ||
|
||
install(FILES vitashell_kernel.h | ||
DESTINATION include | ||
) | ||
|
||
add_custom_target(copy | ||
COMMAND cp kernel.skprx ../../../resources/kernel.skprx | ||
DEPENDS kernel.skprx | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
VitaShellKernel: | ||
attributes: 0 | ||
version: | ||
major: 1 | ||
minor: 0 | ||
main: | ||
start: module_start | ||
stop: module_stop | ||
modules: | ||
VitaShellKernelLibrary: | ||
syscall: true | ||
functions: | ||
- shellKernelIsUx0Redirected | ||
- shellKernelRedirectUx0 | ||
- shellKernelUnredirectUx0 |
Oops, something went wrong.