Skip to content
Snippets Groups Projects
Commit 0d5553a5 authored by schneider's avatar schneider
Browse files

change(epicardium): Update to v1.16 splash screen

Also auto generate the header during build time.
parent 7befa10d
No related branches found
No related tags found
No related merge requests found
Pipeline #4780 failed
...@@ -47,7 +47,7 @@ int main(void) ...@@ -47,7 +47,7 @@ int main(void)
epic_disp_clear(0x0000); epic_disp_clear(0x0000);
if (strcmp(CARD10_VERSION, "v1.15") == 0) { if (strcmp(CARD10_VERSION, "v1.16") == 0) {
gfx_copy_region( gfx_copy_region(
&display_screen, &display_screen,
0, 0,
......
...@@ -77,6 +77,17 @@ if get_option('jailbreak_card10') ...@@ -77,6 +77,17 @@ if get_option('jailbreak_card10')
] ]
endif endif
version_screen = custom_target(
'splash-screen.h',
input: 'version-splash.png',
output: 'version-splash.h',
command: [
python3,
meson.current_source_dir() + '../tools/version-image.py',
'@INPUT@',
'@OUTPUT@',
],
)
elf = executable( elf = executable(
name + '.elf', name + '.elf',
...@@ -91,6 +102,7 @@ elf = executable( ...@@ -91,6 +102,7 @@ elf = executable(
l0der_sources, l0der_sources,
ble_sources, ble_sources,
version_hdr, version_hdr,
version_screen,
dependencies: [libcard10, max32665_startup_core0, maxusb, libff13, ble, bhy1, libcrypto], dependencies: [libcard10, max32665_startup_core0, maxusb, libff13, ble, bhy1, libcrypto],
link_with: [api_dispatcher_lib, freertos], link_with: [api_dispatcher_lib, freertos],
link_whole: [max32665_startup_core0_lib, board_card10_lib, newlib_heap_lib], link_whole: [max32665_startup_core0_lib, board_card10_lib, newlib_heap_lib],
......
This diff is collapsed.
epicardium/version-splash.png

25.1 KiB

...@@ -13,6 +13,7 @@ epicardium/main.c if you want to actually see your version splash!! ...@@ -13,6 +13,7 @@ epicardium/main.c if you want to actually see your version splash!!
) )
parser.add_argument("image", help="Path to version image") parser.add_argument("image", help="Path to version image")
parser.add_argument("header", help="Path to version header")
args = parser.parse_args() args = parser.parse_args()
...@@ -20,8 +21,7 @@ epicardium/main.c if you want to actually see your version splash!! ...@@ -20,8 +21,7 @@ epicardium/main.c if you want to actually see your version splash!!
assert im.size[0] == 160, "Image must be 160 pixels wide" assert im.size[0] == 160, "Image must be 160 pixels wide"
assert im.size[1] == 80, "Image must be 80 pixels high)" assert im.size[1] == 80, "Image must be 80 pixels high)"
# find version-splash.h vsplash = args.header
vsplash = os.path.join(os.path.dirname(__file__), "../epicardium/version-splash.h")
with open(vsplash, "w") as f: with open(vsplash, "w") as f:
tmp = """\ tmp = """\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment