Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Directory structure:
  2.  
  3. meta-i2s/
  4. ├── conf
  5. │   └── layer.conf
  6. └── recipes-kernel
  7. └── i2s
  8. ├── files
  9. │   ├── Makefile
  10. │   ├── README.md
  11. │   └── my_loader.c
  12. └── i2s-rpi-mod.bb
  13.  
  14. i2s-rpi-mod.bb:
  15.  
  16. SUMMARY = "i2s kernel module"
  17. LICENSE = "GPLv2"
  18.  
  19. inherit module
  20.  
  21. SRC_URI = "file://Makefile \
  22. file://my_loader.c \
  23. "
  24.  
  25. S = "${WORKDIR}"
  26.  
  27. # The inherit of module.bbclass will automatically name module packages with
  28. # "kernel-module-" prefix as required by the oe-core build environment.
  29.  
  30. RPROVIDES_${PN} += "my_loader"
  31.  
  32. layer.conf:
  33.  
  34. # We have a conf and classes directory, add to BBPATH
  35. BBPATH .= ":${LAYERDIR}"
  36.  
  37. # We have recipes-* directories, add to BBFILES
  38. BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
  39. ${LAYERDIR}/recipes-*/*/*.bbappend"
  40.  
  41. BBFILE_COLLECTIONS += "yoctobsp"
  42. BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/"
  43. BBFILE_PRIORITY_yoctobsp = "5"
  44. LAYERVERSION_yoctobsp = "4"
  45. LAYERSERIES_COMPAT_yoctobsp = "sumo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement