linux-karo: add override mechanism for console logo and default to external Vivante...
[meta-kc-bsp.git] / recipes-kernel / linux / linux-karo_%.bbappend
1 FILESEXTRAPATHS_prepend := "${THISDIR}/linux-karo:"
2
3 SRC_URI += " \
4                         file://bootlogo.png \
5 "
6
7 do_configure_prepend () {
8     # convert and copy custom logo
9         pngtopnm ${WORKDIR}/bootlogo.png | ppmquant 224 | pnmnoraw > ${WORKDIR}/bootlogo.ppm
10
11     if [ -e ${WORKDIR}/bootlogo.ppm ]; then
12         install -m 0644 ${WORKDIR}/bootlogo.ppm ${S}/drivers/video/logo/logo_linux_clut224.ppm
13         kernel_conf_variable LOGO y
14         kernel_conf_variable LOGO_LINUX_CLUT224 y
15         else
16                 echo Error: Logo conversion failed
17                 exit 1
18     fi
19 }
20
21 MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE = "1"
22