Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Øyvind Kolås
firmware
Commits
d4189d2f
Commit
d4189d2f
authored
Oct 17, 2020
by
schneider
Browse files
change(epicardium): Update to v1.16 splash screen
Also auto generate the header during build time.
parent
7befa10d
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
epicardium/main.c
View file @
d4189d2f
...
@@ -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.1
5
"
)
==
0
)
{
if
(
strcmp
(
CARD10_VERSION
,
"v1.1
6
"
)
==
0
)
{
gfx_copy_region
(
gfx_copy_region
(
&
display_screen
,
&
display_screen
,
0
,
0
,
...
...
epicardium/meson.build
View file @
d4189d2f
...
@@ -77,6 +77,17 @@ if get_option('jailbreak_card10')
...
@@ -77,6 +77,17 @@ if get_option('jailbreak_card10')
]
]
endif
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(
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],
...
...
epicardium/version-splash.h
deleted
100644 → 0
View file @
7befa10d
This diff is collapsed.
Click to expand it.
epicardium/version-splash.png
0 → 100644
View file @
d4189d2f
25.1 KB
tools/version-image.py
View file @
d4189d2f
...
@@ -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
=
"""
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment