summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYusuke Nakamura <ynakamura@jp.adit-jv.com>2016-12-28 11:33:45 +0900
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>2017-01-18 05:39:37 +0000
commit73e6110c6c12a875da9b6da46c8ddaaff79e3c79 (patch)
tree53ccc836ac637f56a9c941a85aa7246f3b6267d0
parentd53759600dc1e97ce47ba7b0f7958b105012386a (diff)
Add driver loading for cluster demo
v2.0: (Tadao Tanikawa) Done in the linux-renesas_3.10.bb v1.0: (Yusuke Nakamura) Weston in renesas requires some drivers are loaded in advance for cluster demo. Otherwise weston fails to start. This adds necessary drivers to /etc/modules-load.d Change-Id: I0668f663be66b07ce99bb063520b97d2e949b6b6 Signed-off-by: Yusuke Nakamura <ynakamura@jp.adit-jv.com>
-rw-r--r--meta-rcar-gen2/recipes-kernel/linux/linux-renesas_3.10.bb18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-rcar-gen2/recipes-kernel/linux/linux-renesas_3.10.bb b/meta-rcar-gen2/recipes-kernel/linux/linux-renesas_3.10.bb
index 4ef7e25..4a3e515 100644
--- a/meta-rcar-gen2/recipes-kernel/linux/linux-renesas_3.10.bb
+++ b/meta-rcar-gen2/recipes-kernel/linux/linux-renesas_3.10.bb
@@ -163,3 +163,21 @@ KERNEL_DEFCONFIG = "shmobile_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
+
+do_install_append(){
+ # modprobe automatically at boot
+ if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -d ${D}/${sysconfdir}/modules-load.d
+ touch ${D}/${sysconfdir}/modules-load.d/cluster-demo.conf
+ echo "mmngr" >> ${D}/${sysconfdir}/modules-load.d/cluster-demo.conf
+ echo "mmngrbuf" >> ${D}/${sysconfdir}/modules-load.d/cluster-demo.conf
+ echo "uvcs_cmn" >> ${D}/${sysconfdir}/modules-load.d/cluster-demo.conf
+ echo "s3ctl" >> ${D}/${sysconfdir}/modules-load.d/cluster-demo.conf
+ echo "vspm" >> ${D}/${sysconfdir}/modules-load.d/cluster-demo.conf
+ echo "fdpm" >> ${D}/${sysconfdir}/modules-load.d/cluster-demo.conf
+ fi
+}
+
+FILES_kernel-modules += " \
+ ${sysconfdir}/modules-load.d/cluster-demo.conf \
+ "