poky-tiny.conf 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. # Distribution definition for: poky-tiny
  2. #
  3. # Copyright (c) 2011, Intel Corporation.
  4. # All rights reserved.
  5. #
  6. # This file is released under the MIT license as described in
  7. # ../meta/COPYING.MIT.
  8. #
  9. # Poky-tiny is intended to define a tiny Linux system comprised of a
  10. # Linux kernel tailored to support each specific MACHINE and busybox.
  11. # Poky-tiny sets some basic policy to ensure a usable system while still
  12. # keeping the rootfs and kernel image as small as possible.
  13. #
  14. # The policies defined are intended to meet the following goals:
  15. # o Serial consoles only (no framebuffer or VGA console)
  16. # o Basic support for IPV4 networking
  17. # o Single user ash shell
  18. # o Static images (no support for adding packages or libraries later)
  19. # o Read-only or RAMFS root filesystem
  20. # o Combined Linux kernel + rootfs in under 4MB
  21. # o Allow the user to select between eglibc or uclibc with the TCLIBC variable
  22. #
  23. # This is currently a partial definition, the following tasks remain:
  24. # [ ] Integrate linux-yocto-tiny ktype into linux-yocto
  25. # [ ] Define linux-yocto-tiny configs for all supported BSPs
  26. # [ ] Drop ldconfig from the installation
  27. # [ ] Modify the runqemu scripts to work with ext2 parameter:
  28. # runqemu qemux86 qemuparams="-nographic" bootparams="console=ttyS0,115200 root=0800"
  29. # [ ] Modify busybox to allow for DISTRO_FEATURES-like confiruration
  30. require conf/distro/poky.conf
  31. DISTRO = "poky-tiny"
  32. TCLIBC = "musl"
  33. # FIXME: consider adding a new "tiny" feature
  34. #DISTRO_FEATURES_append = " tiny"
  35. # Distro config is evaluated after the machine config, so we have to explicitly
  36. # set the kernel provider to override a machine config.
  37. PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-tiny"
  38. PREFERRED_VERSION_linux-yocto-tiny ?= "4.1%"
  39. # We can use packagegroup-core-boot, but in the future we may need a new packagegroup-core-tiny
  40. #POKY_DEFAULT_EXTRA_RDEPENDS += "packagegroup-core-boot"
  41. # Drop kernel-module-af-packet from RRECOMMENDS
  42. POKY_DEFAULT_EXTRA_RRECOMMENDS = ""
  43. # FIXME: what should we do with this?
  44. TCLIBCAPPEND = ""
  45. # Disable wide char support for ncurses as we don't include it in
  46. # in the LIBC features below.
  47. # Leave native enable to avoid build failures
  48. ENABLE_WIDEC = "false"
  49. ENABLE_WIDEC_class-native = "true"
  50. # Drop native language support. This removes the
  51. # eglibc->bash->gettext->libc-posix-clang-wchar dependency.
  52. USE_NLS="no"
  53. # Comment out any of the lines below to disable them in the build
  54. # DISTRO_FEATURES options:
  55. # alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci
  56. DISTRO_FEATURES_TINY = "pci"
  57. DISTRO_FEATURES_NET = "ipv4 ipv6"
  58. DISTRO_FEATURES_USB = "usbhost"
  59. #DISTRO_FEATURES_USBGADGET = "usbgadget"
  60. #DISTRO_FEATURES_WIFI = "wifi"
  61. DISTRO_FEATURES = "${DISTRO_FEATURES_TINY} \
  62. ${DISTRO_FEATURES_NET} \
  63. ${DISTRO_FEATURES_USB} \
  64. ${DISTRO_FEATURES_USBGADGET} \
  65. ${DISTRO_FEATURES_WIFI} \
  66. "
  67. # Enable LFS - see bug YOCTO #5865
  68. DISTRO_FEATURES_append_libc-uclibc = " largefile"
  69. DISTRO_FEATURES_append_libc-musl = " largefile"
  70. DISTRO_FEATURES_class-native = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
  71. DISTRO_FEATURES_class-nativesdk = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC} ${POKY_DEFAULT_DISTRO_FEATURES}"
  72. # Use tmpdevfs and the busybox runtime services
  73. VIRTUAL-RUNTIME_dev_manager = ""
  74. VIRTUAL-RUNTIME_login_manager = ""
  75. VIRTUAL-RUNTIME_init_manager = "tiny-init"
  76. VIRTUAL-RUNTIME_keymaps = ""
  77. # FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in
  78. # packagegroup-core-base to select modutils-initscripts or not. Similar with "net" and
  79. # netbase.
  80. # By default we only support initramfs. We don't build live as that
  81. # pulls in a lot of dependencies for the live image and the installer, like
  82. # udev, grub, etc. These pull in gettext, which fails to build with wide
  83. # character support.
  84. IMAGE_FSTYPES = "cpio.gz"
  85. # Drop v86d from qemu dependency list (we support serial)
  86. # Drop grub from meta-intel BSPs
  87. # FIXME: A different mechanism is needed here. We could define -tiny
  88. # variants of all compatible machines, but that leads to a lot
  89. # more machine configs to maintain long term.
  90. MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
  91. # The mtrace script included by eglibc is a perl script. This means the system
  92. # will build perl in case this package is installed. Since we don't care about
  93. # this script for the purposes of tiny, remove the dependency from here.
  94. RDEPENDS_${PN}-mtrace_pn-eglibc = ""
  95. PNBLACKLIST[build-appliance-image] = "not buildable with poky-tiny"
  96. PNBLACKLIST[core-image-base] = "not buildable with poky-tiny"
  97. PNBLACKLIST[core-image-clutter] = "not buildable with poky-tiny"
  98. PNBLACKLIST[core-image-directfb] = "not buildable with poky-tiny"
  99. PNBLACKLIST[core-image-full-cmdline] = "not buildable with poky-tiny"
  100. PNBLACKLIST[core-image-lsb] = "not buildable with poky-tiny"
  101. PNBLACKLIST[core-image-lsb-dev] = "not buildable with poky-tiny"
  102. PNBLACKLIST[core-image-lsb-sdk] = "not buildable with poky-tiny"
  103. PNBLACKLIST[core-image-rt] = "not buildable with poky-tiny"
  104. PNBLACKLIST[core-image-rt-sdk] = "not buildable with poky-tiny"
  105. PNBLACKLIST[core-image-sato] = "not buildable with poky-tiny"
  106. PNBLACKLIST[core-image-sato-dev] = "not buildable with poky-tiny"
  107. PNBLACKLIST[core-image-sato-sdk] = "not buildable with poky-tiny"
  108. PNBLACKLIST[core-image-x11] = "not buildable with poky-tiny"
  109. PNBLACKLIST[core-image-weston] = "not buildable with poky-tiny"
  110. # Disable python usage in opkg-utils since it won't build with tiny config
  111. PACKAGECONFIG_remove_pn-opkg-utils = "python"