-
Notifications
You must be signed in to change notification settings - Fork 3
Add splash #60
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
Merged
Merged
Add splash #60
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6e979f9
u-boot: add splash
m-iwanicki 5e8a5d3
bsp-rockchip: u-boot: add vop2 & rk3568_hdmi support patch
m-iwanicki ae01016
distro: linux-yocto: add logo to kernel
m-iwanicki 12688f1
distro: add psplash
m-iwanicki 86e9ecc
zarhus-distro-common.conf: add LOGO_SIZE
m-iwanicki a544bc3
rockchip-bsp: u-boot: enable HDMI for radxa
m-iwanicki 1c49a41
fix orangepi dts copy path
m-iwanicki e2e32ad
linux-yocto: enable framebuffer
m-iwanicki 87e1d18
u-boot: explain u-boot-logo recipe
m-iwanicki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
meta-zarhus-bsp/meta-zarhus-bsp-common/recipes-bsp/u-boot-logo/u-boot-logo_1.0.bb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| SUMMARY = "Prepare U-Boot logo" | ||
| HOMEPAGE = "https://docs.zarhus.com" | ||
| # TODO: which license does logo have | ||
| LICENSE = "CLOSED" | ||
|
|
||
| DEPENDS = "imagemagick-native" | ||
|
|
||
| SPLASH_FILE = "logo-${PV}" | ||
| SPLASH_SOURCE = "https://docs.zarhus.com/images/zarhus-logo.svg;downloadfilename=${SPLASH_FILE}" | ||
| SRC_URI = "${SPLASH_SOURCE}" | ||
| SRC_URI[sha256sum] = "2ba3358102e2bb27b5c2b21d06e47325aa8238fad629d67ac46b97d8c77ab470" | ||
|
|
||
| inherit allarch | ||
|
|
||
| python do_prepare_logo() { | ||
| workdir = d.getVar("WORKDIR") | ||
| logo_size = d.getVar("LOGO_SIZE") | ||
| resize = f"-resize {logo_size}" if logo_size else "" | ||
| splash = d.getVar("SPLASH_FILE") | ||
| cmd = f"magick.im7 {splash} -depth 8 -type truecolor {resize} logo.bmp" | ||
| bb.note(f"Converting image: {cmd}") | ||
| bb.process.run(cmd, cwd=workdir) | ||
| } | ||
|
|
||
| do_install() { | ||
| install -d "${D}/boot" | ||
| install -m 0644 "${WORKDIR}/logo.bmp" "${D}/boot/logo.bmp" | ||
DaniilKl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| FILES:${PN} += "/boot/logo.bmp" | ||
|
|
||
| addtask prepare_logo before do_configure after do_prepare_recipe_sysroot | ||
| addtask install before do_build after do_prepare_logo | ||
8 changes: 8 additions & 0 deletions
8
meta-zarhus-bsp/meta-zarhus-bsp-common/recipes-bsp/u-boot/u-boot/enable-splash.cfg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| CONFIG_VIDEO=y | ||
| CONFIG_SPLASH_SCREEN=y | ||
| CONFIG_SPLASH_SOURCE=y | ||
| CONFIG_CMD_BMP=y | ||
| CONFIG_VIDEO_BMP_GZIP=y | ||
| CONFIG_BMP_16BPP=y | ||
| CONFIG_BMP_24BPP=y | ||
| CONFIG_BMP_32BPP=y |
12 changes: 12 additions & 0 deletions
12
meta-zarhus-bsp/meta-zarhus-bsp-common/recipes-bsp/u-boot/u-boot_%.bbappend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
|
|
||
| DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'splash', 'imagemagick-native', '', d)}" | ||
| SRC_URI += "\ | ||
| ${@bb.utils.contains('DISTRO_FEATURES', 'splash', 'file://enable-splash.cfg', '', d)} \ | ||
| " | ||
|
|
||
| # U-Boot recipe doesn't have do_install tasks (and everything after) | ||
| # so it's easier to separate U-Boot logo task into another recipe. | ||
| # There is a problem that U-Boot doesn't respect RDEPENDS and doesn't build | ||
| # u-boot-logo recipe so I also added it to `base_files` RDEPENDS. | ||
| RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'splash', 'u-boot-logo', '', d)}" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This recipe only function is to prepare logo for u-boot (resize and convert to BMP).
Not sure which part does this license apply to as the only file we download is Zarhus Logo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently this repo uses MIT license https://github.com/zarhus/docs/tree/main/docs/images