Skip to content
Snippets Groups Projects
Commit 90174c38 authored by swym's avatar swym
Browse files

add jailbreak_card10 meson option

parent 5b452a5f
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,14 @@ subdir('ble/') ...@@ -70,6 +70,14 @@ subdir('ble/')
subdir('l0der/') subdir('l0der/')
epicardium_cargs = []
if get_option('jailbreak_card10')
epicardium_cargs += [
'-DJAILBREAK_CARD10=1',
]
endif
elf = executable( elf = executable(
name + '.elf', name + '.elf',
'cdcacm.c', 'cdcacm.c',
...@@ -88,6 +96,7 @@ elf = executable( ...@@ -88,6 +96,7 @@ elf = executable(
'-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map', '-Wl,-Map=' + meson.current_build_dir() + '/' + name + '.map',
'-Wl,--defsym=_write=_write_epicardium', '-Wl,--defsym=_write=_write_epicardium',
], ],
c_args: epicardium_cargs,
) )
epicardium_bin = custom_target( epicardium_bin = custom_target(
......
...@@ -88,7 +88,9 @@ static int load_stat(char *name) ...@@ -88,7 +88,9 @@ static int load_stat(char *name)
*/ */
static int do_load(struct load_info *info) static int do_load(struct load_info *info)
{ {
#if defined(JAILBREAK_CARD10) && (JAILBREAK_CARD10 == 1)
struct l0dable_info l0dable; struct l0dable_info l0dable;
#endif
int res; int res;
if (*info->name == '\0') { if (*info->name == '\0') {
......
...@@ -21,3 +21,11 @@ option( ...@@ -21,3 +21,11 @@ option(
description: 'Whether to enable WSF TRACE prints', description: 'Whether to enable WSF TRACE prints',
) )
option(
'jailbreak_card10',
type: 'boolean',
value: false,
description: 'Enable execution of .elf l0dables',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment