make menuconfig
Target packages --->
Networking applications --->
[*] can-utils
// 这个是有关 can 工具的编译选项
Target packages --->
Libraries --->
Networking --->
[*] libsocketcan
// 这个是有关 libsocketcan
make
cd output/target/
ls usr/lib/libsocketcan.so*
usr/lib/libsocketcan.so usr/lib/libsocketcan.so.2 usr/lib/libsocketcan.so.2.2.1
ls usr/bin/can*
usr/bin/canbusload usr/bin/candump usr/bin/cangen usr/bin/canlogserver usr/bin/cansend
usr/bin/can-calc-bit-timing usr/bin/canfdtest usr/bin/cangw usr/bin/canplayer usr/bin/cansniffer