From f55d896454ac93aa4de17c334a46a37683e61048 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 4 Dec 2015 08:09:33 +0200 Subject: emulator: change resolution when using systemd Change-Id: I8b6015c3017ece38a296288f804deffff4fd2e6f Reviewed-by: Rainer Keller --- recipes/v86d/v86d/uvesafb.options.conf | 1 + recipes/v86d/v86d_0.1.10.bbappend | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 recipes/v86d/v86d/uvesafb.options.conf diff --git a/recipes/v86d/v86d/uvesafb.options.conf b/recipes/v86d/v86d/uvesafb.options.conf new file mode 100644 index 0000000..7d0dc96 --- /dev/null +++ b/recipes/v86d/v86d/uvesafb.options.conf @@ -0,0 +1 @@ +options uvesafb mode_option=800x600-32 mtrr=3 scroll=ywrap diff --git a/recipes/v86d/v86d_0.1.10.bbappend b/recipes/v86d/v86d_0.1.10.bbappend index c438912..9d5dfe1 100644 --- a/recipes/v86d/v86d_0.1.10.bbappend +++ b/recipes/v86d/v86d_0.1.10.bbappend @@ -20,5 +20,13 @@ ## ############################################################################# -COMPATIBLE_MACHINE = "(qemux86|emulator)" FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://uvesafb.options.conf" + +do_install_append() { + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${sysconfdir}/modprobe.d + install -m 0644 ${WORKDIR}/uvesafb.options.conf ${D}${sysconfdir}/modprobe.d/uvesafb.conf + fi +} -- cgit v1.2.3-54-g00ecf