sllin.c copy to kernel_imx/drivers/net/can
in Kconfig
### begin: issue ###
config CAN_SLLIN
tristate "Serial / UART serial CAN Adaptors (sllin)"
---help---
slLIN is TTY line discipline implemented for Linux operating
system that handles the interchange of LIN messages between
the underlying UART driver and the CAN bus subsystem.
### end: issue ###
in Makefile add
obj-$(CONFIG_CAN_SLLIN) += sllin.o
in Default config
/kernel_imx/arch/arm/configs/mx6dq_XXXXX_android_defconfig
### begin: issue ###
CONFIG_CAN_SLLIN=y
### end: issue ###
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
success use and need mark some lines and let it compile pass
https://github.com/karelzak/util-linux/blob/master/sys-utils/ldattach.c
in Android.mk
include $(CLEAR_VARS)
LOCAL_SRC_FILES := ldattach.c
LOCAL_MODULE := ldattach
LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/
LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -DHAVE_NANOSLEEP
include $(BUILD_EXECUTABLE)