From: Luis Araneda Date: Mon, 1 Apr 2019 03:33:07 +0000 (-0300) Subject: zynq: replace CAN kconfig options by device packages X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3db12da7cdabfa682a4ebbd95fb3287c84248d7b;p=openwrt%2Fstaging%2Fstintel.git zynq: replace CAN kconfig options by device packages The options are managed on a generic way by the can kmod packages Additionally, select can packages only for devices that currently has CAN enabled, which is only the ZC702 Signed-off-by: Luis Araneda --- diff --git a/target/linux/zynq/config-4.14 b/target/linux/zynq/config-4.14 index 7ec3a586ca..b78113a21f 100644 --- a/target/linux/zynq/config-4.14 +++ b/target/linux/zynq/config-4.14 @@ -81,27 +81,6 @@ CONFIG_BUILD_BIN2C=y CONFIG_CACHE_L2X0=y CONFIG_CADENCE_TTC_TIMER=y CONFIG_CADENCE_WATCHDOG=y -CONFIG_CAN=y -# CONFIG_CAN_8DEV_USB is not set -CONFIG_CAN_BCM=y -CONFIG_CAN_CALC_BITTIMING=y -# CONFIG_CAN_CC770 is not set -# CONFIG_CAN_C_CAN is not set -CONFIG_CAN_DEV=y -# CONFIG_CAN_EMS_USB is not set -# CONFIG_CAN_ESD_USB2 is not set -# CONFIG_CAN_FLEXCAN is not set -# CONFIG_CAN_GRCAN is not set -CONFIG_CAN_GW=y -# CONFIG_CAN_KVASER_USB is not set -# CONFIG_CAN_LEDS is not set -# CONFIG_CAN_MCP251X is not set -# CONFIG_CAN_PEAK_USB is not set -CONFIG_CAN_RAW=y -# CONFIG_CAN_SJA1000 is not set -# CONFIG_CAN_SOFTING is not set -# CONFIG_CAN_TI_HECC is not set -CONFIG_CAN_XILINXCAN=y CONFIG_CHR_DEV_SG=y CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK=y diff --git a/target/linux/zynq/image/Makefile b/target/linux/zynq/image/Makefile index aac9953b45..d8a882313b 100644 --- a/target/linux/zynq/image/Makefile +++ b/target/linux/zynq/image/Makefile @@ -74,6 +74,7 @@ define Device/xlnx_zynq-zc702 $(call Device/FitImageGzip) DEVICE_TITLE := ZC702 Development Board DEVICE_DTS := zynq-zc702 + DEVICE_PACKAGES:=kmod-can kmod-can-xilinx-can endef TARGET_DEVICES += xlnx_zynq-zc702