[OpenWrt-Devel] [PATCH 6/7] zynq: replace CAN kconfig options by device packages
Luis Araneda
luaraneda at gmail.com
Sun Mar 31 23:33:07 EDT 2019
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 <luaraneda at gmail.com>
---
This change was run-tested on a Zybo-z7 board with a modified device tree
that enabled can0
---
target/linux/zynq/config-4.14 | 21 ---------------------
target/linux/zynq/image/Makefile | 1 +
2 files changed, 1 insertion(+), 21 deletions(-)
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
--
2.21.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list