linux-rpi.inc: add the configuration options required to support vc4graphics

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
This commit is contained in:
Herve Jourdain 2016-07-21 20:32:16 +08:00 committed by Andrei Gherzan
parent 6b4de2bb90
commit ef22ff49e9

View File

@ -111,6 +111,16 @@ do_configure_prepend() {
# Activate CONFIG_LEGACY_PTYS
kernel_configure_variable LEGACY_PTYS y
# Activate the configuration options for VC4
VC4GRAPHICS="${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}"
if [ ${VC4GRAPHICS} = "1" ]; then
kernel_configure_variable I2C_BCM2835 y
kernel_configure_variable DRM y
kernel_configure_variable DRM_FBDEV_EMULATION n
kernel_configure_variable DRM_VC4 y
kernel_configure_variable FB_BCM2708 n
fi
# Keep this the last line
# Remove all modified configs and add the rest to .config
sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config'