Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added yml_template #256

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions yml_template/module_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# top key is will be module name
# Can be up to 27 characters
SceSomethingModule:
# module attributes
# 0: none
# 1: module can't stop
# 2: module exclusive load
# 4: module exclusive start
attributes: 0
# process_image key
# true: embed process_param in the module.
# false: don't embed process_param in the module.
# This is required only for process_image (eboot.bin)
process_image: false
# imagemodule kay
# true: allow no code module
# false: disallow no code module
imagemodule: false
# version key
# Normally this should remain 1.1 and does not need to be changed.
version:
major: 1
minor: 1
# nid key unused in toolchain?
nid: 0
# main key
# syslib entries
main:
# start key
# module entry for called by sceKernelStartModule function.
start: module_start
# stop key
# module entry for called by sceKernelStopModule function.
stop: module_stop
# bootstart key
# module entry for called by kernel bootloader.
# Therefore setting this entry in a regular module has no effect.
bootstart: module_bootstart
# exit key
# module entry for unknown.
exit: module_exit
# libraries key
# define to library exports
libraries:
# ${library name} key
# Can be up to 255 characters
SceSomething:
# syscall key
# The kernel module is used to expose exports to users.
# If true, other kernel modules cannot import this library.
syscall: false
# version key
version: 1
functions:
- something_function
variables:
- something_variable
25 changes: 25 additions & 0 deletions yml_template/nid_db_classic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
firmware: 3.60
modules:
SceSomethingModule:
# nid has been deprecated. Please use the "fingerprint" key instead.
nid: 0xDEADBEEF
fingerprint: 0xDEADBEEF
libraries:
SceLibSomething:
# kernel key
# true: stub name will be the library name
# false: stub name will be the module name
kernel: false
# stubname key : Specify stubname directly.
# The version key is available from nid_db_classic_v3.
stubname: SceSomething
nid: 0x12345678
# library's version.
# The version key is available from nid_db_classic_v2.
version: 1
functions:
sceSomethingGetState: 0x9ABCDEF0
sceSomethingSetState: 0x1A2B3C4D
variables:
sceSomethingState: 0x9ABCDEF0