How adaliamokhles/meta-mokhles works
meta-mokhles is a Yocto layer for building a minimal Linux image with CAN support and example programs. Its principal runtime path is booting the image, creating vcan0, then running the SocketCAN sender and receiver over that interface. The layer also supplies kernel CAN configuration and standalone hello-C and hello-file examples. Recipe-to-image inclusion details are not shown in the excerpts; the README documents the capabilities, so the image/packagegroup relationship is marked unverified.
Main entry points: mokhles-image.bb mokhles image · linux-yocto_%.bbappend Kernel CAN append · can-setup Interface startup · can-sender.c CAN sender
Components 11
Image composition
- mokhles image
recipes-mokhles/images/mokhles-image.bb - CAN package group
recipes-mokhles/packagegroups/packagegroup-mokhles-can.bb - Kernel CAN append
recipes-kernel/linux/linux-yocto_%.bbappend - CAN kernel config
recipes-kernel/linux/files/can.cfg
CAN runtime
- Interface startup
recipes-mokhles/can-setup/files/can-setup - vcan0 interface
- CAN sender
recipes-mokhles/can-sender/files/can-sender.c - CAN receiver
recipes-mokhles/can-receiver/files/can-receiver.c
Example programs
- Hello C program
recipes-mokhles/hello-c/files/hello.c - Hello text file
recipes-mokhles/hello-file/files/hello.txt
Other components
- Image user
Connections 6
- Image user → mokhles image: boots image
README - mokhles image → CAN package group: includes capability
- Kernel CAN append → CAN kernel config: enables CAN
README - Interface startup → vcan0 interface: creates at boot
README - CAN sender → vcan0 interface: uses SocketCAN
README - CAN receiver → vcan0 interface: uses SocketCAN
README