Skip to content
Snippets Groups Projects
Commit d4189d2f 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
1 merge request!418change(epicardium): Update to v1.16 splash screen
Pipeline #4781 passed
......@@ -47,7 +47,7 @@ int main(void)
epic_disp_clear(0x0000);
if (strcmp(CARD10_VERSION, "v1.15") == 0) {
if (strcmp(CARD10_VERSION, "v1.16") == 0) {
gfx_copy_region(
&display_screen,
0,
......
......@@ -77,6 +77,17 @@ if get_option('jailbreak_card10')
]
endif
version_screen = custom_target(
'version-splash.h',
input: 'version-splash.png',
output: 'version-splash.h',
command: [
python3,
meson.current_source_dir() + '../tools/version-image.py',
'@INPUT@',
'@OUTPUT@',
],
)
elf = executable(
name + '.elf',
......@@ -91,6 +102,7 @@ elf = executable(
l0der_sources,
ble_sources,
version_hdr,
version_screen,
dependencies: [libcard10, max32665_startup_core0, maxusb, libff13, ble, bhy1, libcrypto],
link_with: [api_dispatcher_lib, freertos],
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!!
)
parser.add_argument("image", help="Path to version image")
parser.add_argument("header", help="Path to version header")
args = parser.parse_args()
......@@ -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[1] == 80, "Image must be 80 pixels high)"
# find version-splash.h
vsplash = os.path.join(os.path.dirname(__file__), "../epicardium/version-splash.h")
vsplash = args.header
with open(vsplash, "w") as f:
tmp = """\
......
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