From db2fae4724880a43e5942bf770bc8e6e200012b4 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 26 Jun 2017 12:37:11 +0000 Subject: Add CAN drivers by default to AGL boards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v2 (jsmoeller): Add append files for boards that need special handling. Change-Id: I172b71be6e825aa6399f22899e9b6eaacc86e72b Signed-off-by: Romain Forlot Signed-off-by: Jan-Simon Möller Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9791 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account Reviewed-by: Stéphane Desneux --- meta-agl-bsp/recipes-kernel/linux/linux-%.bbappend | 5 +++ .../recipes-kernel/linux/linux/can-bus.cfg | 39 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 meta-agl-bsp/recipes-kernel/linux/linux-%.bbappend create mode 100644 meta-agl-bsp/recipes-kernel/linux/linux/can-bus.cfg (limited to 'meta-agl-bsp/recipes-kernel') diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-%.bbappend b/meta-agl-bsp/recipes-kernel/linux/linux-%.bbappend new file mode 100644 index 000000000..0363760ab --- /dev/null +++ b/meta-agl-bsp/recipes-kernel/linux/linux-%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/linux:" + +# Extra configuration options for the AGL kernel +SRC_URI += "file://can-bus.cfg \ + " diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/can-bus.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/can-bus.cfg new file mode 100644 index 000000000..5966198d7 --- /dev/null +++ b/meta-agl-bsp/recipes-kernel/linux/linux/can-bus.cfg @@ -0,0 +1,39 @@ +CONFIG_TASKSTATS=y +CONFIG_TASK_DELAY_ACCT=y +# CONFIG_TASK_XACCT is not set +CONFIG_USER_RETURN_NOTIFIER=y +CONFIG_PREEMPT_NOTIFIERS=y +CONFIG_CAN=m +CONFIG_CAN_RAW=m +CONFIG_CAN_BCM=m +CONFIG_CAN_GW=m + +# +# CAN Device Drivers +# +CONFIG_CAN_VCAN=m +CONFIG_CAN_SLCAN=m +CONFIG_CAN_DEV=m +CONFIG_CAN_CALC_BITTIMING=y +# CONFIG_CAN_LEDS is not set +# CONFIG_CAN_SJA1000 is not set +# CONFIG_CAN_C_CAN is not set +# CONFIG_CAN_M_CAN is not set +# CONFIG_CAN_CC770 is not set + +# +# CAN SPI interfaces +# +CONFIG_CAN_MCP251X=m + +# +# CAN USB interfaces +# +# CONFIG_CAN_EMS_USB is not set +CONFIG_CAN_ESD_USB2=m +CONFIG_CAN_GS_USB=m +CONFIG_CAN_KVASER_USB=m +CONFIG_CAN_PEAK_USB=m +CONFIG_CAN_8DEV_USB=m +# CONFIG_CAN_SOFTING is not set +# CONFIG_CAN_DEBUG_DEVICES is not set -- cgit 1.2.3-korg