From e232b907c1da205da7d603a68c597b70689b0b05 Mon Sep 17 00:00:00 2001 From: Manuel Bachmann Date: Thu, 22 Oct 2015 09:51:58 +0000 Subject: r-car m2: support Bluetooth hardware In order to have Bluetooth hardware detection, and to make BlueZ commands (such as "hciconfig", "hcitool"...) work, we need to enable kernel functionalities. Some of them are designed to be run as modules. We also make sure that all images include them, since it does not depend on a specific board's hardware. PS : we will only build them if "bluetooth" has been specified in DISTRO_FEATURES, hence saving time. Change-Id: I14e1bdd7e4e63a7484bb1516dda601e3c03fd58f Signed-off-by: Manuel Bachmann --- meta-rcar-gen2/conf/local.conf.sample | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'meta-rcar-gen2/conf/local.conf.sample') diff --git a/meta-rcar-gen2/conf/local.conf.sample b/meta-rcar-gen2/conf/local.conf.sample index 43857ba..76c15e2 100644 --- a/meta-rcar-gen2/conf/local.conf.sample +++ b/meta-rcar-gen2/conf/local.conf.sample @@ -48,6 +48,19 @@ MACHINE = "porter" # alsa-utils alsa-tools \ #" +# For Bluetooth hardware support +BT_KERNEL_MODULES = " \ + kernel-module-btusb \ + kernel-module-bnep \ + kernel-module-rfcomm \ + kernel-module-rfkill \ + " + +# Distribution-specific runtime components +IMAGE_INSTALL_append = " \ + ${@bb.utils.contains("DISTRO_FEATURES", "bluetooth", "${BT_KERNEL_MODULES}", "", d)} \ + " + # TODO: When booting weston, someone try to load 'libgbm_kms.so' then # fail to boot. It should be 'libgbm_kms.so.1'. # Tentatively, it is to install 'libgbm-dev' pkg. -- cgit 1.2.3-korg