summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen2/recipes-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'meta-rcar-gen2/recipes-kernel')
-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 \
+ "