core-image.bbclass 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Common code for generating core reference images
  2. #
  3. # Copyright (C) 2007-2011 Linux Foundation
  4. LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
  5. file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
  6. # IMAGE_FEATURES control content of the core reference images
  7. #
  8. # By default we install packagegroup-core-boot and packagegroup-base-extended packages;
  9. # this gives us working (console only) rootfs.
  10. #
  11. # Available IMAGE_FEATURES:
  12. #
  13. # - x11 - X server
  14. # - x11-base - X server with minimal environment
  15. # - x11-sato - OpenedHand Sato environment
  16. # - tools-debug - debugging tools
  17. # - eclipse-debug - Eclipse remote debugging support
  18. # - tools-profile - profiling tools
  19. # - tools-testapps - tools usable to make some device tests
  20. # - tools-sdk - SDK (C/C++ compiler, autotools, etc.)
  21. # - nfs-server - NFS server
  22. # - nfs-client - NFS client
  23. # - ssh-server-dropbear - SSH server (dropbear)
  24. # - ssh-server-openssh - SSH server (openssh)
  25. # - hwcodecs - Install hardware acceleration codecs
  26. # - package-management - installs package management tools and preserves the package manager database
  27. # - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins
  28. # - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs
  29. # - dbg-pkgs - debug symbol packages for all installed packages in the rootfs
  30. # - doc-pkgs - documentation packages for all installed packages in the rootfs
  31. # - ptest-pkgs - ptest packages for all ptest-enabled recipes
  32. # - read-only-rootfs - tweaks an image to support read-only rootfs
  33. #
  34. FEATURE_PACKAGES_x11 = "packagegroup-core-x11"
  35. FEATURE_PACKAGES_x11-base = "packagegroup-core-x11-base"
  36. FEATURE_PACKAGES_x11-sato = "packagegroup-core-x11-sato"
  37. FEATURE_PACKAGES_tools-debug = "packagegroup-core-tools-debug"
  38. FEATURE_PACKAGES_eclipse-debug = "packagegroup-core-eclipse-debug"
  39. FEATURE_PACKAGES_tools-profile = "packagegroup-core-tools-profile"
  40. FEATURE_PACKAGES_tools-testapps = "packagegroup-core-tools-testapps"
  41. FEATURE_PACKAGES_tools-sdk = "packagegroup-core-sdk packagegroup-core-standalone-sdk-target"
  42. FEATURE_PACKAGES_nfs-server = "packagegroup-core-nfs-server"
  43. FEATURE_PACKAGES_nfs-client = "packagegroup-core-nfs-client"
  44. FEATURE_PACKAGES_ssh-server-dropbear = "packagegroup-core-ssh-dropbear"
  45. FEATURE_PACKAGES_ssh-server-openssh = "packagegroup-core-ssh-openssh"
  46. FEATURE_PACKAGES_hwcodecs = "${MACHINE_HWCODECS}"
  47. # IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2'
  48. # Including image feature foo would replace the image features bar1 and bar2
  49. IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear"
  50. # IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2'
  51. # An error exception would be raised if both image features foo and bar1(or bar2) are included
  52. MACHINE_HWCODECS ??= ""
  53. CORE_IMAGE_BASE_INSTALL = '\
  54. packagegroup-core-boot \
  55. packagegroup-base-extended \
  56. \
  57. ${CORE_IMAGE_EXTRA_INSTALL} \
  58. '
  59. CORE_IMAGE_EXTRA_INSTALL ?= ""
  60. IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
  61. inherit image